News for hackers. Stuff that matters.
Re:Every Windows 11 app should kill Electron, and Discord ju... by cheschire on Saturday November 07, 2026 @07:13AM (#50403866)
I'm pretty sure this was known since the early days of Electron. It was even one of the chief complaints about VS Code when it was first launched.

Electron's value prop has always been about having one team producing one app that is supported on multiple platforms with minimal additional effort.

This article does nothing to address that.

Re:Every Windows 11 app should kill Electron, and Discord ju... by RunSet on Saturday November 07, 2026 @08:06AM (#50404238)
> Electron's value prop

"Now you can have the cross-platform compatibility of a single-page application just by bundling Chrome."

Re:Every Windows 11 app should kill Electron, and Discord ju... by zdragnar on Saturday November 07, 2026 @08:31AM (#50404410)
It's worth remembering that electron was first released back in 2016 (formerly atom shell fro 2013) so Internet Explorer was still very much a thing.

Not a great justification, but it made a bit more sense then.

Re:Every Windows 11 app should kill Electron, and Discord ju... by 72deluxe on Saturday November 07, 2026 @09:52AM (#50405051)
That's like saying it would make sense to make Internet Explorer work on all platforms. It doesn't make sense.

The solution is to use user interface toolkits that are available on each platform. For example, wxWidgets or Qt or appropriate bindings to them if you can't be bothered to write UI code for each platform you're targeting.

Re:Every Windows 11 app should kill Electron, and Discord ju... by toast0 on Saturday November 07, 2026 @03:00PM (#50407522)
> That's like saying it would make sense to make Internet Explorer work on all platforms. It doesn't make sense.

Why not? Microsoft released IE for win16, win32, wince, macos system 7 through 9, macos X, Solaris, HP-UX. If it ran on all those platforms, Microsoft probably could have supported it on any platform that had the capability of running graphical web browsers.

Re:Every Windows 11 app should kill Electron, and Discord ju... by wiseowise on Sunday November 08, 2026 @03:45AM (#50411491)
Maybe because wxWidgets is garbage DX and UX wise, and Qt isn’t free and doesn’t allow you to reuse web code? One of the value prop of electron is to reuse your web codebase.
Re:Every Windows 11 app should kill Electron, and Discord ju... by 72deluxe on Sunday November 08, 2026 @08:33AM (#50413205)
How is wxwidgets garbage DX and UX wise? You can literally read the source code and can build the library in 5 minutes, and the UX is native user interface elements of the given platform.

I don't see how reusing web code is an advantage. Web code is for the web. We are talking about a native platform (Windows 11) which has a mature API platform stretching back decades. Why would you need to make it "web"?

Re:Every Windows 11 app should kill Electron, and Discord ju... by tekla on Saturday November 07, 2026 @08:08AM (#50404252)
The problem is that it made everyone's life worse.
Re:Every Windows 11 app should kill Electron, and Discord ju... by johnh-hn on Saturday November 07, 2026 @08:21AM (#50404352)
Not mine. I loathe Electron like many people. But, as someone who is legally blind and has very limited vision, being able to have custom UI zoom levels, per application, has made my life much easier.

For a long time, and mostly out of frustration, I wanted to build my own stack of software around my vision. But the mammoth amount of effort it would require meant I never went through with it.

Re:Every Windows 11 app should kill Electron, and Discord ju... by freecodeio on Saturday November 07, 2026 @08:41AM (#50404462)
nice point, people like to shit on the web but it has one of the biggest accessibility features that most of the gui frameworks would just leave them as feature suggestions for years
Re:Every Windows 11 app should kill Electron, and Discord ju... by hajile on Saturday November 07, 2026 @08:49AM (#50404504)
I'd note that as stuff like A11y gets added into something like Discord, we'll see the app slowly bloat up to compensate.

Google Chrome generally used around 25mb per tab in 2010. Today, that number is often 500mb or even 1gb.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Ygg2 on Saturday November 07, 2026 @09:19AM (#50404754)
Would you really need 500mb for accessibility? Can't text to speech be outsourced to the OS or companion app?
Re:Every Windows 11 app should kill Electron, and Discord ju... by masfuerte on Saturday November 07, 2026 @09:54AM (#50405069)
And Windows apps had accessibility before computers had 25MB RAM in total. Accessibility is not the cause of bloat.
Re:Every Windows 11 app should kill Electron, and Discord ju... by freecodeio on Saturday November 07, 2026 @10:07AM (#50405176)
do any of these native GUI libraries provide just as rich accessibility experiences to disabled people?
Re:Every Windows 11 app should kill Electron, and Discord ju... by TJSomething on Saturday November 07, 2026 @04:03PM (#50408037)
If we mean native as in OS-specific GUI APIs built-in to the operating system, then yes. All of the browsers are abstractions on top of that. If we mean cross-platform GUI libraries for Rust I think your choices are like Tauri (which is a webview), Slint, and maybe Fltk with extensions?
Re:Every Windows 11 app should kill Electron, and Discord ju... by ethin on Saturday November 07, 2026 @07:39PM (#50409455)
Yes, yes they do. WXDragon for Rust, for example, provides quite good accessibility. And maybe accessibility would be better for frameworks like QT or DearImGUI if (1) people didn't act like the web was some paragon of accessibility (hint: it really, really isn't, not when websites misuse web APIs -- which happens quite frequently) and (2) UI framework developers didn't just make a UI framework that looked sexy but left accessibility on the floor.

What's oddly being ignored in this entire thread (so far, as of the time of writing) is that back in 2017-2018 Discord was an Electron app and was completely inaccessible. The web did not magically bring accessibility to the table -- we disabled people had to go yell at Discord to fix their shit, and even then it took them like 2-3 years, and even now Discord has some very very weird accessibility issues that will randomly crop up here and there.

Re:Every Windows 11 app should kill Electron, and Discord ju... by afdbcreid on Saturday November 07, 2026 @04:02PM (#50408024)
The article implies that a11y will exist on launch and maybe already is.

And it doesn't require that huge amount of RAM, no. What requires the Chrome RAM is running JavaScript and do it fast, and a lot of extremely complicated features, most of which a single app will never use.

Re:Every Windows 11 app should kill Electron, and Discord ju... by saagarjha on Saturday November 07, 2026 @11:56PM (#50410516)
This is mostly because websites have gotten heavier and we want them to run faster.
Re:Every Windows 11 app should kill Electron, and Discord ju... by hobo123 on Sunday November 08, 2026 @07:15AM (#50412599)
How much of that is due to chrome, and how much is because say Jira and YouTube are incredibly bloated?
Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Saturday November 07, 2026 @03:43PM (#50407867)
All the native APIs across major platforms have accessibility features, how do you think browsers implement theirs?
Re:Every Windows 11 app should kill Electron, and Discord ju... by sitzkrieg on Saturday November 07, 2026 @08:08PM (#50409610)
i switched a cross platform application TO web stack for this reason. accessibility and screen reader usability is incredibly important and massively overlooked in many domains
Re:Every Windows 11 app should kill Electron, and Discord ju... by GoblinSlayer on Sunday November 08, 2026 @03:58AM (#50411538)
Already done. Windows has builtin font scaling capability, gtk has text only scaling.
Re:Every Windows 11 app should kill Electron, and Discord ju... by johnh-hn on Sunday November 08, 2026 @05:13AM (#50411919)
The Windows settings scale resources for the OS, not per application. The more applications you use, the worse these settings become. If I'm unable to use an application's own features to modify the size of something in its UI, I have to fall back to the Windows settings. That leads to the following:

1. Use the make everything bigger/font size settings to increase the size of what I currently can't see

2. Restart

3. Open every application I need, and go through every major feature in each of them to determine if I can still see things comfortably, while making sure no elements have exploded in size as this also leads to usability problems

4. If not, go to 1

I have to do this every time I install a new application, or one of them updates and changes their UI or decides to opt into the Windows accessibility settings. The latter one happened a few years ago with Firefox, and cost me a day to sort.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Grombobulous on Saturday November 07, 2026 @08:36AM (#50404434)
The electron hate train needs to pull in to the station and be retired. We can just admit that it was a good solution for the problems of its time just like JQuery. Electron was conceived over a decade ago and it was an imperfect solution, but there’s no denying that it was a solution.

Election predates WebAssembly by 5 years and hit the scene only one year after Rust was first created.

And just like JQuery, its time is coming to a close as better frameworks are available now that weren’t available back then.

Re:Every Windows 11 app should kill Electron, and Discord ju... by s3p on Saturday November 07, 2026 @08:37AM (#50404442)
[delayed]
Re:Every Windows 11 app should kill Electron, and Discord ju... by Kuraj on Saturday November 07, 2026 @09:03AM (#50404624)
Noone is claiming that, though.

Discord isn't packaged as an Electron app simply because it pretends to be native, but because it has native parts that aren't available in the web version.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Grombobulous on Saturday November 07, 2026 @09:07AM (#50404660)
Discord actually launched as a web app, and then moved to adding a desktop app, which has quite obviously become far more popular than visiting discordapp.com and using it in the browser.

Why do you think that is?

The funny part about this complaint is that you can literally just use the web app if you hate the desktop Electron app so much.

Re:Every Windows 11 app should kill Electron, and Discord ju... by bigstrat2003 on Saturday November 07, 2026 @02:54PM (#50407484)
> We can just admit that it was a good solution for the problems of its time just like JQuery.

We would be lying if we did that. Electron was never, ever a good solution. It was something solely used by devs who prioritized their own ease of work over the actual user experience, i.e. bad devs.

Re:Every Windows 11 app should kill Electron, and Discord ju... by kristiandupont on Saturday November 07, 2026 @03:09PM (#50407589)
Do you have an employer?
Re:Every Windows 11 app should kill Electron, and Discord ju... by rpdillon on Saturday November 07, 2026 @04:50PM (#50408363)
Its a straight-up business decision, generally made by MBAs and with advice from engineers and executed by the engineers. That's because it changes the shape of the org when you need a separate team for each platform, so any org where the benefit of doing so doesn't get articulated sufficiently, will end up with fewer devs covering more platforms.

Acting like this is a decision the ICs make is disconnected from why electron is so prevalent.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Grombobulous on Saturday November 07, 2026 @05:10PM (#50408537)
If it’s so easy to provide a better user experience using something else besides Electron then logically you should be able to point to chat apps that won over more user adoption than Slack and Discord.

Someone would have been able to disrupt that market by making a much better chat app since Elecron is so bad for user experience.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Brian_K_White on Saturday November 07, 2026 @03:01PM (#50407534)
It was never a good solution and there is no reason to ever stop calling a turd a turd.
Re:Every Windows 11 app should kill Electron, and Discord ju... by afdbcreid on Saturday November 07, 2026 @04:02PM (#50408031)
We could, if people would stop doing it today.
Re:Every Windows 11 app should kill Electron, and Discord ju... by hackernud3s on Saturday November 07, 2026 @05:08PM (#50408516)
I made a bunch of Electron apps in my time. I always tried to talk the client out of it. "Just make it a website" I would say. Still, there were times where it made sense.
Re:Every Windows 11 app should kill Electron, and Discord ju... by bee_rider on Saturday November 07, 2026 @05:09PM (#50408524)
Electron was an ok solution to the problem they were looking at, “how do I waste as much compute as possible.” Unfortunately it had the side effect of drawing a bunch of stuff on the screen.

Luckily in the modern era we have invented language models, which allow us to expend vast resources on text generation instead.

Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Sunday November 08, 2026 @04:04AM (#50411570)
It was only a solution to Web developers that refused to learn anything else.
Re:Every Windows 11 app should kill Electron, and Discord ju... by IshKebab on Saturday November 07, 2026 @08:25AM (#50404375)
> The article does nothing to address that.

I dunno if you've been living under an enormous rock, but they used AI to make this.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Grombobulous on Saturday November 07, 2026 @08:35AM (#50404427)
The article at least indirectly addresses that.

At the time Electron came out, there weren’t as many cross-platform UI frameworks available that they could have gone with.

You can see this with the comparison chart. GPUI effectively replaced Electron so the desktop app UI works across platforms. React Native is replaced with WebAssembly so that Rust can be the primary language across all platforms including mobile.

It seems like the new situation for Discord is rather elegant, and that none of this would have been available when it first came out.

Re:Every Windows 11 app should kill Electron, and Discord ju... by AlienRobot on Saturday November 07, 2026 @09:02AM (#50404609)
Why https://gpui.rs/ doesn't have a single screenshot of how it actually looks?

The first thing anyone would want to know when choosing a GUI framework is how it looks by default. Every major GUI toolkit has screenshots on their websites.

This happens so often it makes me wonder if people just don't know how to take a screenshot and put it in a webpage with <img>.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Grombobulous on Saturday November 07, 2026 @09:10AM (#50404689)
Probably because it's not meant to be like Bootstrap.js where everyone's UI looks identical?
Re:Every Windows 11 app should kill Electron, and Discord ju... by small_scombrus on Saturday November 07, 2026 @09:13AM (#50404703)
Even still, some screenshots of here's something we made earlier are always nice to see what's possible
Re:Every Windows 11 app should kill Electron, and Discord ju... by AlienRobot on Saturday November 07, 2026 @09:22AM (#50404779)
Even imgui has screnshots.
Re:Every Windows 11 app should kill Electron, and Discord ju... by thisismyanon2 on Sunday November 08, 2026 @02:47AM (#50411222)
gpui is meant to be a fairly low level library. If you want screenshots check out zed, but be aware that for many use cases you'll have to roll your own widgets.

gpui-kit (formerly gpui-component) provides a richer set of widgets and a Javascript shell. Screenshots can be found here:

https://github.com/longbridge/gpui-kit/discussions/989

Re:Every Windows 11 app should kill Electron, and Discord ju... by rstat1 on Saturday November 07, 2026 @05:45PM (#50408748)
Click either of the 2 links at the top right of the page, and you get screenshots of GPUI apps.
Re:Every Windows 11 app should kill Electron, and Discord ju... by jenadine on Saturday November 07, 2026 @10:10AM (#50405206)
GPUI works well for Zed, but it's built for Zed's needs only. There is no official crates.io udates. Breaking changes land as Zed needs them, and outside PRs often get declined causing a mess of several forks.
Re:Every Windows 11 app should kill Electron, and Discord ju... by sbarre on Saturday November 07, 2026 @06:56PM (#50409196)
Herdr's new native app uses GPUI for it's mod framework, so hopefully as more apps adopt it, a better community/package/release process builds around it.
Re:Every Windows 11 app should kill Electron, and Discord ju... by braiamp on Saturday November 07, 2026 @07:20PM (#50409365)
GPUI/Zed devs are trying to contact discord to see what can be improved:

> Hi Stanislav, I'm one of the core maintainers for GPUI at Zed, if anyone at discord would like to talk to us about improvements to the framework or to upstream your customizations, please get in touch! My DMs should be open :)

https://twitter.com/radgendervibes/status/211810701651020193...

Re:Every Windows 11 app should kill Electron, and Discord ju... by thiht on Sunday November 08, 2026 @07:09AM (#50412572)
Honestly GPUI feels like the closest thing we have to a working UI framework for Rust. That's probably because GPUI is not developed in a vacuum, it actually needs to work at Zed's scale because they ship a real product and GPUI needs to deliver.

I'm very excited to see GPUI extended for general purpose usages in the future.

Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Saturday November 07, 2026 @03:05PM (#50407558)
I love when folks complain about C++ in stuff like Qt, and then write C++ addons on Electron apps, to make them actually get an usable performance.
Re:Every Windows 11 app should kill Electron, and Discord ju... by accurrent on Saturday November 07, 2026 @08:48AM (#50404501)
A huge pain of desktop development is managing dependencies particularly if you are coming from C++/Native code. Imagine you want to make simple app that accesses the webcam for instance: If you use chrome you got the full html5 runtime, whereas with other tools you'd need bespoke libraries which your end user may not have.

The only way to ship the same code between linux, macOS, and Windows would have been to either use something like Qt or the JVM back in the 2010s. The JVM desktop stuff was super ugly and Java itself had become notorious (also if you wanted anything remotely interesting like webcam/microphone or multimedia access you'd still have to ship dynamic libraries). Qt required special packaging skills to ship to the end user especially if third party libraries were involved. Electron killed that by bundling chrome (and chrome has a huge api surface).

Today, I would argue the package management situation for a language like rust is a lot different. You dont have to cobble different DLLs together, you can just statically compile dependencies and cargo/rust do a pretty good job of making sure it's bundled with your app.

Re:Every Windows 11 app should kill Electron, and Discord ju... by 72deluxe on Saturday November 07, 2026 @09:49AM (#50405025)
But then the C++ libraries you mentioned also had the ability to statically link into a binary, which means you could statically link the webcam access in, in your example. So I don't see the advantage you're arguing for?
Re:Every Windows 11 app should kill Electron, and Discord ju... by cogman10 on Saturday November 07, 2026 @10:00AM (#50405132)
It comes down to package distribution.

Chrome had already solved the hard problem of "how do we support webcams on linux, windows, and mac" and you as the dev just needed to use the Javascript webcam api. ( https://developer.mozilla.org/en-US/docs/Web/API/MediaDevice... )

In C++ land, you are ultimately going to either need to cook up your own webcam library or look for a 3rd party (which, in 2010, likely didn't exist) to provide it.

Today, there are a few easy to discover rust crates which provide cross platform webcam apis. But further, rust does cross platform better than C/C++ IMO. It's really easy to change how code is compiled based on the target. That was all well thought out because rust was supposed to be a language for browsers.

Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Saturday November 07, 2026 @03:42PM (#50407855)
Qt is easily obtainable via vcpkg or conan.
Re:Every Windows 11 app should kill Electron, and Discord ju... by edoceo on Saturday November 07, 2026 @03:54PM (#50407954)
Was that true in 2012?
Re:Every Windows 11 app should kill Electron, and Discord ju... by Krutonium on Saturday November 07, 2026 @04:03PM (#50408036)
Very yes.
Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Saturday November 07, 2026 @04:11PM (#50408107)
Depends, it was easily obtainable via OS package managers, and installers in 2016.

However that has been true since 2016, and here we are, 10 years later.

Re:Every Windows 11 app should kill Electron, and Discord ju... by justincormack on Saturday November 07, 2026 @05:12PM (#50408545)
For Linux, but not for Windows and Mac
Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Sunday November 08, 2026 @03:36AM (#50411455)
I mentioned "and installers" for a reason, I know Qt since KDE exists.
Re:Every Windows 11 app should kill Electron, and Discord ju... by bluGill on Saturday November 07, 2026 @07:48PM (#50409498)
Neither existed in 2012, so of course not. On the other hand, QT has always been really easy to download from QT. I don't remember who owned QT in 2012. They've changed hands a couple times over the years, but in 2012 I was downloading QT from whoever on them. QT was large, so you needed a decent sized computer to build it, but in 2012 this was not a big deal.

People get too hung up on package managers. When you're building your own proprietary you don't really need a package manager, you just need a central place to download the tarballs from. Or you could do a monorepo and just build everything locally - in 2012, that means you start your build before you leave Friday afternoon, and when you come back Monday, everything's built.

Re:Every Windows 11 app should kill Electron, and Discord ju... by bluGill on Saturday November 07, 2026 @07:45PM (#50409484)
A cross platform webcam library isn't that hard to build at C++. I mean, it's tedious, and having to support multiple different operating systems makes it harder, so it certainly is going to cost a small pile of money, but this is not hard. The pile of money needed won't be all that large. Mind you, I prefer to use something that's off the shelf rather than writing my own, but it would not be hard to write my own.

The hard part of all webcam libraries is all the different webcams running all their different proprietary protocols.

Re:Every Windows 11 app should kill Electron, and Discord ju... by MindSpunk on Sunday November 08, 2026 @01:12AM (#50410856)
Write the code or build the code? That's always the problem with C++ libraries.

It's not that difficult to write cross platform C++ code. Consuming the dependency is always painful. What build system does it use? What compilers does it support? How do you get the code? There is 0 standardization for these things.

C++ code isn't always that portable either. Old code in a new compiler is very likely to break on warnings, especially if the old code made the high quality decision to hard code -Werror in their build system.

From personal experience Rust as a package and ecosystem is far more portable than C++.

Re:Every Windows 11 app should kill Electron, and Discord ju... by jpc0 on Sunday November 08, 2026 @01:13AM (#50410861)
It is 2026 and regardless it has been quite a while that cmake fetch content had been usable.

The only reason why a cross platform well supported C++ package/module isn't available is because nobody has bothered to build it.

If it really is something that bugs you then be the one to do it, throw your clanker of choice at it and integrate it into a project you run in production.

"Chromium ahips with it" isn't a valid excuse these days, that is likely an hour or two away with a modern LLM, building and packaging electron is more work.

Re:Every Windows 11 app should kill Electron, and Discord ju... by jasomill on Saturday November 07, 2026 @01:01PM (#50406559)
Dynamic vs static linking is mostly a red herring for desktop GUI application development unless you want to integrate into something like Linux distro package managers, as dynamic libraries on Mac and Windows can be self-contained within the application bundle/directory with no disadvantage beyond marginally longer startup time, and you can do similar things with Flatpak and friends on Linux.

The real difference is that Rust provides a package repository with a unified build system that's as simple to use as NPM or NuGet.

vcpkg which is similar exists today, but it didn't in 2015 when Discord started, still isn't anywhere near as comprehensive as package repositories for languages where package management is part of the standard toolchain, and the underlying build systems are far messier under the hood.

It can also be helpful in development to use libraries built from source as part of the application's build process, at least as an easily-accessible option, which wasn't common practice in most C/C++ ecosystems historically where different libraries used different build systems and if you wanted to integrate them into something like a Visual Studio solution for easy reference to source code during development and debugging you were often on your own.

Re:Every Windows 11 app should kill Electron, and Discord ju... by vrighter on Saturday November 07, 2026 @10:18PM (#50410140)
you can do that easily on linux too
Re:Every Windows 11 app should kill Electron, and Discord ju... by hobo123 on Sunday November 08, 2026 @06:28AM (#50412338)
IIRC Qt is LQPL, so if you linked it statically you'd have to license your code as LGPL too. Shipping Qt as a separate dll didn't trigger that issue.
Re:Every Windows 11 app should kill Electron, and Discord ju... by cosmotic on Saturday November 07, 2026 @11:45AM (#50405934)
Java desktop was only ugly if you chose for it to be. It was pretty minimal effort to get native look and feel. Nothing built in electron looks native. If we're accepting custom interface using electron, that was doable with Java too.
Re:Every Windows 11 app should kill Electron, and Discord ju... by threetonesun on Saturday November 07, 2026 @03:26PM (#50407738)
JetBrains IDEs arguably look/behave better than VSCode as far as a native app goes. I wouldn't say either look great on MacOS but a truly "native feeling" Mac app is usually quite different than a Linux/Windows equivalent.
Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Saturday November 07, 2026 @03:41PM (#50407841)
Long time ago, Apple had a proper OS X Swing L&F, when you could do Cocoa in Java, and there was still some uncertainty if Objective-C would be embraced by Mac OS development community.
Re:Every Windows 11 app should kill Electron, and Discord ju... by johnny22 on Saturday November 07, 2026 @10:06PM (#50410088)
I much prefer vscode to intellij
Re:Every Windows 11 app should kill Electron, and Discord ju... by NetMageSCW on Saturday November 07, 2026 @06:35PM (#50409073)
Why is it no one ever seems to do it then? I have never seen a Java app look or act native on Windows.
Re:Every Windows 11 app should kill Electron, and Discord ju... by dingaling911 on Saturday November 07, 2026 @10:09PM (#50410101)
Eclipse
Re:Every Windows 11 app should kill Electron, and Discord ju... by sdthjbvuiiijbb on Saturday November 07, 2026 @10:23PM (#50410163)
I haven't used Eclipse in a decade, so maybe it's changed, but back then it was very much a Java UI, not a native feeling one.
Re:Every Windows 11 app should kill Electron, and Discord ju... by dingaling911 on Saturday November 07, 2026 @10:26PM (#50410174)
I remember the Java UI, but at some point they switched to a version of Swing that made it look more native, at least on Linux.
Re:Every Windows 11 app should kill Electron, and Discord ju... by cowlevel on Sunday November 08, 2026 @01:39AM (#50410963)
Eclipse uses SWT which uses real native controls.

Of course Linux doesn't have native controls - I think it uses GTK on Linux.

Re:Every Windows 11 app should kill Electron, and Discord ju... by cyberax on Sunday November 08, 2026 @01:02AM (#50410813)
It used SWT, which was a thin wrapper over native controls.
Re:Every Windows 11 app should kill Electron, and Discord ju... by dingaling911 on Sunday November 08, 2026 @06:10AM (#50412248)
Ahh yes that's right.
Re:Every Windows 11 app should kill Electron, and Discord ju... by pacoverdi on Sunday November 08, 2026 @02:56AM (#50411264)
[delayed]
Re:Every Windows 11 app should kill Electron, and Discord ju... by hobo123 on Sunday November 08, 2026 @06:29AM (#50412344)
They had native looking skins for Swing that still felt slightly off and behaved differently. Netbeans IDE looked nice, but it was weird in subtle ways.
Re:Every Windows 11 app should kill Electron, and Discord ju... by pjmlp on Saturday November 07, 2026 @03:03PM (#50407547)
Usually it is hard for those coming from scripting languages.

Strangely enough we managed to write portable code across platforms during the last century, and there were more than only three major desktop OSes.

Re:Every Windows 11 app should kill Electron, and Discord ju... by skydhash on Saturday November 07, 2026 @06:21PM (#50408998)
> Strangely enough we managed to write portable code across platforms during the last century,

Yep, that argument always seems strange too me. Do people fear that much to design their own interface and hook to each platform ecosystem? You look at something like the BSD which runs brought one single kernel concept and various subsystems across a variety of hardware. And somethine like libao[0], which provides a common interface to various sound system.

Whatever the app, if you care enough, you can abstract the core features away from the GUI and other various dependencies.

[0]: https://xiph.org/ao/

Re:Every Windows 11 app should kill Electron, and Discord ju... by vivaldi_bt on Saturday November 07, 2026 @07:13PM (#50409320)
I never really understand this attitude. It isn't really hard it took one or two evenings to understand how native libraries work and you close this problem forever.
Re:Every Windows 11 app should kill Electron, and Discord ju... by Barrin92 on Saturday November 07, 2026 @09:58PM (#50410049)
>Qt required special packaging skills to ship to the end user especially if third party libraries were involved

How outrageous to demand that a software developer possesses the 'special skills' to ship a Qt application. It's not surprising that people think AI is killing programmers when this is the level the average 'programmer' has been operating it for 15+ years

Re:Every Windows 11 app should kill Electron, and Discord ju... by hobo123 on Sunday November 08, 2026 @07:02AM (#50412526)
Probably an economical thing. If you have a much higher effort with packaging and testing vs coding the app logic.
Re:Every Windows 11 app should kill Electron, and Discord ju... by expedition32 on Sunday November 08, 2026 @07:05AM (#50412543)
If developers don't want to be replaced by AI they need to bring something to the table because employment is not a charity.
Re:Every Windows 11 app should kill Electron, and Discord ju... by saagarjha on Saturday November 07, 2026 @11:54PM (#50410513)
Discord ships plenty of native code, though. Actually most popular Electron apps do
Re:Every Windows 11 app should kill Electron, and Discord ju... by ajross on Saturday November 07, 2026 @05:17PM (#50408586)
Exactly. This Discord Windows 11 rust app doesn't run on Mint or AOSP or an iPad and won't without extensive porting.

That can be done. It can be done well. It's not (or rather never has been) cheap or flexible or agile (in the market, not SWE sense). People love HTML/CSS/JS for very good reasons, and have been willing to accept the resulting tradeoffs.

Maybe that's changing now that you can vibe-port a lot of this stuff. We'll see.

Re:Every Windows 11 app should kill Electron, and Discord ju... by NetMageSCW on Saturday November 07, 2026 @06:37PM (#50409088)
The article says they can use the Rust code with wasm as the iOS app and that includes iPad.
Re:Every Windows 11 app should kill Electron, and Discord ju... by dmix on Saturday November 07, 2026 @09:47PM (#50410014)
Using Rust/wasm for a mobile apps sounds crazier to me than using Electron on desktop. I'm not sure of the details there but the APIs/SDKs bringing consistency is one of the best parts of mobile. There's less of an argument for that on desktop which moves slower and is mouse/keyboard instead of complex set of touch workflows, paging, and notification schemes.
Re:Every Windows 11 app should kill Electron, and Discord ju... by llm_nerd on Saturday November 07, 2026 @06:28PM (#50409037)
> This article does nothing to address that.

This has been addressed many times now, and the article doesn't really need to re-address it.

Coding LLMs make managing cross-platform native apps significantly easier than it was in the past. The cost-reward analysis, where Electron and simile apps made sense because then you don't need to have an iOS expert, a macOS expert, etc, and having a bloated monstrosity of an app is an acceptable compromise, is simply no longer true.

I know there is some subset of HN that still thinks CoPilot 2024 is the state of the art and will declare this a foolish assertion that good developers like them disbelieve, but this is what all of the industry is moving to.

Re:Every Windows 11 app should kill Electron, and Discord ju... by peebeebee on Sunday November 08, 2026 @02:45AM (#50411217)
You know how much overhead testing 5 different apps still is?! (iOS, MacOS, Android, Windows, Linux)
Re:Every Windows 11 app should kill Electron, and Discord ju... by GoblinSlayer on Sunday November 08, 2026 @03:54AM (#50411526)
Users will test.
Re:Every Windows 11 app should kill Electron, and Discord ju... by NetMageSCW on Saturday November 07, 2026 @06:33PM (#50409060)
The article explains that the same Rust app runs on Windows, Linux and Mac just like the Zed editor where the GUI library originated, and with wasm, also runs on iOS and Android. What else do you need?
Re:Every Windows 11 app should kill Electron, and Discord ju... by Pxtl on Saturday November 07, 2026 @06:51PM (#50409166)
Oh, does rust have a good native cross platform ui framework?
Re:Every Windows 11 app should kill Electron, and Discord ju... by bluGill on Saturday November 07, 2026 @07:54PM (#50409538)
I'm not sure if a cross-platform UI framework is a good idea or not. I've been building with QT for 15 or 20 years now, and I'm still not sure if cross-platform framework is a better idea than just writing a different UI as a thin layer on top of your business logic for each platform.

Certainly, if you write a native UI for every platform, you're going to need a few more people because you have to have someone who understands each platform. However, with a little bit of work you can define some good interfaces to that UI and most of your needs are going to be things that are not the UI framework but they're logic that can be cross-platform.

What cross-platform frameworks give you more than the UI is all the other pieces you need. I've written a bunch of applications in Qt Core with no UI at all because it's so convenient to have those Qt abstractions.

Re:Every Windows 11 app should kill Electron, and Discord ju... by m00dy on Sunday November 08, 2026 @04:53AM (#50411809)
I hardly see your points on why we shouldn't have cross platform UI.

>>you're going to need a few more people because you have to have someone who understands each platform.

a big no here.

Re:Every Windows 11 app should kill Electron, and Discord ju... by Sankozi on Sunday November 08, 2026 @04:30AM (#50411692)
You don't need "native" part if you are moving from Electron app
Re:Every Windows 11 app should kill Electron, and Discord ju... by ksec on Saturday November 07, 2026 @08:06PM (#50409598)
>It was even one of the chief complaints about VS Code when it was first launched.

That was absolutely not the case at all. At least not on HN or twitter. It was for Chief Complaints for Atom. When VS Code first launched everyone was suggesting how much faster it was compared to Atom. And how a properly tuned Electron Apps could be fast. And Microsoft promised it will get even faster that makes everyone excited.

The only few of us who were complaining was how could everyone judge this to be fast when we have Sublime. And that was even before Sublime had GPU rendering.

Re:Every Windows 11 app should kill Electron, and Discord ju... by SideQuark on Saturday November 07, 2026 @09:32PM (#50409963)
Googling if it was a common complaint around launch time shows plenty of threads on it across all the usual sites at that time.
Re:Every Windows 11 app should kill Electron, and Discord ju... by eddythompson80 on Saturday November 07, 2026 @10:24PM (#50410165)
I think OP is both right, and there was people still complaining about it. Atom was seriously slow. Everyone said you couldn’t build a fast text editor that could compare to native ones. VS Code came and it was significantly faster Atom was slow to the point of not being usable to some, while VS Code was perfectly usable. The people wanting vim or Sublime performance were still upset and wrote about it, but vscode was perfectly usable and fast enough for the majority of people. It was indeed held as an example of how to make a performant electron app. Still an electron app, but not absolute slog. Tbh, if you disable all extensions in vscode, it’s still fairly fast, and doesn’t even take that much memory. It’s not as usable without extensions though.
Re:Every Windows 11 app should kill Electron, and Discord ju... by ThunderSizzle on Saturday November 07, 2026 @11:40PM (#50410464)
I compared NP++ to VS Code at the time. VS Code was nice to use, but it was slower. It was faster than Visual Studio, but that's because VS Code without extensions didn't have language support, etc like VS did.

I find it odd you see otherwise.

And VS 2026 is faster than VS Code these days, now that they spent time optimizing it.

Re:Every Windows 11 app should kill Electron, and Discord ju... by load-bearing on Sunday November 08, 2026 @02:04AM (#50411063)
I'm fairly sure VS low performance and responsiveness is caused by their use of WPF for the UI. Never seen a single responsive application written in that toolkit, it's even worse than electron. Not surprised it hasn't taken off outside of enterprises.
Re:Every Windows 11 app should kill Electron, and Discord ju... by fy20 on Sunday November 08, 2026 @12:35AM (#50410694)
I was using Vim at the time, so didn't get into those discussions. The thing that hurt me was Spotify. They had some other HTMLish desktop app before Electron that was just as bad for memory.
Re:Every Windows 11 app should kill Electron, and Discord ju... by rendaw on Sunday November 08, 2026 @12:56AM (#50410791)
I think you may be right, but I think that actually enforces GP's point: if discussion was about how "a properly tuned electron could be fast", that implies an unstated general belief that electron is slow. In other words, since the time vs code was launched there was indeed a belief that electron was slow (compared to native apps).
Re:Every Windows 11 app should kill Electron, and Discord ju... by cowlevel on Sunday November 08, 2026 @01:38AM (#50410959)
Actually I think "properly tuned" sounds like weasel words, a no true scotsman fallacy. "Oh electron is slow? Well, it is slow, but that's not real electron, see if you were doing things the right way it would be fast"
Re:Every Windows 11 app should kill Electron, and Discord ju... by tancop on Sunday November 08, 2026 @02:58AM (#50411278)
It just means Electron has bad default settings, it's hard to optimize and you might need to move some parts into C++ if you want good performance. Really the same thing as Unreal Engine, there are absolutely fast games made with it but most are super resource heavy.
Re:Every Windows 11 app should kill Electron, and Discord ju... by p_l on Sunday November 08, 2026 @03:06AM (#50411315)
It was not "bad default settings", like often with UE5, it was "MS did a superb job making VSCode not dog slow like Atom" and it took really lots of work
Re:Every Windows 11 app should kill Electron, and Discord ju... by troupo on Sunday November 08, 2026 @03:56AM (#50411536)
It means that you need a trillion-dollar company spending millions of man-hours to optimize the performance, using every trick in the book, and inventing a few new ones to deliver one optimized Electron product
Re:Every Windows 11 app should kill Electron, and Discord ju... by groovy2shoes on Sunday November 08, 2026 @10:10AM (#50413956)
Combine a properly tuned config with a sufficiently smart compiler, and Electron is blazing fast!
Re:Every Windows 11 app should kill Electron, and Discord ju... by tcfhgj on Sunday November 08, 2026 @06:20AM (#50412306)
Even vs code is slow compared to a native app - noticable with large or many files; with search and replace in larger files (xx mb) it even crashes
Re:Every Windows 11 app should kill Electron, and Discord ju... by herbst on Sunday November 08, 2026 @03:43AM (#50411483)
I definitely remember it being yet another slow editor many people complained about.
Re:Every Windows 11 app should kill Electron, and Discord ju... by stuaxo on Sunday November 08, 2026 @04:19AM (#50411633)
Eh, including a whole browser has always been my complaint and I'm sure many others.
Re:Every Windows 11 app should kill Electron, and Discord ju... by andai on Sunday November 08, 2026 @04:44AM (#50411766)
> Electron's value prop has always been about having one team producing one app that is supported on multiple platforms with minimal additional effort.

>This article does nothing to address that.

Article mentions they chose not to use windows native tech (WinUI), presumably for portability reasons. I have no idea how much work it would take to port the Rust client to other platforms, though. Maybe the same code already builds everywhere?