Live data from Hacker News

Tauri: Rust-based Electron alternative releases beta

tauri.studio

111–120 of 177 posts

Re: Tauri: Rust-based Electron alternative releases beta

#111
post #96

Earlier quoted context omitted.

I think Typescript won't check that two of your dependencies are compatible with each other; it will only check that your app is compatible with dependencies. Even then, the check isn't very strong, since TypeScript operates on a "as you want it" basis, which is nice in some ways but also means you could get overly permissive behavior, especially if you're using third party typings, which is fairly common. > the focu…

I'm not saying that go and C++ have better type systems. I'm saying like rust, their type systems are built to aid the compiler. High-level languages like ocaml or f# have type systems made for domain modeling

I would disagree. Types like `Result` or `Option` exist purely for the user; the compiler doesn't care that there is a convention for errors, nor would it be that bad for a compiler to have `nil` (there are certainly a bunch of compilers that can handle it). There are a number of convenience types available such as `Rc` which does reference counting. If `Rc` didn't exist, you could still survive and write the same applications, it's just that it would be more cumbersome.

Re: Tauri: Rust-based Electron alternative releases beta

#112
post #2

Hey - I am nothingismagick aka Denjell, one of the founders of Tauri, and will do my best to answer your questions about the project, rust, wasm, etc. https://github.com/tauri-apps/tauri

Why Node and not Dino?

Assuming you meant Deno, we used Node for the CLI because most web devs already have npm installed. We want the getting started process to be as simple as possible. Our Node CLI is just a wrapper really, as nearly all of the commands are actually implemented in Rust. You don't even need Node to build a Tauri app anymore. Node is not including in a shipped Tauri app, although we plan on supporting both Node and Deno as optional replacements for Rust in the future.

Re: Tauri: Rust-based Electron alternative releases beta

#113
post #80

Earlier quoted context omitted.

> for people like yourself It's not for "people like me," it's for everyone. In terms of volume of traffic you're going to get, no one else cares about this stuff. Here's an example of one of my projects where I do just that: https://www.planimeter.org/grid-sdk/ Literally! I tell people what my team has built. I show them a screenshot. I then provide API examples. Mine could be better if I provided screenshots per AP…

The page is simple, yet it doesn't even render anything but the menu without javascript.

[deleted]

Re: Tauri: Rust-based Electron alternative releases beta

#114

I'm really struck by the differences between Electron's website and Tauri's website. https://www.electronjs.org/ https://tauri.studio/ Tauri's website is way, way worse. Tauri uses unnecessary jargon where Electron's site uses simple, more direct language. Electron: > Build cross-platform desktop apps with JavaScript, HTML, and CSS Tauri: > Build smaller, faster, and more secure desktop applications with a web fronte…

They don't say "JavaScript, HTML, and CSS" because it isn't just JavaScript, HTML, and CSS. It's any technology that can run in the browser, such as Yew or Maple for example. Arguably those Rust-based frontend libraries are the main focus, even, over something like React.

FLOSS also means a different thing from Open Source because of the "Libre" aspect.

I don't see why being different is considered bad here, as its whole shtick is that it's an alternative.

Re: Tauri: Rust-based Electron alternative releases beta

#115
post #69

Earlier quoted context omitted.

Great landing page. Straight to the point. OT question: what makes the engine multiplayer-first?

The engine is multiplayer first because you don't have to write any special code to implement it. When you start a game, if you set maxplayers to something beyond 1, it's multiplayer automatically. When you create entities in the engine, all you have to do is specify what fields you want networked, and the game engine automatically serializes deltas for you on that field as they change. It takes care of more advanced…

Maybe you should put that pitch up there on the starting page, because personally I find it too bland. The screenshot doesn't tell me anything, might as well not put it up there.

Re: Tauri: Rust-based Electron alternative releases beta

#116

As a developer of an Electron app to me a competing framework that doesn't bundle its own rendering engine doesn't make sense, why would I want to trade control over how my app is rendered for ~100MB of disk space? I might as well just ship a website at that point, almost everything that makes Electron appealing comes from shipping your own rendering engine.

It's about memory management more than it is binary size. Rust is notorious for being turbo-charged with every LLVM optimization on gods green earth, so much so that the actual syntax of the language is beholden to the opinion of the compiler. Either way, I see it as a great step in the right direction, and would be perfect for apps like Discord or Spotify.

Re: Tauri: Rust-based Electron alternative releases beta

#117

I don't care about your YouTube videos, I don't care about your governance, I don't care about your book, tell me what it is in non-marketing speak and show me a screenshot on the front page and shut up about everything else. Tell me what it is, show me what it looks like, provide a "Hello, World!" API example for opening a window on the front page. Stop contributing to landing pages that jerk the consumer around.

TL;DR Build native apps from JS by wrapping in a web view. Aside from native dependencies required during development for whatever playform you're building:

  yarn add @tauri-apps/cli
  yarn tauri init
  yarn tauri build
I'll admit you'll probably have a couple extra configuration steps in there. But I found it much easier to get started than with Electron and the resulting app seems pretty slick.

Re: Tauri: Rust-based Electron alternative releases beta

#118
post #85

Earlier quoted context omitted.

"Tauri is a toolkit that helps developers make applications for the major desktop platforms - using virtually any frontend framework in existence. The core is built with Rust and the CLI leverages Node.js making Tauri a genuinely polyglot approach to creating and maintaining great apps." That's the first paragraph on the About page. Landing pages have multiple purposes and need to address different types of viewers,…

Nope. Landing pages have one purpose, to funnel you further down into adoption or allow you a place to access things you've already adopted. That's it. Everything else is noise.

You just listed two purposes.

Re: Tauri: Rust-based Electron alternative releases beta

#119
post #54

Earlier quoted context omitted.

Like I wrote in another response, we are due for a landing page revamp, and we'll be sure to make a "nothing but the facts" hero for people like yourself who are concerned that their time is being wasted.

I think if time on page and average session metrics suggested that's what people wanted, that's what we would see. It's like complaining about how the news reports on inane stuff.

You are assuming they have done analysis and A/B testing. More likely they simply copied the approach of consumer products, without thinking too deeply about the fact that developers are their only users.

Re: Tauri: Rust-based Electron alternative releases beta

#120

I don't care about your YouTube videos, I don't care about your governance, I don't care about your book, tell me what it is in non-marketing speak and show me a screenshot on the front page and shut up about everything else. Tell me what it is, show me what it looks like, provide a "Hello, World!" API example for opening a window on the front page. Stop contributing to landing pages that jerk the consumer around.

Came here to say this. It's a site designed for idiots not engineers. How does rendering work? Can't even tell if it's HTML based or some hipster immediate UI toolkit nobody's heard of. What do I need to give up to get a 640kb binary? etc etc.

Answering my own question, https://github.com/tauri-apps/wry , so looks like it loses one of the advantages of Electron in that you control the exact browser in use. Maybe that's incorrect. Who knows? Web site appears to not exist to provide such important details.

https://github.com/tauri-apps/tauri/blob/dev/ARCHITECTURE.md could lose a few thousand words, but this seems to be the real starting off point

Post reply on HN