News for hackers. Stuff that matters.
Re:Tauri: An Electron alternative written in Rust by the_duke on Friday February 19, 2021 @12:54PM (#26195791)
A major benefit of Electron is that you can develop against a single browser and runtime version and don't have to deal with all the small but time consuming compatibility quirks.

On Windows the default webview engine is still not the new Chromium but old Edge (WebView2 has to be installed separately), Safari has a fair amount of issues and gtk-webkit can be very quirky as well.

This is not so significant if your app has a web version and you have to deal with it anyway , but thereare a fair amount of Electron only apps. Or even with a web version, the desktop app often has special features not present on the web.

But webviews are as much a moving target as browsers and often behave differently from the regular browser version in a myriad of ways, so you need an even bigger testing matrix.

Webviews are also hard to properly secure and don't provide the extensive APIs of Electron, which you often have to bake yourself in a wrapper written in, eg, Rust or C++.

I say all this as someone who hates how resource hungry Electron apps are and groans each time about yet another one on my machine, but I understand why it is so popular.

Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @01:02PM (#26195898)
> don't have to deal with all the small but time consuming compatibility quirks

> Webviews are also a moving target so you need a big testing matrix

I say this as a front-end web app dev who would most likely be affected by this kind of shift: it might be slightly less convenient, but I wholeheartedly think it's worth doing, on several levels.

People built web apps 15 years ago in the dumpster-fire that was web standards at the time (and frankly, web tooling too). Browsers, even the good ones, didn't update themselves automatically. Most of the world was still on IE which was actively hostile to web standards for the sake of lock-in (and users weren't even on the same version of IE!). There was nothing like Babel to smooth over the rough edges, there were no polyfills. And even the standards that existed, when you got the opportunity to use them, mostly sucked.

I think, given all that, we can deal with supporting recent-ish Chromium and the latest Safari, if it means bolstering web diversity and saving an order of magnitude in RAM and storage.

Re:Tauri: An Electron alternative written in Rust by danudey on Friday February 19, 2021 @01:39PM (#26196357)
Also: a lot of our "Electron" apps are essentially Electron frontends to the existing web frontend.

For example, Slack-the-Electron-app and Slack-the-web-app are fundamentally identical, aside from likely some platform integration features and so on. That means that, likely, a lot of these Electron apps would already work in, for example, a Safari or Edge webview, since the web version has to anyway. I sincerely doubt that they're taking the time to strip out that compatibility, since the only reason to do so would be efficiency and if you're using Electron that's not a priority.

IOW, for many applications, there's a near-100% chance that everything would function with little to no extra work, and for most of the rest it would likely take very little.

Re:Tauri: An Electron alternative written in Rust by Klonoar on Friday February 19, 2021 @01:57PM (#26196578)
Slack originally was platform specific webviews, and migrated to avoid issues like what is mentioned in this thread. One of the engineers who did it has even commented on HN to explain this.
Re:Tauri: An Electron alternative written in Rust by saagarjha on Friday February 19, 2021 @05:08PM (#26198663)
This is probably the comment you're talking about: https://news.ycombinator.com/item?id=18763449. I was unconvinced then, and I am even more unconvinced now as I run a fully native Cocoa Slack client on my Mac that was written by one person reverse engineering APIs.
Re:Tauri: An Electron alternative written in Rust by Klonoar on Saturday February 20, 2021 @01:05AM (#26202024)
Nobody ever said that Slack couldn't be implemented in Cocoa, and it's really not remarkable that someone did it. ;P

You and I both know that one person can write UI in a vacuum, but there's a litany of other challenges that come up when positioning an application across platforms - sharing code, resources, etc. If all you look at it on is a technical level, you're doing the problem a disservice.

Re:Tauri: An Electron alternative written in Rust by fn1 on Saturday February 20, 2021 @02:15AM (#26202275)
That same reasoning is why Google is having a YouTube app on AppleTV which does not use native widgets, so bluetooth keyboards don't work, scrolling is off etc.

It's not that they cannot afford building 10 native AppleTV apps in parallel and pick the best one.

Re:Tauri: An Electron alternative written in Rust by macrael on Friday February 19, 2021 @05:37PM (#26198953)
what's that client?
Re:Tauri: An Electron alternative written in Rust by saagarjha on Friday February 19, 2021 @05:40PM (#26198990)
Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @02:21PM (#26196893)
It also launched 8 years ago; the web has changed a lot since then. Edge wasn't even around until 2015, much less being used for webviews.
Re:Tauri: An Electron alternative written in Rust by Klonoar on Friday February 19, 2021 @02:34PM (#26197050)
This sounds like you didn't look up and read the comment in question. Problems with cross-platform webviews stopped being the HTML/CSS/JS layer long ago; it's integration, availability, and rate-of-updates that are common blockers.

Call me when Microsoft actually ships WebView2 with the OS.

Re:Tauri: An Electron alternative written in Rust by efwfwef on Friday February 19, 2021 @03:31PM (#26197686)
if you would link to that comment it would be helpful
Re:Tauri: An Electron alternative written in Rust by sodality2 on Friday February 19, 2021 @07:10PM (#26199810)
https://news.ycombinator.com/item?id=18763449

"This is literally what Slack moved from years ago, because it was very problematic, let me tell you why since I'm the one who did it.

* Adding new APIs was a huge pain in the ass, you had to write all of this ugly bridge code in Objective C, and the APIs ended up being super unnatural on the JS side. As a result, desktop integration wasn't done much since it felt like a "Black Magic" type thing. Writing new APIs in Electron is Just JavaScript, so you can make something much more natural.

* We could literally do fuck-all for people running old versions of macOS - you can't upgrade Safari on old machines, you just Get What You Get. For awhile, every YouTube video on older macOS versions had a pink shade to it. Users write in, "This is clearly wrong!" "Yep, but we can't fix it. Sorry."

* And big spoiler - WKWebView uses _basically_ the same amount of memory give-or-take a few MBs as Chromium. It's the content that sets the memory usage bar, not the host. "

Re:Tauri: An Electron alternative written in Rust by Wowfunhappy on Friday February 19, 2021 @11:27PM (#26201595)
> That means that, likely, a lot of these Electron apps would already work in, for example, a Safari or Edge webview, since the web version has to anyway.

Coincidentally, Slack doesn't fully work in Safari or traditional Edge. Video calls only work in Chromium-based browsers, and in the Electron app which is of course also Chromium.

This is actually the thing that finally got me to switch back to Chromium last week, after using Safari and Firefox for the better part of a decade. The Electron app sucks, I don't like switching between browsers for usability reasons, and I need to make Slack calls for work.

Re:Tauri: An Electron alternative written in Rust by jedbrown on Saturday February 20, 2021 @12:08AM (#26201764)
How does one get the Slack sidebar inside a browser tab? I loathe the Electron app, but don't have a different viable way to manage 30-odd workspaces.
Re:Tauri: An Electron alternative written in Rust by morpheuskafka on Friday February 19, 2021 @04:17PM (#26198141)
That's fine for someone who already keeps current with front-end stuff, but someone who is a desktop app developer is more likely to just go native than try to make a desktop app that tracks 3+ browser engines of wildly varying versions (luckily 7 is out of support now, but it still might be desired to support for some desktop apps in which case now you have IE to deal with). Electron gives the promise of total code re-use across platforms which is what makes web technologies more suitable for desktop apps.
Re:Tauri: An Electron alternative written in Rust by briandear on Friday February 19, 2021 @04:42PM (#26198394)
> Electron gives the promise of total code re-use across platforms which is what makes web technologies more suitable for desktop apps.

I am not sure what the point is of Electron: a shitty-resource hungry app that literally is a wrapped web-app. Instead of writing platform specific apps that leverage the power and capabilities of those platforms, we get a jack of all trades and master of none. Electron is a business decision, not an enlightened technical one.

What value does electron add to the user? I would argue none. That Slack can’t find the resources to write actual Swift for a Mac App is just amazing to me. Instead we are essentially interacting with a lowest-common-denominator web app. Is a chat app that hard to write natively? We’d get better performance, a smaller footprint, and a more polished, platform-specific product.

Re:Tauri: An Electron alternative written in Rust by nicoburns on Friday February 19, 2021 @07:58PM (#26200248)
> Instead of writing platform specific apps

You've answered your own question as to why people write then.

> What value does electron add to the user?

It adds a lot of value to Linux and to a lesser extent Mac users: before a electron a lot of apps didn't have a version for these platform at all.

Re:Tauri: An Electron alternative written in Rust by wutbrodo on Saturday February 20, 2021 @01:06PM (#26206321)
> It adds a lot of value to Linux and to a lesser extent Mac users: before a electron a lot of apps didn't have a version for these platform at all

What value does _this_ add over a web app?

I've been an exclusive Linux user since college so I'm aware of the disadvantages of app/service unavailability (I remember the dark days of running Netflix in a windows VM that I barely had enough RAM to run...).

But what's the advantage of using the Slack app over a browser tab? This is a sincere question, since enough people reference the benefit of faux-native wrapped webapps that I assume there's some value.

I seem to be the only one in my company who doesn't use Slack's app, and I'm always shocked when I see a colleague's computer freeze and have them say "ugh it's almost definitely the Slack app". I work in autonomous vehicle engineering, so these are _monster_ machines I'm talking about, capable of running the entire car's stack locally. The only advantage I can think of are desktop notifications, but 1) I'm pretty sure browsers support those and 2) is that really worth using an app that's amateurish enough that it freezes your computer regularly?

Re:Tauri: An Electron alternative written in Rust by sofixa on Sunday February 21, 2021 @06:04AM (#26212537)
I'm on Ubuntu and use the Slack app, which never causes any freezes or anything of the like. The advantages is that i know where it is ( in my taskbar and launcher) compared to it being one of my 500 open tabs, and the taskbar icon shows if i have unread notifications or messages. Furthermore, i can use it with multiple workspaces at the same time.
Re:Tauri: An Electron alternative written in Rust by carlhjerpe on Sunday February 21, 2021 @08:07AM (#26213181)
I feel like the push towards PWA where you "appify" those websites rather than running another instance of a full blown browser would be good indeed.
Re:Tauri: An Electron alternative written in Rust by wutbrodo on Sunday February 21, 2021 @01:05PM (#26215595)
Ah yes, the panel icon. This makes a lot of sense, thank you! My os is _heavily_ customized (i3 + wmctrl + heavy scripting), so I forget sometimes what the standard floating-window workflow looks like and how difficult it can make it to manage and quickly access important windows/tabs.
Re:Tauri: An Electron alternative written in Rust by krzyk on Saturday February 20, 2021 @09:34AM (#26204340)
> It adds a lot of value to Linux and to a lesser extent Mac users: before a electron a lot of apps didn't have a version for these platform at all.

I prefer web versions of those apps on Linux than electron. Sorry, I want to run just one browser and it is not Chrome based one.

And for sure Electron apps don't allow that ease of cross platform development as one thinks, I would argue that it is on the same level as a native app with good abstraction library (see Telegram client source on github).

It is more that they don't want to hire desktop developers (or just ones that want to learn something else than JS).

Re:Tauri: An Electron alternative written in Rust by JoshTriplett on Saturday February 20, 2021 @02:11AM (#26202265)
For an app with no source available publicly, I would much rather have a web app in a sandbox than a "native" app (whether native or electron-style) that I would have to trust.
Re:Tauri: An Electron alternative written in Rust by encom on Friday February 19, 2021 @05:14PM (#26198720)
Electron exists because there's a horde of developers whose only tool is a JavaScript hammer, so every problem looks like a nail. That's how you end up rewriting `dd` for Chrome[π].

π: https://www.balena.io/etcher/

Re:Tauri: An Electron alternative written in Rust by dmitrybrant on Friday February 19, 2021 @08:40PM (#26200576)
My god... a 200+ MB install footprint, 200+ MB of RAM usage, requires a beefy GPU just to render its window. How did we get here?
Re:Tauri: An Electron alternative written in Rust by brodock on Friday February 19, 2021 @10:57PM (#26201410)
I think we got there also by desperation of lacking good cross-platform GUI toolkits.

The current state is, you either use something that looks like Windows 95 in all platforms, or web app.

What the web made possible is to anyone to create a decent custom UI with little effort. I still remember how messed up was to create a custom component for Java Swing, which I believe is still one of the easiest to do. How would you do that for QT? GTK? WxWidgets? etc

Re:Tauri: An Electron alternative written in Rust by dleslie on Friday February 19, 2021 @11:22PM (#26201568)
I'll take Win95 in a heartbeat; consistent, accessible, responsive and clear. Vastly superior to the majority of web interfaces.
Re:Tauri: An Electron alternative written in Rust by kilburn on Saturday February 20, 2021 @03:50AM (#26202722)
Also totally inflexible, you better have the right-sized screen/resolution: too small and you can't see that "ok" button; too large and you'll have a ridiculously small and crammed winform to fill/see your information.
Re:Tauri: An Electron alternative written in Rust by pjmlp on Saturday February 20, 2021 @06:42AM (#26203436)
Most cross platform toolkits support layout managers, since Motif days.

Actually even WinForms supports them, even though too many are happily doing fixed canvas positioning without using them.

Re:Tauri: An Electron alternative written in Rust by dleslie on Saturday February 20, 2021 @03:34PM (#26207679)
Windows has shipped an accessibility magnifier since the 90s, before hidpi was a thing.
Re:Tauri: An Electron alternative written in Rust by krzyk on Saturday February 20, 2021 @09:37AM (#26204368)
Take a look at Telegram client, looks great on Linux, not sure how it looks on macos or Windows.
Re:Tauri: An Electron alternative written in Rust by morpheuskafka on Monday February 22, 2021 @12:03PM (#26226886)
Interesting Telegram has both a native (Swift/Obj-C not sure which) and an cross-platform-codebase app for macOS. The former is called Telegram for macOS and the latter Telegram Desktop. Both are on the app store even. So it would actually be a very good case to compare performance, etc. The native one presumably shares a lot of code with iOS which is probably why it exists at all, and it supports secret chats. Otherwise they have similar but slightly different design and features.

However, I think the Telegram Desktop client is not Electron either, it is just regular C++ compiled on different systems.

Re:Tauri: An Electron alternative written in Rust by krzyk on Wednesday February 24, 2021 @02:56PM (#26254865)
Yes, Telegram Desktop is a normal C++ app: https://github.com/telegramdesktop/tdesktop

So a cross-platform is quite easy, Electron one would need to be tested for different webviews on each system.

Re:Tauri: An Electron alternative written in Rust by mekkkkkk on Saturday February 20, 2021 @08:43AM (#26204032)
I might be crazy, but for me it's faster and more convenient to download and run Etcher than to read up on dd command arguments and device paths. Storage space is plentiful for me. RAM isn't an issue as it's only run once in a blue moon.

Is it crazy bloated and resource hungry for what it does? Undeniably! Does it matter? Not for me.

Electron resource use can be painful for apps that are running constantly, like Discord, VSCode and Slack. For utilities like Etcher, who cares.

Re:Tauri: An Electron alternative written in Rust by davegauer on Friday February 26, 2021 @01:16PM (#26277898)
I realize I'm replying six days later - but I can't help mentioning that the "dd situation" is even crazier than it first appears: you can just use `cp foo.iso /dev/sdb` or `cat > /dev/sdb`.

https://unix.stackexchange.com/a/189091/220387 https://eklitzke.org/the-cult-of-dd

Re:Tauri: An Electron alternative written in Rust by morpheuskafka on Saturday February 20, 2021 @03:22AM (#26202559)
The actual duplication is done in the Node.js runtime, not the V8 runtime inside of the Chromium GUI layer.

I do wish they had a command-line version that just ran node without Chromium, but there is a use-case to have a simple foolproof application like this; these days there are a lot of people who need to image drives like this and would be best not to mess with dd on their first time.

And dd doesn't exist for Windows so you've got to use some tool or another like this.

Re:Tauri: An Electron alternative written in Rust by eitland on Saturday February 20, 2021 @05:38AM (#26203173)
In fairness, for some reason Etcher works sometimes when other things don't.

It might be because it is slower and doesn't overheat my usb sticks, I don't know, but if nothing else works you can try etcher.

(Not sure how I found out, can have been something I read or a recommendation by a colleague 3 a 7 years ago or something.)

Re:Tauri: An Electron alternative written in Rust by cdmoyer on Saturday February 20, 2021 @10:04AM (#26204587)
Honestly, this site is the only place I really hear about the supposed horror of electron. The resource issue doesn't seem to effect me or people in the 7 slacks I'm in all day.

My 6 year old MacBook runs slack, Xcode, android studio, safari, chrome, messages, vs code, vim, iterm2, preview, battle.net and hearthstone all the time without issue, really.

I think for the average user, they'd rather have more features across platforms more quickly than a smaller resident memory footprint and install size.

Re:Tauri: An Electron alternative written in Rust by wutbrodo on Saturday February 20, 2021 @01:11PM (#26206359)
For a counter-anecdote, I've seen the Slack app freeze up colleagues' workstations many times, and these are monster machines designed to run an autonomous vehicle stack on raw sensor data.
Re:Tauri: An Electron alternative written in Rust by ZephyrBlu on Friday February 19, 2021 @05:09PM (#26198668)
> I am not sure what the point is of Electron: a shitty-resource hungry app that literally is a wrapped web-app

The point is that its effectively a web app.

> What value does electron add to the user?

They have a desktop app faster than if it was being built natively.

Re:Tauri: An Electron alternative written in Rust by simonh on Friday February 19, 2021 @06:16PM (#26199350)
Or at all, how many Electron apps would bother with native Linux clients for example. Some maybe but certainly not all and probably not most either.
Re:Tauri: An Electron alternative written in Rust by krzyk on Saturday February 20, 2021 @09:36AM (#26204355)
Electron app is not a native Linux client, it is just a browser app. If you ran that app in a tab it gives you much better performance and less memory used.
Re:Tauri: An Electron alternative written in Rust by morpheuskafka on Monday February 22, 2021 @12:16PM (#26227099)
That all depends on how the app is written. The idea of Electron is to bring the web app frontend experience to apps which are fundamentally not able to run in a browser, such as VS Code, Etcher, etc. Writing to raw device files, listening to ports, using the full CPU resources and timers not available in the browser, using more memory, etc.

If you just package an existing website into an Electron app that is a waste of time and user resources. Electron is intended to combine a web-based presentation/UI layer with a Node.js layer that supports access to native resources, unlimited storage, persistence outside the browser, etc. If you are not making meaningful use of these capabilities a PWA would be sufficient.

Overall, I do prefer native apps, although there are examples out there such as VS Code that have achieved UI excellence without it. Although, I really only like that on macOS... on Windows I prefer the older Windows Forms style rather than the new Modern UI, and on Linux there is a bit of style mismash between Qt and GTK apps already.

Re:Tauri: An Electron alternative written in Rust by krzyk on Saturday February 20, 2021 @09:30AM (#26204310)
> What value does electron add to the user? I would argue none. That Slack can’t find the resources to write actual Swift for a Mac App is just amazing to me. Instead we are essentially interacting with a lowest-common-denominator web app. Is a chat app that hard to write natively? We’d get better performance, a smaller footprint, and a more polished, platform-specific product.

Exactly, one can look at Telegram app, it is clean, polished and open source client written as a native app that works across many platforms (and one of few that has Linux client).

Re:Tauri: An Electron alternative written in Rust by cjohansson on Friday February 19, 2021 @05:21PM (#26198780)
Electron should be banned for the environments sake if the other reasons doesn't persuade, it's inefficient computation to energy ratio using Electron apps, when there is a lot of users like with VSCode or Slack it probably affects the global climate in a negative way
Re:Tauri: An Electron alternative written in Rust by ajxs on Friday February 19, 2021 @09:17PM (#26200853)
I see a lot of people in the tech industry deeply concerned with human impact on the environment and our diminishing prospects of repairing it without drastically altering our lifestyles. At the same time the general consensus in the tech industry towards the steady increase in power requirements for everyday computing seems to be indifference.

These two viewpoints cannot be reconciled.

Every month when this Electron discussion comes up there are so many who dismiss the egregious resource usage outright on the basis that it's trivial for modern computers. I'm one of those people who use Thinkpads in 2021 for my personal computing and have no problems with it. I will never buy a Mac, and I don't want to unnecessarily spend hundreds of dollars on a modern system when refurbished ones from a decade ago work so well. I avoid Electron apps on the basis that they flatten my battery quickly. I switched from using vscode to vim on my x200 and my battery life tripled, I'm not even exaggerating here either.

Re:Tauri: An Electron alternative written in Rust by slaymaker1907 on Friday February 19, 2021 @10:31PM (#26201243)
No, they are completely reconcilable. The amount of power it takes to run a powerful consumer CPU is trivial compared to the amount of power used in many other common applications like heating, vehicles, etc. This effect is particularly pronounced when you consider that laptops use way less energy than desktops (on average) and mobile computing as a whole is displacing desktops outside of niches like PC gaming.

The environmental issue doesn't make sense IMO, but increasing hardware requirements does have real impact on accessibility.

Re:Tauri: An Electron alternative written in Rust by ajxs on Friday February 19, 2021 @11:10PM (#26201500)
These effects scale. If every single laptop uses a small amount more power than is necessary, the relatively minor increase in energy use for one computer totals up to a significant increase in overall energy usage. Not to mention the unnecessary obsolescence of hardware. The externalities of manufacturing new hardware - and disposing of old hardware - are extremely significant. Just so what? So my perfectly good 10 year old laptop has enough RAM to run 6 Electron apps at once?

Sure, your ceiling lights use less energy than your fridge. That's not a justification for everyone to completely ignore turning them off when not needed.

Re:Tauri: An Electron alternative written in Rust by FooBarWidget on Saturday February 20, 2021 @12:31AM (#26201884)
Even if they add up, they still pale in comparison to the amount of energy you can offset with a couple of windmills.
Re:Tauri: An Electron alternative written in Rust by magnio on Saturday February 20, 2021 @01:23AM (#26202105)
> it's inefficient computation to energy ratio

Probably true.

> affects the global climate in a negative way

If electricity consumption of all computers in the world doubled because of Electron apps, the total annual electricity consumption would increase by 0.01%. So probably false.

Re:Tauri: An Electron alternative written in Rust by jcelerier on Saturday February 20, 2021 @04:05AM (#26202812)
In 2012 PCs (only PCs, not network appliances, not data centers, not phones...) were estimated at 1.5% of global electricity use, so you're off by a good margin. And that is deeefinitely not negligible, nor is the need (and eco impact) to buy newer computers because a 2016 MacBook Pro is unusable when your work requires 4/5 electron apps side by side.
Re:Tauri: An Electron alternative written in Rust by magnio on Saturday February 20, 2021 @05:42AM (#26203189)
I stand corrected. Turns out I forgot to multiply by 365 days/year. The real figure is indeed in the ballpark of 2%.
Re:Tauri: An Electron alternative written in Rust by doctorbuttes on Friday February 19, 2021 @06:28PM (#26199459)
Let's ban anything not written in assembly.
Re:Tauri: An Electron alternative written in Rust by yuanchenxi95 on Saturday February 20, 2021 @01:00AM (#26202003)
Second that
Re:Tauri: An Electron alternative written in Rust by 3np on Friday February 19, 2021 @09:59PM (#26201083)
No joke, if it weren't for the resource usage of vscode and the couple of other Electron apps I rely on, I wouldn't consider upgrading my workstation (which is already new enough to be energy efficient enough but maxes out at 24GB RAM) but here we are.
Re:Tauri: An Electron alternative written in Rust by GuB-42 on Saturday February 20, 2021 @12:17PM (#26205861)
Maybe not banned but they could do a carbon tax like they do with motor vehicles. Or maybe like with appliances where you have an energy rating, with stickers telling you how much electricity it will use per year, possibly with tax incentives to pick the most efficient.

Problem is: how to test that? Even with the most straightforward tests, there are cheaters. Appliances have a special "eco" mode to meet the specs that most people won't use because it barely does the job. And for cars, well, VW have shown us how far companies are ready to go.

Re:Tauri: An Electron alternative written in Rust by jlokier on Friday February 19, 2021 @01:53PM (#26196518)
I run three browsers on my desktop, because the number of things that don't work properly in anything except recent Chrome is enough that I keep encountering issues, I don't want to use Chrome for my regular browsing, and both Safari and Firefox have issues on some sites.

On my tablet, a number of current websites don't run even on Chrome, because the tablet isn't particularly new, so it doesn't have current Chrome. It's still great hardware in perfect condition though, everything that does run on it is perfectly smooth and so on, and I still use it. Youtube in particular is fine. Literally the only reason to buy a new one would be to satisfy the software treadmill.

My old phone didn't run Chrome (or Safari). It had Firefox. The only reason I switched to a newer phone, using Android, was because of sites that gradually didn't run well on Firefox any more. That was annoying, having to ditch a perfectly great phone and replace it with something better for the web but worse for other things.

I have a Macbook Pro at home. I'm pretty happy with it, it's still a fine machine, I use it for work every day. It runs the latest Safari that's safe to run on it, but that's not the latest Safari, because it would have problems running the most recent OS.

This brave new world of "I'm sure we'll be fine supporting recentish Chrome and latest Safari" is a world of exclusion. I don't like the memory usage of Electron, but I prefer it to applications that are a bit broken!

Also, to be honest, I've been looking at memory usage. Electron uses much less than any of the three big browsers. You may know that Chrome famously starts a new process for each tab, and Safari does too. Firefox isn't far behind. As a result, the memory saved by running a new page in an already running browser compared with Electron isn't as much as it was long ago, back in the days when tabs shared memory. This is visible with Safari, as the website name shows up in the system utility for viewing process memory.

I know, that feels wrong somehow, but it's true.

Finally, when using a system WebView, will that save memory if it's opening a separate instance of the system's browser? It must be separate in some ways, if opening an application that uses a WebView doesn't open all your saved tabs from last time the browser was open. (And it's a horrible experience if opening an application does open all the other tabs.)

Re:Tauri: An Electron alternative written in Rust by dcow on Friday February 19, 2021 @06:29PM (#26199468)
Running tabs in a separate process has been a boon IMO. It’s better security and a crashed tab doesn't bring the browser down and an unresponsive tab can be killed independently.
Re:Tauri: An Electron alternative written in Rust by jlokier on Friday February 19, 2021 @07:12PM (#26199824)
I agree, however that is part of the argument for why Electron RAM usage should be compared against browser tabs, instead of assuming that Electron must be using a lot more ust on principle because it's separate.
Re:Tauri: An Electron alternative written in Rust by encom on Friday February 19, 2021 @05:22PM (#26198796)
One major benefit of running webapps in an actual browser like Firefox, instead of Electron, is that I can have uBlock and a handful of other defensive plugins, to prevent shady things happening behind my back.
Re:Tauri: An Electron alternative written in Rust by ruined on Saturday February 20, 2021 @01:03AM (#26202015)
but, conversely, browsers tend to have access to a lot of ident/auth goods that a standalone electron wouldn't, even if you're using containers. also it's perhaps harder to phish someone running an electron app because outside webpages open a real browser.
Re:Tauri: An Electron alternative written in Rust by 3np on Friday February 19, 2021 @10:01PM (#26201093)
Did you try Brave? I'm yet to encounter anything that works in Chrome but not in Brave (save for the occasional site that breaks because of ad/trackblocking, which can easily be disabled)
Re:Tauri: An Electron alternative written in Rust by kaba0 on Saturday February 20, 2021 @01:56PM (#26206753)
Well, because Brave is pretty much a renamed chrome with preinstalled adblock
Re:Tauri: An Electron alternative written in Rust by 908B64B197 on Friday February 19, 2021 @01:22PM (#26196145)
> Most of the world was still on IE which was actively hostile to web standards for the sake of lock-in (and users weren't even on the same version of IE!)

More like: A lot of corporate users mandated a specific version of IE and wouldn't allow anything else to be installed.

Re:Tauri: An Electron alternative written in Rust by mumblemumble on Friday February 19, 2021 @01:39PM (#26196354)
Some corporations did that. Most didn't. The main reason IE dominated was that most people didn't care, and stuck with the default. The main reason old versions of browsers were more common than new ones was that self-updating browsers hadn't become a thing yet, and most people didn't care, and just stuck with the default. The reason most browsers stay up-to-date now is that modern browsers are all configured to self-update by default, and most people don't care, and stick with the default.

I have never bought a prebuilt Windows PC, so this is pure speculation, but I am wildly guessing that the dominance of Chrome is because computers are now coming with Chrome preinstalled and configured as the default, and most people don't care, and just stick with the default.

Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @01:48PM (#26196454)
My experience was that IE finally got bad enough (around version 8), and Chrome got good enough, that even "grandmothers" started having everyone telling them to use Chrome, and it was so incredibly superior that you didn't have to be technical to appreciate it.

Now the reason everyone uses it is because it's psychologically the new "default", whether it is on the actual system or not. Everybody knows that's just what you do when you get a new computer: you go install Chrome. And the irony is that even now, with Edge being basically the same thing, most people don't bother to re-evaluate that default assumption that "the windows browser is bad". They just use Chrome.

Re:Tauri: An Electron alternative written in Rust by laggyluke on Friday February 19, 2021 @04:52PM (#26198487)
> most people don't bother to re-evaluate that default assumption that "the windows browser is bad"

That's one way to look at it.

Another way is to say that Microsoft has lost customer's trust and now has to work extra hard to earn it back.

IMO they've learned their lesson, at least for now, but it would also be great if others could learn from Microsoft's mistake too.

Re:Tauri: An Electron alternative written in Rust by 908B64B197 on Friday February 19, 2021 @01:54PM (#26196529)
> I have never bought a prebuilt Windows PC, so this is pure speculation, but I am wildly guessing that the dominance of Chrome is because computers are now coming with Chrome preinstalled and configured as the default

I'm not aware of any Windows machines shipping with Chrome pre-installed. But as soon as you use any website that's owned by Google you get spammed with install links for Chrome.

Re:Tauri: An Electron alternative written in Rust by toastal on Friday February 19, 2021 @07:49PM (#26200183)
An entire generation is being raised on Chromebooks. I wish Boot2Gecko and Firefox OS weren’t a bit ahead of themselves and had better ugh marketing.
Re:Tauri: An Electron alternative written in Rust by brokenkebab on Saturday February 20, 2021 @04:50AM (#26202992)
Entire generation where? Let's say I saw exatly 1 guy with a chromebook through my life, and likely chromebooks weren't even officially sold in my country. And still Chrome is the most popular browser here.
Re:Tauri: An Electron alternative written in Rust by toastal on Sunday February 21, 2021 @02:11AM (#26211519)
Chromebooks outsold Macs in 2020 and schools all over the US are pushing Chromebooks on students because they're affordable and accessible to most people.

https://www.geekwire.com/2021/chromebooks-outsold-macs-world...

Re:Tauri: An Electron alternative written in Rust by brokenkebab on Sunday February 21, 2021 @06:39AM (#26212728)
So it looks like we are talking about the States. Meanwhile Chrome dominates pretty much globally, and it doesn't correlate with Chromebooks adoption.
Re:Tauri: An Electron alternative written in Rust by encom on Friday February 19, 2021 @05:18PM (#26198741)
I remember there was a long period where everything would bundle Chrome. One wrong checkbox and your computer would be infested. Adobe Reader was one prominent example.
Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @01:31PM (#26196260)
Chrome didn't even exist until 2008. Firefox existed and had a foothold, but it was very much a minority. IE was >50% until 2010 and remained the single most popular browser until 2012: https://en.wikipedia.org/wiki/Usage_share_of_web_browsers#/m...
Re:Tauri: An Electron alternative written in Rust by ahepp on Friday February 19, 2021 @04:33PM (#26198293)
what happened in 2018-07?
Re:Tauri: An Electron alternative written in Rust by oxymoron on Friday February 19, 2021 @06:35PM (#26199519)
In 2008, when IE7 came out, I cried of joy. I turned 22 that year, so the 7 years with only IE6 and Firefox was a significant chunk of my life. Firefox showed us that the web wasn't finished and could still be improved, and then came Firebug which made Firefox first web dev the obvious choice. But the vast majority still used IE6, so there was always a miserable step in the project of fixing all the IE bugs. After doing it for years and knowing your foe, it was by then a relatively quick and manageable experience. The real pain was in knowing all the CSS2 features and other goodies that could never be used. Seeing Microsoft recognizing that, yes indeed, the web wasn't finished in 2001 was actually an emotional moment at that point.

So yeah, the situation is without doubt much better now. I think people tend to forget (or aren't aware) that Microsoft actively said "there's no more work to be done here" and stopped all progress for 7 years. There's been some progress on the web since 2014, as a point of comparison.

Re:Tauri: An Electron alternative written in Rust by mattmanser on Friday February 19, 2021 @06:46PM (#26199601)
I've had to say this a fair few times here, but I'll keep saying it.

IEDevToolbar, which Firebug was pretty much a clone of, came out a year before Firebug. And it took Firebug years to catch up in feature parity, as far as I remember.

So, firebug didn't make it the dev tool of choice. We all just hated microsoft. And tabbed browsing was great.

Re:Tauri: An Electron alternative written in Rust by oxymoron on Friday February 19, 2021 @07:31PM (#26200023)
I was young and dogmatic, so I did admittedly despise Microsoft back then. I can't recall I ever heard of IEDevToolbar, though. Did it really feature the DOM tree view where you could do CSS manipulation? I always had the impression that it was a Firebug invention, but I could be wrong about that.
Re:Tauri: An Electron alternative written in Rust by treve on Friday February 19, 2021 @07:54PM (#26200214)
The DOM inspector view in Firefox predates Firebug by years. My memory might be a bit shaky, but it may even have existed in Mozilla Web Browser?

It really looked like a 'DOM tree/tree of Javascript classes' though, not really like the inspector we have today.

Re:Tauri: An Electron alternative written in Rust by Klonoar on Saturday February 20, 2021 @01:47AM (#26202176)
What?

I used that IE toolbar setup for years, and it _never_ worked as well as Firebug did.

Re:Tauri: An Electron alternative written in Rust by datalus on Friday February 19, 2021 @01:38PM (#26196348)
Make no mistake, it's still a dumpster fire. Just maybe less raging.
Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @01:50PM (#26196483)
I worked on a highly complex web app for ~3 years, and we made a point to support Firefox, so whenever somebody had a Firefox-specific bug we wouldn't tell them to just use Chrome, we'd fix it. We only had 2-3 Firefox-specific issues in that entire time.

I have heard that mobile safari can be a bit more unruly than the rest, though it isn't really relevant to the question at hand

Re:Tauri: An Electron alternative written in Rust by mrec on Friday February 19, 2021 @03:46PM (#26197842)
Similar. Built a very complex app officially aimed at oldIE but made a point of ensuring it worked on other browsers too, largely on a skunkworks basis. A few years later (when we're no longer actively working on the app) everyone switched to Chrome and it Just Worked. Someone tried it on an iPad and it Just Worked (modulo some fat-finger challenges with small UI affordances).

At the time, jQuery was a big help in this, especially in hiding the event model mess. Things are a lot better now. Although I do wish we had a strict compatibility-checking layer that'd warn you if you used any feature of the web platform that wasn't supported by everything you wanted to support.

Re:Tauri: An Electron alternative written in Rust by Tijdreiziger on Friday February 19, 2021 @06:57PM (#26199686)
Anecdotally I wrote some JavaScript just today (I'm not a frontend dev but I write some simple stuff for fun sometimes). It seemed to me that every modern feature you'd care about is now widely supported. I used the JS fetch API and template strings and these things just work in modern browsers. I even encoded my web fonts in WOFF2 only, because it's so widely supported that I didn't see the point in bothering with WOFF1 too.
Re:Tauri: An Electron alternative written in Rust by Xevi on Friday February 19, 2021 @07:02PM (#26199725)
Tauri also uses MSHTML (Internet Explorer) on Windows. And there's no way I'm going back to developing for that.
Re:Tauri: An Electron alternative written in Rust by nicklarsennz on Friday February 19, 2021 @07:21PM (#26199921)
Isn't IE just using Chrome now? Or do you mean support for old IE?
Re:Tauri: An Electron alternative written in Rust by Xevi on Friday February 19, 2021 @08:23PM (#26200446)
No, IE is still the same. But Edge has moved to Chromium.
Re:Tauri: An Electron alternative written in Rust by nicoburns on Friday February 19, 2021 @08:00PM (#26200262)
Their browser is. But Windows' webview is still the IE11 engine.
Re:Tauri: An Electron alternative written in Rust by munificent on Friday February 19, 2021 @01:06PM (#26195941)
> Webviews are also a moving target so you need a big testing matrix.

Even worse, an OS update after you ship your app can spontaneously break it on end user's machines without you knowing or being able to do anything about it.

At least with the web, when new browser versions come out, you can fix your site since users essentially "install" it every time they refresh the page. But an installed app that runs on top of a spontaneously updated framework is the worst of both worlds.

Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @01:07PM (#26195965)
It's not hard to silently auto-update an Electron app's internals; I assume the same is true for Tauri
Re:Tauri: An Electron alternative written in Rust by timerol on Friday February 19, 2021 @02:18PM (#26196839)
The issue would occur if the auto-updater itself broke as a result of an OS upgrade
Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @02:35PM (#26197065)
Seeing as the auto-updater wouldn't have anything to do with the webview, I don't see how that's any more likely to happen in this case than it would be in Electron, or any other desktop application for that matter
Re:Tauri: An Electron alternative written in Rust by snemvalts on Friday February 19, 2021 @03:36PM (#26197751)
Need a docker for electron
Re:Tauri: An Electron alternative written in Rust by albertzeyer on Friday February 19, 2021 @01:49PM (#26196462)
But why would the system webview be less resource hungry? If it runs in an own process instance, the only memory you safe is (maybe) the executable code (i.e. maybe 100MB max).

Or you would need some common runtime which is shared across the OS, and somehow use IPC to it. Then you can potentially save some more memory. But I don't think this exists. And I'm also not sure how much you really would save.

The advantage of using the system webview is that you can update this component, in case there are any vulnerabilities or so.

Re:Tauri: An Electron alternative written in Rust by cozzyd on Friday February 19, 2021 @06:02PM (#26199189)
100 MB / app is significant, especially on laptops.

Slack used to use so much memory on Linux that I couldn't afford to run the desktop app and ran it inside a Firefox tab for years... seems to have gotten better somehow.

Re:Tauri: An Electron alternative written in Rust by kaba0 on Saturday February 20, 2021 @02:00PM (#26206789)
I doubt there would be many GUI apps that eat less than 100 MB — if only that would be the maximum.
Re:Tauri: An Electron alternative written in Rust by cozzyd on Sunday February 21, 2021 @12:05AM (#26210960)
Of course, but saving 100 MB in 5 apps would probably let you leave a few extra tabs open...or run emacs.
Re:Tauri: An Electron alternative written in Rust by sophiebits on Friday February 19, 2021 @03:34PM (#26197725)
They’re not inherently more efficient (other than the reduced application size), but Safari and Edge are both more resource-efficient than Chrome.
Re:Tauri: An Electron alternative written in Rust by OskarS on Friday February 19, 2021 @02:43PM (#26197171)
Dynamically loaded system libraries use shared memory. You can load it once for the entire system.
Re:Tauri: An Electron alternative written in Rust by albertzeyer on Friday February 19, 2021 @02:56PM (#26197328)
That's what I mean by executable code. But that is only really minor (<100MB or so) compared to the remaining resource usage.
Re:Tauri: An Electron alternative written in Rust by OskarS on Friday February 19, 2021 @04:51PM (#26198479)
Ah, sorry, I missed that in your comment.
Re:Tauri: An Electron alternative written in Rust by runarberg on Friday February 19, 2021 @01:22PM (#26196155)
> don't have to deal with all the small but time consuming compatibility quirks.

Good, then developers might start to develop against standards instead of handpicked browsers. Or if they use a future (unstable) standard that is their own headache (as opposed to user’s; which are subsequently in practice forced to use chromium derived browser).

An app developed against a single browser (as opposed to the web standard) should be considered what it is, an ugly hack, and developers that do it should only do it for their own private apps never to be published until it is standard compliant.

Re:Tauri: An Electron alternative written in Rust by hobofan on Friday February 19, 2021 @01:26PM (#26196205)
This is about desktop and not web development though. I agree that pages available on the web should be standard compliant and work with all browsers.

On the desktop you are developing against a runtime that the developer of the app gets to choose, so why not choose one that has less potential for quirks?

Re:Tauri: An Electron alternative written in Rust by danudey on Friday February 19, 2021 @01:41PM (#26196382)
Because then you'll get a more efficient app that people don't constantly complain about?

Especially on macOS, where Chrome/Chromium have historically been extremely inefficient, swapping the Chromium engine for WebKit2 WebViews would mean battery, memory, and CPU savings which would absolutely be worth the effort IMHO.

Re:Tauri: An Electron alternative written in Rust by hobofan on Friday February 19, 2021 @01:47PM (#26196439)
Apart from the install size which is still not optimal, it is very much possible to write an efficient Electron app, as evidenced by Discord and Element.

That Slack, the poster child of bad Electron apps performs so badly must therefore have different reasons. Exactly the same way you can write websites in a way that is more or less efficient you can write Electron apps of varying degrees of efficiency.

Re:Tauri: An Electron alternative written in Rust by plorkyeran on Friday February 19, 2021 @04:36PM (#26198321)
Discord is efficient now? I have to restart it on a regular basis because it starts using 5+ GB of ram.
Re:Tauri: An Electron alternative written in Rust by innocenat on Friday February 19, 2021 @08:47PM (#26200640)
Especially on MacOS where Webkit usually behave differently? Like, why would webkit still require webkit prefix for Web Audio API, which is like 8 years old at this point.

To me, develop for Electron is more fun than normal web because I don't have to check whether the new web feature I am using is available everywhere (especially Safari) yet.

Re:Tauri: An Electron alternative written in Rust by userbinator on Saturday February 20, 2021 @02:43AM (#26202386)
"standards" - in practice, it's "what Google wants".
Re:Tauri: An Electron alternative written in Rust by lcnmrn on Friday February 19, 2021 @03:38PM (#26197767)
An alternative to Electron should be built using Servo and Deno, both written in Rust.
Re:Tauri: An Electron alternative written in Rust by willwinger on Saturday February 20, 2021 @06:04AM (#26203286)
I agree, however last time I checked Servo was not that stable.
Re:Tauri: An Electron alternative written in Rust by lcnmrn on Saturday February 20, 2021 @06:11AM (#26203311)
Yes, it doesn't yet render pages as good as other browsers, but we can tweak our code for it. 10x better performance and 100x less memory usage is a win.
Re:Tauri: An Electron alternative written in Rust by nix0n on Friday February 19, 2021 @02:44PM (#26197178)
> WebView2 has to be installed separately

Many Windows installers package one or more Visual Studio Redistributable packages into the installer. Is that not possible for these installers?

Re:Tauri: An Electron alternative written in Rust by modeless on Friday February 19, 2021 @01:05PM (#26195932)
I question how major that benefit is. I think strict Electron-only apps are not really that common. All the ones I use have a web version.
Re:Tauri: An Electron alternative written in Rust by veidr on Saturday February 20, 2021 @06:57AM (#26203498)
One approach that you can take to deal with this is to mentally back way the fuck off the 1990s on what your UI expectations are.

Give up pixel-accuracy and fine-grained control of your app's UI layer, and just treat it how people like Peter Norvig and Chris Lattner treat their home pages.

There isn't any browser with even 0.1% share that can't render those things.

You also don't really have to go as far as those guys do, leaving the font 14-point Times New Roman and using HTML 1 tables. You can add some style, fonts, etc... just don't add anything that would make it _not work_ if somebody opened it in Netscape Navigator 4.

There is definitely a big downside, in that your app won't look all dope and modern. For many apps that is a deal breaker. Also, some UIs really do require a higher fidelity UI. Not all UIs are just like, buttons and menus (although a lot are).

But there is also a big upside: durability, in the sense that your app's UI will work on most 10-year old computers, and most computers 10 years from now.

Re:Tauri: An Electron alternative written in Rust by 908B64B197 on Friday February 19, 2021 @01:20PM (#26196126)
I have to post it here because it's on top: On Windows the new WebView is Chromium.

https://developer.microsoft.com/en-us/microsoft-edge/webview...

Old one is, of course, kept for compatibility reasons.

Re:Tauri: An Electron alternative written in Rust by the_duke on Friday February 19, 2021 @01:23PM (#26196162)
Yes, but it is not installed by default. You have to install it separately, at least for now,which makes things a lot more complicated if you want your app to rely on it.
Re:Tauri: An Electron alternative written in Rust by oldmanhorton on Friday February 19, 2021 @06:21PM (#26199404)
Edge is pushed to the vast majority of PCs, and on those machines, I believe it provides a system-level webview2 component. You can choose to package your own webview2 into your app if you want the extra compatability that offers at expense of app size and ram usage
Re:Tauri: An Electron alternative written in Rust by encom on Friday February 19, 2021 @05:25PM (#26198823)
I'm moderately certain that Chromium is installed by default on new installs of Windows now.
Re:Tauri: An Electron alternative written in Rust by Klonoar on Saturday February 20, 2021 @01:49AM (#26202182)
WebView2 does not use that Chromium, however.

It's slightly absurd, and you should direct the "WTF?" to Microsoft for this.

Re:Tauri: An Electron alternative written in Rust by e_y_ on Friday February 19, 2021 @02:29PM (#26196995)
I wonder if it would make sense for Tauri to support shipping a bundled webview engine for platforms where the native webview is outdated or otherwise problematic for your application? With the idea that you could eventually migrate to system webviews.

That way, you're building with cross-platform in mind but still have the option to pick a stable target if you need it, compared to solutions like Electron where you don't have that choice.

Re:Tauri: An Electron alternative written in Rust by themihai on Friday February 19, 2021 @04:07PM (#26198031)
>> I wonder if it would make sense for Tauri to support shipping a bundled webview engine for platforms where the native webview is outdated

I guess you can ship an electron version for these platforms where native webview sucks. Chances are that once you do the electron app you start doubting the benefits of shipping a webview based app.

Re:Tauri: An Electron alternative written in Rust by pjmlp on Friday February 19, 2021 @01:21PM (#26196135)
A major benefit of Electron to Google is the amount of FOSS developers helping to turn what is left of the Web into ChromeOS.
Re:Tauri: An Electron alternative written in Rust by hawk_ on Friday February 19, 2021 @02:58PM (#26197340)
any idea when windows webview will switch over to Chromium?
Re:Tauri: An Electron alternative written in Rust by ASalazarMX on Friday February 19, 2021 @01:42PM (#26196393)
> A major benefit of Electron is that you can develop against a single browser version and don't have to deal with all the small but time consuming compatibility quirks.

Somehow I doubt the ideal solution is to bundle a web browser with every app. Electron feels like a prototype that went out of control.

Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @01:52PM (#26196509)
Nearly every successful technology is a prototype that went out of control :)

That doesn't mean we shouldn't try and improve on things given the opportunity, but it's not an indictment either

Re:Tauri: An Electron alternative written in Rust by babypuncher on Friday February 19, 2021 @01:55PM (#26196545)
I think they're overstating the browser compatibility problem too. It was really bad 15 years ago, but today it is almost a non-issue. Between significantly improved standardization of web technologies, and new tricks like polyfills, I think it has become pretty uncommon for apps to not just work on multiple browsers without any tinkering.
Re:Tauri: An Electron alternative written in Rust by ahepp on Friday February 19, 2021 @04:47PM (#26198447)
"almost a non-issue" doesn't sound very convincing to me.

As someone who doesn't write GUIs often, I just don't want to have to worry about it at all. What's the cost of electron over webviews? 100mb hdd space? On the other side of the trade, never having to worry about cross platform concerns again? Not having to support or test on multiple platforms?

Seems like a no brainer to me. But it's entirely possible, even likely, that I'm putting too much faith in electron, or that there are better options I just don't know about.

Re:Tauri: An Electron alternative written in Rust by norman784 on Friday February 19, 2021 @05:08PM (#26198665)
I really don’t share your point of view, but I understand it, for me feels like we as developers are getting worse and worse with the time, we get every year more powerful machines but our software is getting worse every year, who cares about performance if is cheap to develop, maybe if our apps uses less resources it would have less impact in the environment (less energy consumption is better for everyone, except for the lazy developers).

I really hate electron apps, for example you have teams, that is written in electron, in linux is somehow better than the web version but is just way worse than the windows/mac versions, in web you can view 2 cams, linux 4 but in mac and windows you have more cams at the same time and also a lot of features that are missing in linux, so I don’t see too much the benefits of electron here, just pure laziness of microsoft not willing to invest in a better cross platform app.

Re:Tauri: An Electron alternative written in Rust by ahepp on Friday February 19, 2021 @06:47PM (#26199606)
I also hate electron apps, I refuse to install them on my personal machine, and use a(n independent) web browser.

Efficient software is great, the cool parts of the projects I work on are efficient. In my case, the GUI doesn't need to scale in the same way, and I'm pretty confident the customer would rather have better cross platform support (at a lower cost than if we had to test a bunch of OS web views) than 100MB of their disk back.

But yeah, there are plenty of examples of software I use where I disagree. Although this is often based on my aesthetic dislike for an inelegant system, than on any kind of resource constraint.

Re:Tauri: An Electron alternative written in Rust by saagarjha on Friday February 19, 2021 @05:13PM (#26198701)
> I just don't want to have to worry about it at all

And in doing so you're prioritizing your needs over all of your users'. I think it's fair to claim that a minor convenience to you, at the cost of inconvenience to all your users, might be something you may want to deal with.

Re:Tauri: An Electron alternative written in Rust by ahepp on Friday February 19, 2021 @06:13PM (#26199317)
Actually it's the opposite. I know my users care more about cross platform support, or any other feature I could whip up, rather than 100MB HDD space.
Re:Tauri: An Electron alternative written in Rust by mst on Saturday February 20, 2021 @12:41AM (#26201925)
I cordially dislike Electron apps, but once one factors in opportunity cost given limited developer manpower, the trade-off you're choosing to make here is quite likely entirely rational.

I would prefer to live in a world where I didn't believe the last sentence to be true, but in the current world I still think it is :)

Re:Tauri: An Electron alternative written in Rust by jlokier on Friday February 19, 2021 @02:05PM (#26196681)
I use Chrome, Safari and Firefox on a Mac.

In my experience, unfortunately it isn't true that apps work with very high reliability. This is why I use multiple browsers. I don't want to use Chrome, and I encounter new websites with functionality that don't work properly in Safari or Firefox quite regularly. Some of this is even quite basic functionality.

From things like shopping carts where the final payment button doesn't work in Firefox (nothing happens), to video conferencing that sort-of works in Safari but then the audio breaks while it is reliable in Chrome.

Even GitHub doesn't render properly in Safari occasionally (the page is full of weird size text and giant rectangles). But that's almost certainly a Safari bug.

Re:Tauri: An Electron alternative written in Rust by brundolf on Friday February 19, 2021 @02:48PM (#26197231)
This is exactly the problem I was suggesting might be improved by an increase in browser diversity. 9/10 times, the issue isn't the browser itself, the issue is that the dev didn't bother to test and find the (handful of often small and easy to fix) bugs in other browsers. If they were forced to do QA - and ideally, had to adhere better to the actual standards to make their own jobs easier - you might have an easier time using those apps (and the libraries they depend on) in other browsers.
Re:Tauri: An Electron alternative written in Rust by babypuncher on Friday February 19, 2021 @02:33PM (#26197041)
I think this is more a problem with developers working in Chrome and using Blink-specific features. I stopped having compatibility issues with my apps when I moved to Firefox years ago.
Re:Tauri: An Electron alternative written in Rust by jlokier on Friday February 19, 2021 @03:45PM (#26197831)
Some of it is Blink-specific, but some of it is silly Javascript stuff. How else do you explain a shopping cart final payment button not working.

I like development in Firefox too. When I was doing it intensively (just ~2 years ago), I found some of the CSS I was using behaved differently between Gecko, WebKit and Blink, though (and differently again in Android's pre-chrome browser), so I reconfirmed that I do need to test some things across all browsers. By differently, I don't mean prefixed browser-specific CSS (although there is that), I mean standardish things like table row height calculations showed up significantly differently, certain border highlights, and a number of WebKit rendering bugs that Gecko did not have. Key-event based text editing and wheel events are also significantly different, even more so when you include the common mobile browsers.

Re:Tauri: An Electron alternative written in Rust by saagarjha on Friday February 19, 2021 @05:14PM (#26198712)
> How else do you explain a shopping cart final payment button not working.

Given the megabytes of JavaScript on many websites, the chances that some of it depends on some random VM internal quirk is quite high.

Re:Tauri: An Electron alternative written in Rust by pitay on Friday February 19, 2021 @07:01PM (#26199722)
At least with writing uncomplicated web applications it was still quite easy to have it compatible with the major browsers, you just had to test the web application with them as you wrote it to make sure. Compatibility problems didn't even come up very much while building it if you stayed reasonably within the boundaries of standards that were well entrenched. The biggest issue was how little CSS IE6 supported, if you did anything fancy with CSS and it didn't work with IE6 you had to include an IE6 specific hack, fortunately that was easy and worked completely fine with other browsers.

There were problems with internal off the shelf applications whose user interface was built for IE6 only. The funny thing is those applications still worked well with the Firefox of the time, but IE9 broke compatibility with them and the applications didn't work on IE9, but IE10 got released and was compatible with them again.