Live data from Hacker News

Tauri – Electron alternative written in Rust

tauri.studio

281–290 of 435 posts

Re: Tauri – Electron alternative written in Rust

#282
post #111

Earlier quoted context omitted.

But you won't be developing a web app, you'd be developing a desktop app, much like with React Native. Having web developers learn C++ and Qt instead would be much more unacceptable.

By this logic requiring web devs to write ES3 code should be acceptable too. The platform changed significantly, improved significantly, in the past few years, some of these major advancements can't be ignored just because a browser doesn't implement them.

What advancements do you have in mind?

Re: Tauri – Electron alternative written in Rust

#283

Earlier quoted context omitted.

I guess but compatibility issues on the web, while they existe, are pretty discrete these days. Browser monoculture is exceedingly worse, both practically and from a business perspective, in my opinion.

As a guy who started web development when IE6 was the dominant platform I cannot cherish "browser monoculture" enough. .clearfix

And now we have display of "flow-root" instead of clearfix.

However the only reason I ever used the clearfix hack was when using float to do layout. I haven’t done that for ages (i.e. since CSS grew to include flexbox and grid). And I only ever use float to—well—float images inside text where the inside display is always inline. So I haven’t ever seen a need for display flow-root in the wild... Although I’m sure it exists.

Re: Tauri – Electron alternative written in Rust

#284

Rust and Electron haters can do all the hating within this one post here.

Drake turning away: ElectronJS 0.06GB app Drake approving: Any modern game requiring 100GB of content

Modern games have a shit-ton of assets in high quality. That takes up significant space no matter how you deal with it.

Electron generally isn't doing anything more interesting than what we did on Win98 with 8MB of ram for the entire system.

Re: Tauri – Electron alternative written in Rust

#285

Earlier quoted context omitted.

Here's your citation: https://insights.stackoverflow.com/survey/2020#most-loved-dr... Rust is #1 loved language, almost 20 points above the second one.

I can't imagine a better definition of trendy and hyped up than "loved on stack overflow".

Or maybe people just like working with it? Trend and hype bring people to it, sure, but that doesn’t take away from the fact that it’s an incredibly economic language that’s also fast.

Re: Tauri – Electron alternative written in Rust

#286

Earlier quoted context omitted.

Nope, you can compile code back to whatever ECMAScript version you like with tools like Babel or TypeScript. So the devs don’t even notice that they’re compiling to 4-5 year old ES.

That's actually not true in general, tell me how to compile Proxy and regex lookarounds to ES5 or whatever version that doesn't support these features. In fact tell me how to polyfill these features in any way at all.

There's a proxy polyfill. And if you really wanted there's at least one pcre2 wasm build you could wrap to make a polyfill, lol. Barely anyone uses lookahead/lookbehind even in pcre, though.

Re: Tauri – Electron alternative written in Rust

#288
post #94

I have a hard time understanding why platforms like electron are so popular. The predictions from Gary Bernhardt seem to really be true, in the future everything will be javascript. I wonder if somebody actually tried to make an OS that only has a browser, that's what Chrome OS actually is, after all.

Here are the reasons, bad as they might be:

(1) Branding. Businesses want their app to be thoroughly branded, so they'd rather have a canvas where they can invent their own buttons than use something cross-platform native like Qt.

(2) Hiring. Existing developer base trained on webtech. Qt is a C++ thing - there's a far greater hiring pool for webdevs than C++ devs.

(3) Ignorance. Some developers don't really know that Qt exists, or want to go through the trouble of learning it.

None of these reasons benefit the user - but Electron isn't chosen by those who want to benefit the user in the first place.

Re: Tauri – Electron alternative written in Rust

#289
post #94

I have a hard time understanding why platforms like electron are so popular. The predictions from Gary Bernhardt seem to really be true, in the future everything will be javascript. I wonder if somebody actually tried to make an OS that only has a browser, that's what Chrome OS actually is, after all.

Because it saves my company 66% in development costs.

It takes 3x as much effort to write an application in Qt than using web technologies?

Re: Tauri – Electron alternative written in Rust

#290

If anyone wants to know how it works: > [leverages] WebKit on macOS, WebView2 on Windows and WebKitGTK on Linux. So cross-platform compatibility isn't guaranteed, unlike Electron. https://github.com/tauri-apps/tauri

I guess but compatibility issues on the web, while they existe, are pretty discrete these days. Browser monoculture is exceedingly worse, both practically and from a business perspective, in my opinion.

As someone who uses Safari on Mac, I can say that compatibility issues are a big deal. Granted many of the issues are simply from sites checking for Chrome and telling everything else to f--- off. I've even seen a site fail to run on (chromium) Edge because it really wanted Chrome. However, real compatibility issues are a thing as well.

That said, I hate electron. I hate that I have to run 4-5 instances of chrome on my machine all day long for various different apps instead of the developer checking that their stuff works across the 3 main rendering engines.

Post reply on HN