Live data from Hacker News

Tauri: Rust-based Electron alternative releases beta

tauri.studio

31–40 of 177 posts

Re: Tauri: Rust-based Electron alternative releases beta

#31
post #15

I don't get the push for rust as a front-end language, it's very distracting with a lot of low-level features. Can we just stick with "best tool for the job"? Rust for performance-critical systems and, say, typescript for front-end? Using a single language for everything is a wet dream that always ends up in complexity and more work as you're fighting the "native" ecosystem.

When WASM becomes a dominant platform, all the performance-critical features will become very important.

Re: Tauri: Rust-based Electron alternative releases beta

#32
post #17

Earlier quoted context omitted.

We don't bundle with node. We bundle with rust.

Is it a misleading title then? I thought you did an alternative to Electron

Being an Electron alternative and using Node.js as an optional bundler are not mutually exclusive.

Re: Tauri: Rust-based Electron alternative releases beta

#33
post #15

I don't get the push for rust as a front-end language, it's very distracting with a lot of low-level features. Can we just stick with "best tool for the job"? Rust for performance-critical systems and, say, typescript for front-end? Using a single language for everything is a wet dream that always ends up in complexity and more work as you're fighting the "native" ecosystem.

The paradigm of Tauri is to pick the "best tool for the job". Bring your own frontend tech (JS, TS, RustWasm, etc).

Re: Tauri: Rust-based Electron alternative releases beta

#34
post #15

I don't get the push for rust as a front-end language, it's very distracting with a lot of low-level features. Can we just stick with "best tool for the job"? Rust for performance-critical systems and, say, typescript for front-end? Using a single language for everything is a wet dream that always ends up in complexity and more work as you're fighting the "native" ecosystem.

Normally I'm on the defensive side for the JS ecosystem on Hacker News, but not today. While it's still the best option for web app development productivity right now, there are woefully bad issues with the Node ecosystem, from poor or lack of documentation for complex build tools to zero contracts between dependencies. Rust has the advantage of being able to break if things seem to not fit together. It's a popular language for more use-cases than just performance-critical applications even if it supports that.

Re: Tauri: Rust-based Electron alternative releases beta

#35
post #17

Earlier quoted context omitted.

We don't bundle with node. We bundle with rust.

Is it a misleading title then? I thought you did an alternative to Electron

Maybe we need to be more clear about how nodejs CAN be used in the construction of a Tauri app, and that it is neither a requirement to make a Tauri app nor a component that is shipped with a Tauri app.

Re: Tauri: Rust-based Electron alternative releases beta

#36

Earlier quoted context omitted.

Is it a misleading title then? I thought you did an alternative to Electron

Being an Electron alternative and using Node.js as an optional bundler are not mutually exclusive.

Well, I'm lost. You won

Re: Tauri: Rust-based Electron alternative releases beta

#37
post #3

Earlier quoted context omitted.

Does the project contain C++ code?

They use whatever is the system WebView on the platform you run the code on. On Windows that's the Edge engine, on MacOS it's Safari's engine, etc. Those are all some combination of C and C++. See https://github.com/tauri-apps/wry Edit: s/IE or Edge/Edge

That seems to eliminate one of main advantages of electron, the consistent runtime environment.

If your html/css/is has to work correctly in EdgeHTML, Safari Webview, and Blink, you are limited to the lowest common denominator features.

Electron with Chromium has the largest feature set out of all of those.

Re: Tauri: Rust-based Electron alternative releases beta

#39
post #3

Earlier quoted context omitted.

Does the project contain C++ code?

They use whatever is the system WebView on the platform you run the code on. On Windows that's the Edge engine, on MacOS it's Safari's engine, etc. Those are all some combination of C and C++. See https://github.com/tauri-apps/wry Edit: s/IE or Edge/Edge

For Windows it will actually install Webview2 if it's not there already so it's not running on deprecated IE.

https://github.com/tauri-apps/wry#windows

Re: Tauri: Rust-based Electron alternative releases beta

#40
post #16

I’ve seen this before, and I still have no idea what it does. If it’s an electron alternative, is it too much to ask to show an image of a webapp running on a desktop (preverably a variation of every OS) front and center on the landing page? I’d like to see it working immediately, without needing to watch any videos.

As far as I can tell, they have reimplemented the electron api in Rust to make use of native web views removing the chromium dependency.

I agree it’s confusing and not clear on the homepage or from the hacker news title. I was expecting something like an electron framework using servo.

Post reply on HN