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 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 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 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 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 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 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 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 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 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:
Re:Every Windows 11 app should kill Electron, and Discord ju...
by jen20 on Sunday November 08, 2026 @11:38AM
(#50414756)
I don't know about you but I _want_ all UIs to look identical - specifically I want them to look like they belong on the platform I use, not the fever dream of some product person.
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 :)
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 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?
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 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 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 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 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.
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 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 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 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 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 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 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 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?
Re:Every Windows 11 app should kill Electron, and Discord ju...
by SOLAR_FIELDS on Sunday November 08, 2026 @11:33AM
(#50414703)
> Electron's value prop has always been about having one team producing one app that is supported on multiple platforms with minimal additional effort.
Which is an assumption that made sense pre-2026. It no longer makes sense anymore. Since you can produce multiple apps, one per platform, with minimal additional effort now.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by kryptonomist on Saturday November 07, 2026 @07:20AM
(#50403918)
Let’s hope we see a new wave of desktop apps rewritten natively, thanks to LLMs. Whether they use Rust with GPUI, C++ with Dear ImGui, or something else entirely, that would be great. Personally, I’m so fed up with bloated UIs. Windows is full of them, and it’s a pity considering how powerful our CPUs are.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by r_lee on Saturday November 07, 2026 @07:35AM
(#50404023)
> C++ with Dear ImGui
it would be absolutely awful
compared to chromium, it's really limited, like it's just always a compromise with these
we should instead figure out a way to do electron but better and make it easier to do the things you can do with e.g. React with native languages and frameworks
Re:Every Windows 11 app should kill Electron, and Discord ju...
by debazel on Saturday November 07, 2026 @08:07AM
(#50404250)
The limitations are a large reason for why they're so resource efficient in the first place.
If you just reimplement Electron in a native language then you get... Chrome, which is already written in C++. The majority of RAM usage in Electron applications is from the native parts of Chrome itself and a decent ~40 MiB chunk for the Node.js runtime.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by the__alchemist on Saturday November 07, 2026 @08:58AM
(#50404577)
I have seen this assumption in recent GUI threads here (More so your upper post): Building a GUI is not equivalent to building a web browser. I didn't think I would need to write this statement, but I have here. Web languages, culture, and syntax have not been a value add to PC application development. Electron is the clearest example why. My model is that is the value add of Electron: Appealing to web devs through language and culture.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by r_lee on Saturday November 07, 2026 @09:23AM
(#50404798)
it's not just about "appealing to web devs"
you simply just would stumble if you tried to do development like you can in React, constant "uhh... can't do that." while it just works in React.
I don't think anyone likes the look of Qt more than what you can achieve with webapps in terms of UI (style/etc. wise)
problem is the performance, I don't think many would be complaining if the performance was proper and the memory usage wasn't as terrible as it is now
you're talking about web browsers, I don't care what it runs on, if we have a way to run this in a lightweight way, would your complaints go away?
even Gnome uses JS etc.
you can do complex stuff in native UI, of course you can
what I'm talking about is the same kind of DX as with React. I really don't have faith in that, e.g. the new thing Discord is about to use, the css it tries to imitate just seems absolutely terrible.
the web technologies aren't perfect, in fact, far from it. however, when I see React vs whatever C/C++ alternative, I'd always go for React if it's about making the UI nice.
I've also shat on Electron before, but there's a reason as to why it's so popular. the tooling/UI capabilities are just much more powerful.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bigstrat2003 on Saturday November 07, 2026 @03:05PM
(#50407560)
> I don't think anyone likes the look of Qt more than what you can achieve with webapps in terms of UI
You are incorrect. In fact, us users hate that fact that UI designers keep making apps that look nothing like the rest of our system. Give me a nice native-looking app any day of the week.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Telaneo on Saturday November 07, 2026 @03:22PM
(#50407707)
> I don't think anyone likes the look of Qt more than what you can achieve with webapps in terms of UI (style/etc. wise)
I don't want web app UIs. They all look different for no good reason. I want native UIs. I like qt. Please just give me a stable UI that I learn and stick with for the next 20 years.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by baist0 on Sunday November 08, 2026 @12:33AM
(#50410687)
Listen! The fact is, JavaScript/HTML/CSS are a holy cow, and the Web is a religion. And you will come up with any excuse just to protect your holy temple.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by ogoffart on Saturday November 07, 2026 @09:50AM
(#50405026)
That’s what we’re trying to do with Slint (I work on it): a declarative, reactive UI like React, with the logic in Rust, C++, JS or Python. It needs no browser engine, so it uses a fraction of Electron’s memory.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by itopaloglu83 on Saturday November 07, 2026 @07:22AM
(#50403935)
On another note, Microsoft Teams and new Outlook use very little amount of memory on paper, because their main windows show up under the Edge name. It’s a Microsoft way of solving the high ram usage problem.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by pwg on Saturday November 07, 2026 @08:08AM
(#50404255)
When has Microsoft not been dishonest and misleading? Being dishonest and misleading has been Microsoft's entire game plan since all the way back into the Bill Gates era.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by snarfy on Saturday November 07, 2026 @09:03AM
(#50404625)
When they can all share the same Electron implementation instead of individual copies it reduces memory quite a bit. I'm not trying to defend Electron way of development but I can see why they pushed WebView2.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Scharkenberg on Saturday November 07, 2026 @05:11PM
(#50408540)
What an insane take. Also, the parent comment is incorrect, because the WebView2 memory is clearly attributed for both Teams and new Outlook in Task Manager.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by petterroea on Saturday November 07, 2026 @07:26AM
(#50403965)
It's hard to say "Discord just showed why" before the product is in production and sees actual use. Promising initial statistics, but the transition is based on a lot of assumptions that won't really be proven until mass adoption and the software has seen long-term maintenance.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by flohofwoe on Saturday November 07, 2026 @07:59AM
(#50404194)
...exactly, at some point you want to show inline animations or videos and all sorts of other media, show webpage previews, play audio snippets and all the other things things a webpage can do, and then you're back to either integrating a browser engine or attempt to write one from scratch (the browser engine can of course be provided by the system webview, e.g. what Tauri does).
Re:Every Windows 11 app should kill Electron, and Discord ju...
by goalieca on Saturday November 07, 2026 @08:14AM
(#50404297)
I’ve programmed inline video players for 25 years. Same with audio and everything else. We had “accelerated” graphics back with winxp and gdi+ and of course OpenGL over ssh with x11. Browser preview pages in most apps are usually snippets of text and maybe an icon or pic. Not rendering a full page.
In a way, applications regressed a lot with react native and electron. I get it’s easier to develop but the apps are very bloated and underperforming even on computers with 10-100x more power.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bulder on Saturday November 07, 2026 @06:33PM
(#50409064)
When it comes to content you control it's very possible to handle everything with platform-native acceleration, but how would you approach embedding a, let's say, YouTube or a Twitter video in a native desktop client?
Re:Every Windows 11 app should kill Electron, and Discord ju...
by goalieca on Saturday November 07, 2026 @09:51PM
(#50410033)
There’s still native ways to do this with libs. Browsers themselves use these. Plus, we used to embed explorer or WebKit or html or whatever without dragging in a whole giant thing where need be.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by smusamashah on Saturday November 07, 2026 @07:39AM
(#50404046)
We have gotten so used to slow app startup these days I believe. I have recently started using Task Slinger [1] and every single time I boot it, I get a feeling that it was already running and it's window just showed up. I wish all modern software were like this.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by smusamashah on Saturday November 07, 2026 @02:56PM
(#50407494)
No. Even windows' own task manager is not that fast. I don't think that most software most people use everyday on windows was built with strong focus on performance.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by gopher_space on Saturday November 07, 2026 @03:14PM
(#50407625)
The old System Shock 2 is an inspiration for my own loading times. Launching the game instantly shows the main menu with your last save paused in the background. Clicking Play actually unpauses the game. There's no loading time and no process as far as a player is concerned.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by LaurensBER on Saturday November 07, 2026 @07:39AM
(#50404049)
Electron is pretty awesome in that it allows a small team to build a decent GUI app using their existing web skillset but it also feels like it's time for something better at this point.
With the ram prices as crazy as they. It's pretty frustrating to have to run multiple GB eating applications just to do some basic tasks (90% is read and write messages, in the case of Discord). I understand that other people might use the more advanced features (voice chat, etc) but these could be loaded on-demand.
It's a bit crazy to me that I can comfortable run an entire Linux stack (+ Podman, monitoring, alerting and multiple services) in 512 MB ram (with 40% free, just checked!). However my Windows PC needs 5.5GB just to show the desktop! Realistically it needs somewhere between 8GB and 16GB for some basic web browsing and even then it can feel slow if you have a few apps like Discord running in the background.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by codazoda on Saturday November 07, 2026 @09:04AM
(#50404634)
Probably at the edge of being a good example. I recently switched to zed because of how bloated VS Code is becoming. I think it gained it’s momentum by being small, but enshitification seems to come for all software.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bigstrat2003 on Saturday November 07, 2026 @02:59PM
(#50407515)
No it isn't. It takes over 1 GB of memory just to open up a handful of source code files that each are under 1 MB in size (and which, for reference, Sublime can open with 300 MB used). It's an absolute pig.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by afdbcreid on Saturday November 07, 2026 @04:05PM
(#50408052)
It has seen (major) optimization work, and it's still quite memory-heavy, although that's probably fine for a rich IDE. But it's not fine for many other apps.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by viraptor on Saturday November 07, 2026 @05:29PM
(#50408652)
Rich IDE is not something you achieve by slapping a few extensions on an editor. It's in the name - Integrated. It means that there's a GUI designer which is aware of local classes, inspector at runtime which can jump into the right areas of code, performance analysis that gets populated during runs, highlighting and compilation that's aware of the currently selected configuration, etc. There's an extension a few of those, but they're mostly independent and isolated.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hobo123 on Sunday November 08, 2026 @07:25AM
(#50412668)
At least comparing to Eclipse in terms of Java support, VSCode is still way behind. I've been using it almost exclusively for maybe a year, since I was mostly working on JS and Groovy code, but now went back doing Java dev on Eclipse, and it is a significant difference.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bemtevi on Saturday November 07, 2026 @07:48AM
(#50404102)
I've rarely liked any Electron apps, both for the performance and because it seems to encourage a feeling of bloatedness, for want of a better word. Tried VS Code, but dropped it when they started putting too much AI in it and too much complexity. Sublime is so much better.
I don't know...there seems to be something unpleasant about all Electron apps.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by 72deluxe on Saturday November 07, 2026 @09:58AM
(#50405106)
I agree. The lack of native user interface controls for accessing menus and the inability for them to properly track focus for keyboard usage for right clicking (for example) makes them really difficult to use. You have to use the mouse for everything.
I did use VS code for a while but I've just gone back to using QT Creator simply because it is so much faster to use in daily life.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bscphil on Saturday November 07, 2026 @08:38AM
(#50404447)
"cross platform" I just spent 10 minutes trying to figure out what it uses for native on Linux, and whether it supports both Qt and GTK. Turns out the docs don't even mention Windows? "Cross platform" is now just MacOS + iOS + Android + Web? I guess the thought is supposed to be that crux helps you port your app to Windows if you want to... but even the example applications only run on those four platforms.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Doohickey-d on Saturday November 07, 2026 @08:28AM
(#50404391)
One nice thing about Électron is that it supports accessbility and non-english IMEs correctly, and thus all Electron apps have decent accessibility out of the box, comparable to web apps.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by robin_reala on Saturday November 07, 2026 @08:47AM
(#50404492)
GPUI has a single-paragraph accessibility section in their guide that defers to AccessKit[1] for everything, and points to a raw RS file for more info.[2]
I haven’t tested it or written anything using GPUI, but I’d expect it to be considerably harder work, based on the maturity of the web stack in this area. My assumptions have definitely been proven wrong before though… Anyone from Discord working on accessibility want to chime in?
Re:Every Windows 11 app should kill Electron, and Discord ju...
by lifthrasiir on Sunday November 08, 2026 @12:36AM
(#50410699)
Windows IMEs used to emulate the style of edit control to display its candidate text, and the guess was frequently wrong. That's hardly a new problem for East Asian.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by azuanrb on Saturday November 07, 2026 @08:38AM
(#50404448)
Electron has always been about shipping cross-platform apps quickly, at the cost of higher memory usage and potentially worse performance. With or without LLMs, its core value proposition remains the same. LLMs simply amplify the framework’s existing strengths.
Raycast, originally a native macOS launcher, recently released v2 using a hybrid architecture. It’s not Electron, but it follows a similar approach to Spotify’s desktop app, using web technologies inside a native shell.
The memory usage is still pretty significant. It’s using around 350–450 MB at idle and can sometimes reach 1–2 GB depending on the workload. The upside is that they can now share most of their code across macOS and Windows and evolve beyond being just an app launcher.
It’s always been about trade-offs, and LLMs don’t fundamentally change that.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by azuanrb on Saturday November 07, 2026 @09:48AM
(#50405014)
> you can now ship cross platform apps quickly, without electron.
The opposite is also true. My argument is that you can also ship Electron apps with more features more quickly with LLMs.
You still have a finite token budget. With native apps, you have to split those tokens across multiple platforms, whereas with Electron, you can reuse most of the code.
Big companies have been going back and forth between native and cross-platform approaches even before LLMs. They generally have the resources (humans, tokens, compute) that small and medium-sized companies don’t have. So I’d take their rationale with a grain of salt.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by azuanrb on Saturday November 07, 2026 @11:32AM
(#50405849)
Because any kind of budget, resources are always finite? 2x the tokens roughly translates to 2x the cost. That’s a pretty big ask. Quality alone, unfortunately, isn’t always enough to justify it. There has to be business value too.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hxorr on Saturday November 07, 2026 @03:36PM
(#50407816)
With Tauri you have to support multiple web engines. It uses webkitgtk on linux - which has its own set of issues, including being somewhat behind chromium/firefox in terms of stability/security/performance/features...
Re:Every Windows 11 app should kill Electron, and Discord ju...
by jrmg on Saturday November 07, 2026 @08:43AM
(#50404466)
I don’t doubt that this will be faster and smaller than the current app, but it’s slightly annoying to me that the new app is getting so much coverage with specific claims about speed and memory usage when it’s not actually feature-complete or released yet.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by EddieRingle on Saturday November 07, 2026 @08:51AM
(#50404523)
Discord isn't really the model to follow here, IMO. They killed their native Android app and moved to React Native, and now they're dropping React Native (while mobile somehow keeps "native UI", according to their CTO's tweet). If they wanted to maximize code reuse and accelerate feature development, they should have instead considered Kotlin Multiplatform, then they could've skipped the React Native detour while actually building apps that are native to the platform. (Rust and its cacophony of UI frameworks are not really platform-native anywhere, as far as I'm aware. Maybe Pop OS, but I don't know anyone targeting that specifically.)
This bit is obviously subjective, but Rust as a language is simply not ergonomic enough for a lot of the use cases people are trying to apply it to, especially UI development. Most of the Rust UI libraries I've seen to date either use a more imperative style, or attempt to replicate more declarative approaches like Compose UI or SwiftUI, but without the nice language aesthetics that make it simple to read and write. And if the counter-argument there is for LLMs to be reading and writing this stuff, that's a whole other can of worms: (1) The subsidized inference era is quickly coming to an end and (2) if you're using LLMs anyway, why not maintain apps that are as native to each platform as possible?
Mobile UIs are different enough and, these days, easy enough to construct that to my mind there isn’t much value in the cross platform UI proposition these days. But logic? Sure.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by franga2000 on Sunday November 08, 2026 @03:25AM
(#50411399)
Have you used Kotlin Multiplatform? I currently am and while it sounds great, it's nowhere near ready. Something as simple as scanning a QR code has been a week-long project - the Kotlin-only libraries suck, the Java ones don't work on iOS, the only Kotlin Multiplatform one pulled in 500 MB of dependencies (that's final app size, not development files!!).
There was legit a point where I considered embedding a webview just for the QR code scanning screen, but of course, embedding a webview turned out to be a similar mess.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by pindab0ter on Sunday November 08, 2026 @04:01AM
(#50411546)
I am not very familiar with Kotlin Multiplatform, but couldn't you use a Swift/Objective C library for iOS, while using a Kotlin library for Android? What would be the blocker to this?
Re:Every Windows 11 app should kill Electron, and Discord ju...
by franga2000 on Sunday November 08, 2026 @05:32AM
(#50412006)
There's no blocker, but that's not a comparable development experience to more mature cross-platform toolkits.
I now have a separate QR scanning implementation for three platforms and a bunch of if statements in the Gradle files. It took 4x as much effort (once for each platform, plus the work to tie it all together) and now I also need to know how to develop for those platforms, which is exactly what I wanted to avoid by picking a cross-platform toolkit.
This will hopefully improve with time, as it did with RN and Flutter, but my point is that we're simply not there yet.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by spapas82 on Saturday November 07, 2026 @08:55AM
(#50404550)
I'm 100% on this since Electron is probably the worst thing that happened to the desktop development.
Hiwever, I'd like to hijack this front page article to for a related concern/question I've got.
It seems that all (popular) opensource LLM harnesses are either in JS or python (pi, hermes, opencode, paseo). The same seems to be true for closed source harnesses that I have used (deepseek, chatgpt).
I'd really like to ask why? I mean why somebody would use technologies like JS or python to implement a harness application instead of golang or rust or even C? I understand that before 1 year JS or python would be tempting but right now? Especially the LLm related companies have unlimited tokens and re-writing the harness software to golang or rust should be trivial.
This would benefit so many people (especiall considering the prices and scarcity of RAM these days).
So, why nobody does it? This is an honest question, I don't want to offend interpreted languages but it should be a universal truth that a compiled language is faster and consumes less ram.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hamandcheese on Saturday November 07, 2026 @08:58AM
(#50404582)
One good reason: extensibility. Pi is extremely malleable in ways that would probably be harder to achieve if it were in, say, Rust.
The resource usage of my harness is nothing compared to an electron app, and being able to easily customize it is more important to me than saving a few extra MB of ram.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by spapas82 on Saturday November 07, 2026 @09:14AM
(#50404710)
I guess it depends on the harness, for example: chatgpt.exe right now is 1 GB on my windows machine. peseo.exe is 500 mb. and opencode.exe + bun.exe is 300 mb.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by 2001zhaozhao on Sunday November 08, 2026 @03:01AM
(#50411286)
This is why I like Kotlin (or Java). You can get the extensibility of Python/JS at native speeds and full multi-threading, with fast compile speeds. It does use more memory compared to Rust though.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by spapas82 on Saturday November 07, 2026 @09:03AM
(#50404629)
chatgpt.exe right now is 1 GB on my windows machine. I have 16 GB and can spare none. So I don't think that nobody cares about such performance increases.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by davidmurdoch on Saturday November 07, 2026 @09:12AM
(#50404698)
Most don't care or ever notice these things. Hacker News crowd does and always has, but the a non-technical user of a run-of-the-mill desktop app would rather have new features, and maybe some bug fixes, over performance.
Myself? I care. I regularly run a project that needs 6GB for the language server to provide type hints.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Telaneo on Saturday November 07, 2026 @03:33PM
(#50407796)
> but the a non-technical user of a run-of-the-mill desktop app would rather have new features, and maybe some bug fixes, over performance.
Ask anyone with a 5 year or older laptop that wasn't top of the line when it came out and can't afford a new one, and I think you'll find they're of the exact opposite opinion. And even if they aren't explicitly, they might have abandoned their PC and instead switched to their phone for their personal computing, just because that experience turned out more coherently for them.
Heck, even the normal user with a decent laptop probably would take better performance if given the option, but when have they ever been given that option? The current state just isn't unperformant enough that it crosses the threshold to the point where it's at the front of mind for people. If anything, that threshold is probably beyond the threshold of 'eh, I'll just use my phone for this' for any task that doesn't need a keyboard.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by codazoda on Saturday November 07, 2026 @08:59AM
(#50404593)
One possible reasons is that all of those are compiled languages vs interpreted. It doesn’t sound like much but compiling your code for three plus platforms and distributing binaries adds just enough complexity and friction to make it feel a lot more difficult.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bluGill on Saturday November 07, 2026 @08:03PM
(#50409581)
Modern CI systems have no problem building for 15 or 20 different platforms is what you need. There's a little bit of hassle of distributing binaries but again it's not a big deal for anyone who actually puts their mind to it.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by orwin on Saturday November 07, 2026 @09:20AM
(#50404761)
Because most of the recent improvements on correctness and 'memory' are from harnesses, my guess is that you want to iterate and test quickly on the software that seems to improve the most and differentiate your brand best. Once a harness is 'complete' (which might happen for specific harnesses, but probably never for code), the team might start to optimise it with compiled languages.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by 72deluxe on Saturday November 07, 2026 @09:59AM
(#50405123)
The problem is that they never reach this point where they put it into native code. So you always have a plethora of JavaScript and Python files littering your system. It's baffling.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Neikius on Sunday November 08, 2026 @10:39AM
(#50414192)
Personally with LLMs now, I don't actually see a reason for dynamic languages at all. LLM now makes it faster so python, js and similar are fully redundant. It's all just inertia for now
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Aozora7 on Saturday November 07, 2026 @09:07AM
(#50404658)
Discord is my favorite thing to happen to chatting online. It combined everything useful from IRC, Skype and TeamSpeak, in one application and with modern UI, and things we now take for granted like attachments and link embeds. And even 10 years later, there are still no alternatives that aren't just discord but worse.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by gkcnlr on Saturday November 07, 2026 @09:19AM
(#50404753)
I think the reason why web technologies that are essentially being ported to desktop is not only because they provide cross-platform compatibility (still lacking a standardization on Linux), but they tremendously helped the hustle culture built around the motto of "ship it fast" by providing the fastest iterations and benefiting from already existing cheap pool of web developers, especially via outsourcing/offshoring.
Nowadays, AI (LLMs, genAI, call it what you will) has become so cheap to handle more than one codebase, they no longer feel the need for web only approaches.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by mpalmer on Saturday November 07, 2026 @09:24AM
(#50404804)
Discord’s new Rust client had its friends list loaded before the current Electron app could get past its loading screen, in a 15-second clip that we found on the X account of Discord co-founder and CTO Stanislav Vishnevskiy. The video had 2.3 million views at the time of writing, and Discord employees have confirmed that both apps were launched from a cold start.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by 72deluxe on Saturday November 07, 2026 @09:56AM
(#50405083)
This is definitely true. It seems to be the modern approach that the less effort in development, the better!
I too had code that worked across 3 platforms with wxwidgets and a 3D game toolkit incorporated in opengl for visualisation, with most 2d controls being drawn using wxwidgets OnPaint handlers for custom controls rendered natively on that platform. I wrote this single-handedly, with another colleague handling the network code and firmware on the remote hardware devices.
Everything else is sheer laziness as far as I am concerned. There's even less excuse today with the rise of LLMs to do the majority of UI coding for you.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by ip26 on Saturday November 07, 2026 @03:43PM
(#50407864)
Not a front end developer but I’ve always assumed it was ROI - nobody felt a smaller memory footprint would drive enough incremental revenue to offset the costs.
What seems to have changed is the size of the costs - LLMs are really good at this - such that you can now say “well, maybe the returns aren’t that big, in fact maybe they’re zero, but this is easy enough, so why not”
De minimus improvement has always suffered this problem - we’re all fairly sure it’s worth something, but not enough to pursue when it’s not cheap to fix.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Aurornis on Saturday November 07, 2026 @06:21PM
(#50409001)
Mature was probably not the best word. The modern desktop UI toolkits produce a better UX to me.
Qt feels too locked in to old decisions that were the right choice at the time, but desktops and mobile have changed so much that it always feels like a clash of old and new.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by dagmx on Saturday November 07, 2026 @09:08PM
(#50409882)
You can make Qt look however you want. The point is that it will give you native UI by default (for the most part and excluding QML)
That native UI will be faster than Electron and most other retained UI toolkits and will be just as capable of creating whatever your subjective view of “modern UI” is.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by zapzupnz on Sunday November 08, 2026 @04:12AM
(#50411605)
I'm still waiting for a single Qt-based app on macOS that feels like a macOS app. They look more like some Windows 95-era app wearing the Aqua skin peeled off the carcass of some slightly older-and-definitely-not-current version of macOS.
Don't confuse UI and UX. You can make Qt have the right UI, you can't make it have the right UX.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hobo123 on Sunday November 08, 2026 @07:40AM
(#50412751)
This is also why electron and other frameworks really devalue MacOS. Back in the day anything not built with Cocoa felt off, there was a difference in usability.
Now we take it for granted, and Mac apps feel as good or bad as everywhere else.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by dagmx on Sunday November 08, 2026 @10:26AM
(#50414071)
Qt will look like AppKit. Because it is AppKit under the hood .
The person who made a Qt app may be designing it based off of cross platform UX but maybe you should follow your own advice and not conflate things.
You can make a native UI and UX with Qt. You can also make things feel very non native via AppKit too. Your argument has very little to do with the toolkit and more to do with the developers choices.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by dijit on Sunday November 08, 2026 @10:58AM
(#50414344)
I'm with zapzupnz here.
I haven't seen what you describe, even if it's theoretically possible. I'd really love to be shown an example.
I'm not saying it can't happen, and in fact, if it existed I wouldn't have noticed (I mean, the point is that you think it's native, so I wouldn't have noticed..) but I can't think of an example and I would love to see one.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by pettijohn on Sunday November 08, 2026 @11:15AM
(#50414498)
Qt licensing is terrible for commercial products. You end up with an account manager that changes every year, compliance within your company is a chore. Qt is fine for things that are and always will be open source.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by ryandrake on Saturday November 07, 2026 @10:34AM
(#50405408)
If LLMs are truly driving the cost of "writing code" down to zero, then we shouldn't need Electron anymore. The whining from developers about how it's soooooo hard to write and maintain N separate native applications is no longer valid. Point an LLM at your existing Electron code base and have it fork off a bunch of native ports of it. LLMs are surprisingly good at matching the functionality of existing software. Keep and maintain the Electron app as an internal reference design (your developers probably only know JavaScript anyway) and "build" all your actual production releases from that.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by ezst on Saturday November 07, 2026 @12:06PM
(#50406109)
Is that a whole UI re-write in a native/non-web framework? Because in case that's not, this is still running in a browser, i.e. it stands at 80% or so of the bloat factor of electron, and what makes it faster is possibly (mainly?) that they haven't gotten yet to adding as much stuff as seen on the regular client.
Discord is a server-side protocol (the client isn't doing much besides displaying the server-prescribed state), there's very little logic/computation going on on there that should explain a world of difference.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by revolvingthrow on Saturday November 07, 2026 @02:30PM
(#50407268)
Hot take, but: love electron. Write once, runs anywhere. The majority of bugs aren't platform specific. Easy to get nice visuals that stay consistent across different OS. Yes, it's not native. I don't care. It's not a painting to be admired. The focus on looks and visuals versus usability and ux is a plague.
Yeah, it takes some extra ram. Fork my stuff and rewrite it in rust if you care. I don't. The few hot spots can be fixed by using a lower level language. Is vs code not zippy enough? I certainly haven't noticed the slowness. People keep complaining about unnecessary load as if hardware hasn't progressed since 2004. It's hugely important for things like your OS. A few apps you run twice a month? Who cares.
But what about software used by billions, asks a person angry about my electron project used by thousands? How many ages were taken up by the five second startup time when you multiply that by however many users (all this time would be spent curing cancer of course)? Sure, improve performance when needed. For the vast majority of projects it's not needed. The average computer isn't pi zero.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bigstrat2003 on Saturday November 07, 2026 @03:07PM
(#50407579)
> Yeah, it takes some extra ram. Fork my stuff and rewrite it in rust if you care. I don't.
And that, right there, is why people hate apps which use Electron. You are spending my system resources so that you can be lazy and not have to program as much. That's not really acceptable development practice.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by scheme271 on Sunday November 08, 2026 @12:18AM
(#50410612)
It's the other way around though. A lot of times, it's spending system resources so that they can use something that will run on your OS. Most apps using electron wouldn't have linux versions if electron wasn't a thing.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by vazark on Sunday November 08, 2026 @05:43AM
(#50412078)
That doesn't mean you can't use something better when that comes along. Using these new Rust GUI frameworks is basically the same as electron, you use rust instead of web tech.
This approach isn't groundbreaking, QT framework does this commercially for the past few decades. AI has just made it easier to manage & migrate.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by cedws on Saturday November 07, 2026 @02:59PM
(#50407519)
I’m disappointed to see the continued proliferation of JavaScript and TypeScript. I cannot fathom why people are using these garbage languages still when we have so much better options and code is essentially free now.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hyperhello on Saturday November 07, 2026 @03:02PM
(#50407537)
These languages were developed for hypertext. Discord is hypertext. The question is why Rust or C++ or anything would be so suitable for developing chat rooms; it’s not even clear why JavaScript would necessarily be slower after being statically compiled.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hyperhello on Sunday November 08, 2026 @06:41AM
(#50412403)
Yes, the first one is not required and shouldn’t be used, write your own leftpad then. The second is about as awful as getting NaN, which is to say not, and can be overridden in the prototype anyway if you want more casual logging.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by seanalltogether on Saturday November 07, 2026 @03:14PM
(#50407629)
> Tauri, which many guessed Discord would pick, uses Rust for app logic but builds the interface in HTML, CSS and JavaScript inside the system’s webview, which is WebView2 on Windows.
Not everyone is willing to submit to that dependency requirement. Especially if you think you'll be supporting Windows 10 for a long time.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by codedokode on Saturday November 07, 2026 @03:18PM
(#50407670)
For me the ugliest part of Electron is that it uses client-server model inside a program and includes both a browser and Node.JS. This is so stupid. If you love microservices so much why don't you put every React component in a separate process?
Re:Every Windows 11 app should kill Electron, and Discord ju...
by giancarlostoro on Saturday November 07, 2026 @03:21PM
(#50407695)
One thing Electron has over Tauri for Discords case is WebRTC. I tried making an open source alternative using Tauri and got plenty far, then I learned that WebRTC on Linux is not OOTB since its still experimental. Webkit on Linux requires WebkitGTK, so everything under the sun out there that had “webviews” cross-platform cannot do WebRTC ootb.
At least now Discord will consume your GPU vram while you game.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by giancarlostoro on Saturday November 07, 2026 @09:20PM
(#50409918)
I think I wound up hacking something in Rust which is less than ideal felt hackish, at that point I was better off just remaking the UI in an actual native UI stack.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by jdw64 on Saturday November 07, 2026 @04:17PM
(#50408156)
Many people dislike Electron, but there's a reason it's still widely chosen. It runs on Linux, macOS, and Windows. With C++ or C#, you have to build differently each time, and cross-platform support is difficult. And fundamentally, it brings over web syntax as-is more than other frameworks, making front-end styling convenient.
I'm well aware that Electron has a large RAM footprint and installation size, but doing a polyglot architecture instead puts more cognitive load on you. Projects that mix multiple languages are a pain just to manage. I'd rather hope Electron gets better optimized.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Rohansi on Saturday November 07, 2026 @05:47PM
(#50408756)
> I'd rather hope Electron gets better optimized.
Everyone always blames the browser. Why don't we blame [insert native app framework] for apps being slow too?
Everyone builds web apps using bloated frameworks and don't spend time optimizing any of their code. I wonder how much more efficient they could've made the Discord client without getting rid of Electron, just for a more meaningful comparison.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by vazark on Sunday November 08, 2026 @05:38AM
(#50412047)
because native apps aren't slow. Businesses didn't want to spend money on redundant effort replicating the same feature for each platform. No matter how efficiently you use electron, it is fundamentally a browser and server in a strait jacket pretending to be app. That's why it's bloated/inefficient. The JS framework used in negligible in comparison.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by Rohansi on Sunday November 08, 2026 @09:22AM
(#50413610)
Not as efficient as native, sure. But have you actually tested it?
If browsers were inherently slow why do plain HTML+CSS pages (no JS) run nicely? Then consider the fact that modern JS runtimes are competitive with ART (native Java/Kotlin apps on Android). Where is the main source of inefficiency?
Browsers are just another runtime - you can write inefficient code in anything, even native.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by jdw64 on Sunday November 08, 2026 @04:42AM
(#50411760)
I don't think you're wrong. But there's a limit to the languages and technologies a person can learn. In that sense, Electron is efficient. Just as a product doesn't necessarily win just because it has better performance.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by xlayn on Saturday November 07, 2026 @05:11PM
(#50408542)
OR you can use Lazarus pascal and ship a 5mb application that uses 13Mb of RAM and runs everywhere instead of a 150MB installer that installs the nth multigb copy of the same application with different hat that leaves free 13Mb of RAM.
https://github.com/alainnothere/mailBoy
Electron apps are a disease.
BUT BUT THEY LOOK GREAT, LOOKING GREAT SHOULD COST 1000$ OF RAM BUGA BUGA...
Re:Every Windows 11 app should kill Electron, and Discord ju...
by CodesInChaos on Saturday November 07, 2026 @06:28PM
(#50409030)
What I don't get is why most background electron/CEF applications don't unload the web engine when it's minimized to tray for some time. Chrome starts in about a second, the the webview shouldn't take more than that to re-initialize.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by deepsun on Saturday November 07, 2026 @06:56PM
(#50409195)
I also noticed that the "smoothness", when everything feels quicker, is immediately noticeable on desktop (vs laptop), all apps, several laptops (Mac, Thinkpad, Framework).
Re:Every Windows 11 app should kill Electron, and Discord ju...
by tonymet on Saturday November 07, 2026 @07:28PM
(#50409396)
I hope it's a tremendous success that inspires every app to rebuild native. We've been in the dark ages of desktop apps with 200ms click response times and 15hz rendering, 30 second load times despite having a super computer worth of hardware on every desktop.
Anyone who ran Windows 2k , or OS 9 remembers when apps opened instantly and were always responsive, because IO was dog slow (both disk & network access) -- no one dared to block the UI on an IO call.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by ycui7 on Sunday November 08, 2026 @12:06AM
(#50410552)
People need to understand even a 70% smaller 290MB GUI app is still terrible. We could open 200 browser tabs on Windows 2000 with only 256MB memory back in the days. Discord should not consume more data than 200 browser tabs.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by loremdifr on Sunday November 08, 2026 @12:12AM
(#50410579)
this is true, I even remember one of the first alternative clients for Discord (Ripcord IIRC) was orders of magnitude more performant and lightweight that this rust rewrite.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hobo123 on Sunday November 08, 2026 @07:30AM
(#50412699)
I'm pretty sure my Pentium 3 PC back in the day had 128 or 256MB memory, and I ran tabbed Mozilla/Seamonkey as well as the first versions of Firefox ("Phoenix"), both with tabs. 2003ish.
Cold Phoenix start on Windows XP was similar to Firefox startup today on a Mac :D (ok, maybe a few seconds longer of pegging the CPU)
Re:Every Windows 11 app should kill Electron, and Discord ju...
by abanana on Sunday November 08, 2026 @08:40AM
(#50413265)
Opera and Firefox, "actually", introduced tabs around the same time as, or very soon after, the launch of Windows 2000.
Alternatively, read "tabs" as "windows" - we know the word "tabs" is not the important point of that post (and that the number 200 is exaggerating for effect). Right clicking a link and selecting "open in new window" opened a new window in the same browser instance, not a separate instance, although there wouldn't be any visual difference.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by stein1946 on Sunday November 08, 2026 @04:14AM
(#50411613)
> People need to understand even a 70% smaller 290MB GUI app is still terrible
I don't understand that kind of reasoning.
Electron - and anything web - has allowed us to basically solve distribution and iterate at lightning speeds and people are getting bothered because an application in 2026 takes multiple amounts of RAM than the their favourite 90s app?
Come now, the average laptop has a ton of memory and fast i/o to be able to not care even if that 290MB was 1290MB.
The trade off of higher memory for some middleware is totally worth it.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by spacechild1 on Sunday November 08, 2026 @04:38AM
(#50411735)
Software developers need to realize that their app is not the only one that will be running on the user's computer. A single app taking 300 MB of RAM? No problem. 20 apps? That's already 6 GB of RAM.
And keep in mind we're talking about a damn chat client, not some complex video editing or CAD app.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by stein1946 on Sunday November 08, 2026 @05:45AM
(#50412093)
> Software developers need to realize that their app is not the only one that will be running on the user's computer
The user will need to realize that, and if they don't like it they will close the app and move to a different provider. But that of course will not happen because no matter how the IT people want everyone else to use their xmpp xfce clients or whatever; Slack will always triumph because it is not just a "damn chat client"
> 20 apps? That's already 6 GB of RAM.
No one runs 20 apps in the foreground, my finance runs gsheets, xero and the erp all of which are webkit. The lenovo's were the cheapest ones I could get with 8gb ddr4 and still no one has complained about slack or our erp written in react not being responsive enough.
I understand that people like to constrain themselves for creative reasons but lets not be cheap with resources.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by load-bearing on Sunday November 08, 2026 @07:00AM
(#50412515)
Do you honestly consider this normal? In the 00s I've used to run Windows XP (which was derided as an absolute pig -- what the hell did we know) + Delphi with a GUI designer in it much more advanced than anything we have now + 1-2 PDFs + a web browser with maybe 5-10 tabs + often a chat client in the background (usually QIP -- it supported not just one protocol like Slack, but about a dozen of them, and could send and show multimedia messages in addition to text).
Sometimes also a music player. All of this relatively comfortably fit in 128 MiB of RAM; it was really comfortable once I moved to 512 a few years later, and I thought that should be enough for the decades ahead.
But then we got electron and turning the web into an operating system on top of an operating system.
Now having a document processor barely fit within 8 GiB is considered acceptable...
Re:Every Windows 11 app should kill Electron, and Discord ju...
by mrob on Sunday November 08, 2026 @06:25AM
(#50412325)
I recently installed "dvdisaster" from Debian. The provided version has the GUI disabled, on the grounds that it's written in GTK2. It's just a single-line configuration change, so I recompiled with the GUI enabled.
It's been a long time since I last used GTK2. I was shocked at how much faster it feels than GTK3/GTK4 apps. Load time is almost instant on my old computer, and no perceptible latency anywhere. There's no arbitrary 60fps frame rate cap like with more recent GTK versions (while running on Xorg). There are no annoying animations. GTK2 was already perfect and everything since then has been a downgrade.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by loremdifr on Sunday November 08, 2026 @12:08AM
(#50410554)
Theres a small subset of apps where I still think electron can sort of be worth it, but its definitely never any of the always active or second monitor apps like we often end up seeing. I think an app you dont mind closing when youre done, and that doesnt expect or require to be run alongside other demandind apps, could potentially be worth building with Electron. But that is sadly not the category of apps that are often built with it.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by SaintRomuald on Sunday November 08, 2026 @02:36AM
(#50411174)
I find it surprising that they are still investing in performance improvements, because to me for a while now it looked like discord has entered the enshitification stage of life, where they go purely for maximizing profits with no regard for user experience. As they had recently hit the news with their age verification requirements I thought that it's over for discord as they will start limiting the users and selling their data en masse.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by dist-epoch on Sunday November 08, 2026 @06:23AM
(#50412319)
That's a skewed perspective.
Discord always deeply cared about their users. Which is why nobody is able to get even close to replacing them.
They are adding user requested features and improvements all the time. They might not be what you consider "improvement", but maybe you are not really their target market.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by AdityaK_9999 on Sunday November 08, 2026 @02:55AM
(#50411258)
i believe that primary issue of electron is also that the framework consumes RAM/resources which is already a issue especially for windows which is a heavy OS on the RAM. the same side is visible on the Linux speciapic app ends of applications like VS code. they have poor integration , Loads of resource consumption and minimal polish
Re:Every Windows 11 app should kill Electron, and Discord ju...
by sirily11 on Sunday November 08, 2026 @04:02AM
(#50411560)
I really dont understand why when AI is available, big company still using electron for their apps. Codex was written in pure swift on macOS and right now moved to Electron again
Re:Every Windows 11 app should kill Electron, and Discord ju...
by stevefan1999 on Sunday November 08, 2026 @04:10AM
(#50411593)
Well, why not just move on from Windows and transition to Linux, as I did with CachyOS earlier few days ago. Doesn't even want to look back on Windows now since everything is so smooth and uses half the memory I needed compared to the equivalent in Windows! The only quirk I have is the xe driver that after suspension and resume the GPU may go haywire and I have to restart SDDM but I switched from S3 to S2 sleep and the problem seems to be worked around. I'm using an Arc Pro B50 so not sure if that's buggy on Linux whatsoever but it is metric tons better in Windows.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by ZekeSulastin on Sunday November 08, 2026 @08:57AM
(#50413423)
So what exactly does any of that have to do with switching ann application off of Electron, aside from Windows being in the headlines which makes sense given the site is “windowslatest.com”?
Re:Every Windows 11 app should kill Electron, and Discord ju...
by jFriedensreich on Sunday November 08, 2026 @04:27AM
(#50411675)
I am at the opposite extreme. We should ditch electron and use browsers good enough integrated they can run all the apps with native feel and reusing the same engine (not a lacklustre OS webview but a complete one) This solves the memory overhead, solves unpatched or misconfigured chromium in each electron app as well as portability and reusing web dev skills. Also this would allow permissions and security to be managed by a layer that can focus on that and I don't have to worry about what a native app can do. (OS permissions and sandboxing are just not made for vibecoded infinite software and likely never will catch up) All the performance and other arguments are just not true, a well build webapp is often more performant than a native app especially for long scroll lists not even to mention accessibilty, extensions and more. I will never trust discord or Spotify to run something natively on my machine and so should no one else.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by ezst on Sunday November 08, 2026 @08:00AM
(#50412895)
How's that different? You are still shipping a web browser and rendering through the inefficiency of the DOM event/rendering model. Sure it helps that the business logic is written in a native language, but modern, JIT-ed JS isn't a sloth either, and I don't think that's what people have gripes with and what causes abnormally large runtimes.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by tcfhgj on Sunday November 08, 2026 @06:08AM
(#50412237)
> All the performance and other arguments are just not true, a well build webapp is often more performant than a native app especially for long scroll lists not even to mention accessibilty, extensions and more.
A well built web app will never be more performance than a well built native app.
It's just inherent due to the JavaScript abstraction.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by broken-kebab on Sunday November 08, 2026 @07:18AM
(#50412630)
Never? We already had this discussion about JVM, and we know for a fact that it's possible for JIT to achieve better performance with that damned bytecode compared to natively compiled equivalent.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by broken-kebab on Sunday November 08, 2026 @07:44AM
(#50412789)
Let's not move the goalposts, the word in question is "performant".
Though even with memory it's not as clear as you assume in the context (which is about browser-based apps). Singular C/Zig/Rust program will surely be more economical than a singular in-browser app due to browser itself having a huge footprint. But what if said user has that browser open all the time anyway as probably most users do? What if there are more than one GUI-rich app, and with browser they share most of the overhead? PLs which allow low-level optimizations offer great opportunities, no arguing. But never say "never" until you know what exact problem yiu have to deal with.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by redox99 on Sunday November 08, 2026 @07:51AM
(#50412825)
> Let's not move the goalposts, the word in question is "performant".
Even though the word performance was used by a parent comment, I think they used it as an umbrella term. The article and most of the talk around rust discord is primarily about the memory. And JVM is probably the worst runtime you could pick if you care about memory usage.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by broken-kebab on Sunday November 08, 2026 @10:08AM
(#50413941)
Assuming this would make this comment less reasonable though. Optimization for memory usage is distinct from optimization for performance in our craft. And it's pretty basic thing.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by StilesCrisis on Sunday November 08, 2026 @10:36AM
(#50414171)
It's true that JavaScript costs, but the text renderer in Chrome is just wildly optimized and definitely can outperform an OS list view. An article here on HN covered it a while back.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by jFriedensreich on Sunday November 08, 2026 @11:04AM
(#50414404)
The question is at what cost and at that level of both being optimal does it even matter to the user or is indistinguishable. There will always be 1% native apps that make sense, i'm talking about 99% of applications.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by hobo123 on Sunday November 08, 2026 @06:24AM
(#50412322)
In a way yes, but things like keyboard shortcut, file pickers and similar are major convenience issues and not as easy if the only thing that runs on the metal is a server process, and the UI is limited to the browser. A webview UI like Tauri might solve that (I'm not familiar with it, so I can't say if it does).
I think that's also the main reason software like VS Code is electron based and not browser based.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by eptcyka on Sunday November 08, 2026 @06:29AM
(#50412342)
> well build webapp is often more performant than a native app especially for long scroll lists
A well built anything is better than most software. I would argue that a well built rust app will probably a higher quality piece of software than typescript slop produced by Microsoft.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by mulhoon on Sunday November 08, 2026 @07:50AM
(#50412820)
I agree with this. And even further, I think we wasted a decade or so, forcing web and native apart - especially on mobile. Partly due to Apple building a native moat when we could have put resources into building a more performant and powerful internet.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by neya on Sunday November 08, 2026 @08:30AM
(#50413173)
You can optimize all you want, but if your foundation is a pack of cards, you're not going very far. JavaScript is not a solid foundation to build anything on. It's a language that should have been extinct long ago along with internet explorer. But, people kept trying to save it - adding abstraction on top of abstraction, even languages on top of it (coffeescript, typescript) just to get it to work at the baseline of a decent language. It's the only language that is forced upon us. If browsers gave us options to use other languages, it would and should've been long been dead.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by gloosx on Sunday November 08, 2026 @08:53AM
(#50413400)
If javascript is not a solid foundation to build anything on, then how come everything is built on top of it? It's the language powering the whole web, and people went really really far with it. Besides that, almost every major programming language can now run in the browser via webassemly, which solves problems in the areas where javascript is lacking raw performace.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by tw04 on Sunday November 08, 2026 @09:46AM
(#50413791)
What? No, absolutely not. Did you not learn your lesson when google decided to actively try to kill ad blocking? Why on EARTH would I want all of my desktop apps at the mercy of google and chromium?
You can tell me until you're blue in the face that you also think these apps should be cross-browser but we all know that will never happen.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by jFriedensreich on Sunday November 08, 2026 @11:07AM
(#50414431)
This is whataboutism. There is still firefox as possible second engine impl and you are arguing its better to not have a layer at all than accepting the possibility google might take it away. Plus most people are on macs or windows where there are at least as bad actors playing against them.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by spacechild1 on Sunday November 08, 2026 @04:29AM
(#50411690)
This gave me a good laugh. Like, who could have known?
There's absolutely no reason why a simple chat client should take more than a fraction of a second to start. If you need to fetch data from the web, just do it progressively. Not to mention that 290 MB is still way too much.
It's ridiculous how over the last 20 years simple apps became slower and slower while computers became faster and faster.
At the same time, REAPER (a full digital audio workstation) opens in less than a second.
These so-called software engineers seem to have completely lost the baseline of what is possible on modern computers. Or they just don't care.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by bryanhogan on Sunday November 08, 2026 @05:17AM
(#50411939)
I think this article is misleading, you can use any framework to make slow bloated software. A great thing about Electron and similar projects is that you get one codebase which is useable on many different platforms. An Electron application can easily be a website and PWA, then the user can choose what they prefer.
A good example fast / "performant" software which uses Electron is Obsidian.
Yes Electron isn't perfect, but I think it's a good choice for many situations. Same for Tauri, CapacitorJS, etc. Regardless of which is chosen, there should be an effort to make software performant and non-bloated.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by rldjbpin on Sunday November 08, 2026 @05:31AM
(#50411999)
for a team that was using the underlying stack (other than the ui library) for other components, trying this is a low-hanging fruit of an experiment. this should not automatically become the recommendation for everybody. (yes i do hate electron apps)
for a large project like electron, it is up to the maintainers to optimize it while preserving the api. if they can do this with typescript, they can also explore this with electron. perhaps a native webview option instead of chromium?
with current memory crisis, devs with cushy performant laptops bought over a year ago should realize that we yet again have hardware constraints and need to act accordingly. however, putting the pressure at the wrong place is not as productive.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by red_admiral on Sunday November 08, 2026 @05:45AM
(#50412089)
Back in the day, Microsoft got into trouble for shipping a free browser together with its OS (https://xkcd.com/1118/). Somehow I wasn't expecting 'every app ships its own browser' to be the solution.
To be fair, multi-platform GUI development is _hard_ to do properly, just look at the differences between menu bars on Windows and Mac OS. In theory you could ship electron once as a dependency, similar to the various MSVC++ runtimes, but then you've reinvented 'dll hell'.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by gloosx on Sunday November 08, 2026 @09:08AM
(#50413505)
Every time I start the discord app, it downloads updates. It was never the case when I opened discord app and it didn't start updating. Updating 7/13. Updating 1/4. There is always some update pushed, I think almost every day. Comparing the launch times of fully updated clients is kinda useless, as it will always take few minutes to update anyway when you are cold-starting it. Slow electron apps are just a skill issue. Yes it has a browser overhead, and it will use a bit more RAM, but the bare-minimum time required to spin up the underlying Chromium shell and Nodejs runtime environment is 100-300ms, everything on top of it is just application overhead aka skill issue.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by therealmarv on Sunday November 08, 2026 @10:09AM
(#50413953)
I don't understand the hate on Electron. I think most people here never shipped cross plattform apps ever and even less maintained them across cross platform. It's a financial decision.
Electron (in the age before AI) enabled to stand on the shoulders of giants to build a reliable product with one code-base among many OSes. Something which Java promised Electron really delivered for most end-user apps. Google poured billions into making the fundament of Electron fast and reliable. And it enabled many Linux ports of apps which would have otherwise not happened.
Best example is vscode.
Are Electron apps more wasteful than native: sure. But I rather stand with Electron and that Windows, Mac and Linux is supported.
Re:Every Windows 11 app should kill Electron, and Discord ju...
by dijit on Sunday November 08, 2026 @10:52AM
(#50414289)
Sort of, you're right that it's zero sum.
But electron applications that are forced by the first party (IE; third party clients are explicitly forbidden and will be an EULA violation- possibly resulting in expulsion from the platform) is an issue.
We talk about a global RAM crisis now due to AI, but I don't even want to think about how much RAM is hoarded by Teams/Slack and Discord in aggregate- these are applications that are intended to be run in the background by everybody, so you're talking at least 2GiB per person because you can be pretty sure that people are running more than one of these.
1.5GiB * the number of people in work = what.. 1 petabyte of RAM? For chat.
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.
"Now you can have the cross-platform compatibility of a single-page application just by bundling Chrome."
Not a great justification, but it made a bit more sense then.
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.
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.
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"?
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.
Google Chrome generally used around 25mb per tab in 2010. Today, that number is often 500mb or even 1gb.
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.
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.
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.
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.
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.
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.
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.
Acting like this is a decision the ICs make is disconnected from why electron is so prevalent.
Someone would have been able to disrupt that market by making a much better chat app since Elecron is so bad for user experience.
Luckily in the modern era we have invented language models, which allow us to expend vast resources on text generation instead.
I dunno if you've been living under an enormous rock, but they used AI to make this.
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.
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>.
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
> 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...
I'm very excited to see GPUI extended for general purpose usages in the future.
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.
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.
However that has been true since 2016, and here we are, 10 years later.
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.
The hard part of all webcam libraries is all the different webcams running all their different proprietary protocols.
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++.
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.
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.
Of course Linux doesn't have native controls - I think it uses GTK on Linux.
Strangely enough we managed to write portable code across platforms during the last century, and there were more than only three major desktop OSes.
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/
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
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.
Developers do. Accountants do. Users just have a bunch of janky apps that don't work right without knowing why, and have no choice in the matter.
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.
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.
>>you're going to need a few more people because you have to have someone who understands each platform.
a big no here.
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.
I find it odd you see otherwise.
And VS 2026 is faster than VS Code these days, now that they spent time optimizing it.
>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?
Which is an assumption that made sense pre-2026. It no longer makes sense anymore. Since you can produce multiple apps, one per platform, with minimal additional effort now.
it would be absolutely awful
compared to chromium, it's really limited, like it's just always a compromise with these
we should instead figure out a way to do electron but better and make it easier to do the things you can do with e.g. React with native languages and frameworks
If you just reimplement Electron in a native language then you get... Chrome, which is already written in C++. The majority of RAM usage in Electron applications is from the native parts of Chrome itself and a decent ~40 MiB chunk for the Node.js runtime.
To me it seems like all frameworks and apps use much more memory than 10 years ago, but don't really offer more features.
Maybe a really young GPUI still has limitations, but I doubt it would suddenly need to use 5x as much memory if you added them.
you simply just would stumble if you tried to do development like you can in React, constant "uhh... can't do that." while it just works in React.
I don't think anyone likes the look of Qt more than what you can achieve with webapps in terms of UI (style/etc. wise)
problem is the performance, I don't think many would be complaining if the performance was proper and the memory usage wasn't as terrible as it is now
you're talking about web browsers, I don't care what it runs on, if we have a way to run this in a lightweight way, would your complaints go away?
even Gnome uses JS etc.
you can do complex stuff in native UI, of course you can
what I'm talking about is the same kind of DX as with React. I really don't have faith in that, e.g. the new thing Discord is about to use, the css it tries to imitate just seems absolutely terrible.
the web technologies aren't perfect, in fact, far from it. however, when I see React vs whatever C/C++ alternative, I'd always go for React if it's about making the UI nice.
I've also shat on Electron before, but there's a reason as to why it's so popular. the tooling/UI capabilities are just much more powerful.
You are incorrect. In fact, us users hate that fact that UI designers keep making apps that look nothing like the rest of our system. Give me a nice native-looking app any day of the week.
I don't want web app UIs. They all look different for no good reason. I want native UIs. I like qt. Please just give me a stable UI that I learn and stick with for the next 20 years.
In a way, applications regressed a lot with react native and electron. I get it’s easier to develop but the apps are very bloated and underperforming even on computers with 10-100x more power.
Also, pro tip, you can still just use it in browser. I hope that doesn't go away.
https://github.com/zed-industries/zed/discussions/17212
I don't know if we have a winner here.
[1]: https://taskslinger.net/
If you are asking this kind of question you have already lost the plot. You don't need a "tech stack".
With the ram prices as crazy as they. It's pretty frustrating to have to run multiple GB eating applications just to do some basic tasks (90% is read and write messages, in the case of Discord). I understand that other people might use the more advanced features (voice chat, etc) but these could be loaded on-demand.
It's a bit crazy to me that I can comfortable run an entire Linux stack (+ Podman, monitoring, alerting and multiple services) in 512 MB ram (with 40% free, just checked!). However my Windows PC needs 5.5GB just to show the desktop! Realistically it needs somewhere between 8GB and 16GB for some basic web browsing and even then it can feel slow if you have a few apps like Discord running in the background.
You show this by all your other comments on memory. The reason apps take memory is Electron.
Plus I prefer apps that behave like OS native apps not the reduced GUI of web apps.
Also, first time I'm hearing about Monaco. I thought VSCode was an Atom fork.
https://github.com/Sidenai/sidex
There's only 0.7% Rust code and not even any C++. And almost all of that Rust code is for the CLI, not the editor.
The rest is just plain TypeScript and other web technologies.
Also the performance improvements on the bultin terminal thanks to using WebGL as if it was a native app.
I don't know...there seems to be something unpleasant about all Electron apps.
I did use VS code for a while but I've just gone back to using QT Creator simply because it is so much faster to use in daily life.
Most Rust GUI toolkits, at least in 2025, did not have that good accessibility or IME: https://www.boringcactus.com/2025/04/13/2025-survey-of-rust-...
Hopefully this has gotten better and the new discord client isn't worse in that regard.
I haven’t tested it or written anything using GPUI, but I’d expect it to be considerably harder work, based on the maturity of the web stack in this area. My assumptions have definitely been proven wrong before though… Anyone from Discord working on accessibility want to chime in?
[1] https://accesskit.dev/
[2] https://github.com/zed-industries/zed/blob/main/crates/gpui/...
Raycast, originally a native macOS launcher, recently released v2 using a hybrid architecture. It’s not Electron, but it follows a similar approach to Spotify’s desktop app, using web technologies inside a native shell.
The memory usage is still pretty significant. It’s using around 350–450 MB at idle and can sometimes reach 1–2 GB depending on the workload. The upside is that they can now share most of their code across macOS and Windows and evolve beyond being just an app launcher.
It’s always been about trade-offs, and LLMs don’t fundamentally change that.
GPUI is one example: some of the downsides of electron (UI is not native), but it solves memory and performance side, and shared codebase.
Just writing native apps because LLMs makes it cheaper is the other option. Shopify did this after years of react native.
The opposite is also true. My argument is that you can also ship Electron apps with more features more quickly with LLMs.
You still have a finite token budget. With native apps, you have to split those tokens across multiple platforms, whereas with Electron, you can reuse most of the code.
Big companies have been going back and forth between native and cross-platform approaches even before LLMs. They generally have the resources (humans, tokens, compute) that small and medium-sized companies don’t have. So I’d take their rationale with a grain of salt.
Also the GPUI approach is still finite tokens, just better stack.
This bit is obviously subjective, but Rust as a language is simply not ergonomic enough for a lot of the use cases people are trying to apply it to, especially UI development. Most of the Rust UI libraries I've seen to date either use a more imperative style, or attempt to replicate more declarative approaches like Compose UI or SwiftUI, but without the nice language aesthetics that make it simple to read and write. And if the counter-argument there is for LLMs to be reading and writing this stuff, that's a whole other can of worms: (1) The subsidized inference era is quickly coming to an end and (2) if you're using LLMs anyway, why not maintain apps that are as native to each platform as possible?
https://mozilla.github.io/uniffi-rs/latest/
Mobile UIs are different enough and, these days, easy enough to construct that to my mind there isn’t much value in the cross platform UI proposition these days. But logic? Sure.
There was legit a point where I considered embedding a webview just for the QR code scanning screen, but of course, embedding a webview turned out to be a similar mess.
I now have a separate QR scanning implementation for three platforms and a bunch of if statements in the Gradle files. It took 4x as much effort (once for each platform, plus the work to tie it all together) and now I also need to know how to develop for those platforms, which is exactly what I wanted to avoid by picking a cross-platform toolkit.
This will hopefully improve with time, as it did with RN and Flutter, but my point is that we're simply not there yet.
Hiwever, I'd like to hijack this front page article to for a related concern/question I've got.
It seems that all (popular) opensource LLM harnesses are either in JS or python (pi, hermes, opencode, paseo). The same seems to be true for closed source harnesses that I have used (deepseek, chatgpt).
I'd really like to ask why? I mean why somebody would use technologies like JS or python to implement a harness application instead of golang or rust or even C? I understand that before 1 year JS or python would be tempting but right now? Especially the LLm related companies have unlimited tokens and re-writing the harness software to golang or rust should be trivial.
This would benefit so many people (especiall considering the prices and scarcity of RAM these days).
So, why nobody does it? This is an honest question, I don't want to offend interpreted languages but it should be a universal truth that a compiled language is faster and consumes less ram.
The resource usage of my harness is nothing compared to an electron app, and being able to easily customize it is more important to me than saving a few extra MB of ram.
Myself? I care. I regularly run a project that needs 6GB for the language server to provide type hints.
Ask anyone with a 5 year or older laptop that wasn't top of the line when it came out and can't afford a new one, and I think you'll find they're of the exact opposite opinion. And even if they aren't explicitly, they might have abandoned their PC and instead switched to their phone for their personal computing, just because that experience turned out more coherently for them.
Heck, even the normal user with a decent laptop probably would take better performance if given the option, but when have they ever been given that option? The current state just isn't unperformant enough that it crosses the threshold to the point where it's at the front of mind for people. If anything, that threshold is probably beyond the threshold of 'eh, I'll just use my phone for this' for any task that doesn't need a keyboard.
These are not the same units, because all modern OSes have compressed swap.
Discord is probably my least favorite thing to happen to chatting online, but for some reason it's what everyone wants to fucking use.
Slapping a few million lines of AI generated slop code ought to do it for instance.
Nowadays, AI (LLMs, genAI, call it what you will) has become so cheap to handle more than one codebase, they no longer feel the need for web only approaches.
I think people become super lazy... "Ah, it's will ocupie a few hundreds of RAM, no problem, let's ship it."
They are companies with billions or even trillions shipping shit with Electron.
I too had code that worked across 3 platforms with wxwidgets and a 3D game toolkit incorporated in opengl for visualisation, with most 2d controls being drawn using wxwidgets OnPaint handlers for custom controls rendered natively on that platform. I wrote this single-handedly, with another colleague handling the network code and firmware on the remote hardware devices.
Everything else is sheer laziness as far as I am concerned. There's even less excuse today with the rise of LLMs to do the majority of UI coding for you.
What seems to have changed is the size of the costs - LLMs are really good at this - such that you can now say “well, maybe the returns aren’t that big, in fact maybe they’re zero, but this is easy enough, so why not”
De minimus improvement has always suffered this problem - we’re all fairly sure it’s worth something, but not enough to pursue when it’s not cheap to fix.
Not if your promary UI is web.
I’ve worked in Qt apps on and off through my career.
I do not want Qt apps any more than I want Electron apps.
The solution is native apps using native platform tools, or one of the mature cross-platform toolkits.
Qt feels too locked in to old decisions that were the right choice at the time, but desktops and mobile have changed so much that it always feels like a clash of old and new.
That native UI will be faster than Electron and most other retained UI toolkits and will be just as capable of creating whatever your subjective view of “modern UI” is.
Don't confuse UI and UX. You can make Qt have the right UI, you can't make it have the right UX.
Now we take it for granted, and Mac apps feel as good or bad as everywhere else.
The person who made a Qt app may be designing it based off of cross platform UX but maybe you should follow your own advice and not conflate things.
You can make a native UI and UX with Qt. You can also make things feel very non native via AppKit too. Your argument has very little to do with the toolkit and more to do with the developers choices.
I haven't seen what you describe, even if it's theoretically possible. I'd really love to be shown an example.
I'm not saying it can't happen, and in fact, if it existed I wouldn't have noticed (I mean, the point is that you think it's native, so I wouldn't have noticed..) but I can't think of an example and I would love to see one.
And yet most Android apps today take 50-100MB bundle size for very simple GUIs and take up lots of RAM and lots of time to load or react to anything.
So maybe we'd be better off with everyone bundling Qt after all.
Not to mention Windows is a very heavy slow inefficient and poorly made OS.
You don't see these issues generally on Linux or macOS.
Discord is a server-side protocol (the client isn't doing much besides displaying the server-prescribed state), there's very little logic/computation going on on there that should explain a world of difference.
Discord is ditching Electron and its new app uses less RAM
https://news.ycombinator.com/item?id=50378625
Yeah, it takes some extra ram. Fork my stuff and rewrite it in rust if you care. I don't. The few hot spots can be fixed by using a lower level language. Is vs code not zippy enough? I certainly haven't noticed the slowness. People keep complaining about unnecessary load as if hardware hasn't progressed since 2004. It's hugely important for things like your OS. A few apps you run twice a month? Who cares.
But what about software used by billions, asks a person angry about my electron project used by thousands? How many ages were taken up by the five second startup time when you multiply that by however many users (all this time would be spent curing cancer of course)? Sure, improve performance when needed. For the vast majority of projects it's not needed. The average computer isn't pi zero.
And that, right there, is why people hate apps which use Electron. You are spending my system resources so that you can be lazy and not have to program as much. That's not really acceptable development practice.
This approach isn't groundbreaking, QT framework does this commercially for the past few decades. AI has just made it easier to manage & migrate.
Not everyone is willing to submit to that dependency requirement. Especially if you think you'll be supporting Windows 10 for a long time.
At least now Discord will consume your GPU vram while you game.
I am guessing this is just capture/playback code issue? You have a portable WebRTC stack in rust https://github.com/webrtc-rs/webrtc
I haven't used Tauri myself but this sounds like a fun thing to go fix. Silly this is a blocking issue.
Still too many Rust UI stacks are GPU driven.
I'm well aware that Electron has a large RAM footprint and installation size, but doing a polyglot architecture instead puts more cognitive load on you. Projects that mix multiple languages are a pain just to manage. I'd rather hope Electron gets better optimized.
Everyone always blames the browser. Why don't we blame [insert native app framework] for apps being slow too?
Everyone builds web apps using bloated frameworks and don't spend time optimizing any of their code. I wonder how much more efficient they could've made the Discord client without getting rid of Electron, just for a more meaningful comparison.
If browsers were inherently slow why do plain HTML+CSS pages (no JS) run nicely? Then consider the fact that modern JS runtimes are competitive with ART (native Java/Kotlin apps on Android). Where is the main source of inefficiency?
Browsers are just another runtime - you can write inefficient code in anything, even native.
Electron apps are a disease.
BUT BUT THEY LOOK GREAT, LOOKING GREAT SHOULD COST 1000$ OF RAM BUGA BUGA...
on which machine ? go check the first three PCs here: https://www.amazon.ca/Best-Sellers-Laptop-Computers/zgbs/ele... ; do you think they open chrome in a second ?
Anyone who ran Windows 2k , or OS 9 remembers when apps opened instantly and were always responsive, because IO was dog slow (both disk & network access) -- no one dared to block the UI on an IO call.
Give us back our hardware!
... oh wait
200 browsers instances more likely.
Cold Phoenix start on Windows XP was similar to Firefox startup today on a Mac :D (ok, maybe a few seconds longer of pegging the CPU)
Yeah, and it took up to 2006 for IE to support tabs.
Anyway, by then Windows 2000 already had its replacements on Windows XP, and Windows Server 2003.
https://pspb.chrisrcook.com/2025/09/20/4_windows-xp-home-x86...
https://allthatiswrong.wordpress.com/2011/01/14/opera-did-no...
Alternatively, read "tabs" as "windows" - we know the word "tabs" is not the important point of that post (and that the number 200 is exaggerating for effect). Right clicking a link and selecting "open in new window" opened a new window in the same browser instance, not a separate instance, although there wouldn't be any visual difference.
I don't understand that kind of reasoning.
Electron - and anything web - has allowed us to basically solve distribution and iterate at lightning speeds and people are getting bothered because an application in 2026 takes multiple amounts of RAM than the their favourite 90s app?
Come now, the average laptop has a ton of memory and fast i/o to be able to not care even if that 290MB was 1290MB.
The trade off of higher memory for some middleware is totally worth it.
And keep in mind we're talking about a damn chat client, not some complex video editing or CAD app.
The user will need to realize that, and if they don't like it they will close the app and move to a different provider. But that of course will not happen because no matter how the IT people want everyone else to use their xmpp xfce clients or whatever; Slack will always triumph because it is not just a "damn chat client"
> 20 apps? That's already 6 GB of RAM.
No one runs 20 apps in the foreground, my finance runs gsheets, xero and the erp all of which are webkit. The lenovo's were the cheapest ones I could get with 8gb ddr4 and still no one has complained about slack or our erp written in react not being responsive enough.
I understand that people like to constrain themselves for creative reasons but lets not be cheap with resources.
Sometimes also a music player. All of this relatively comfortably fit in 128 MiB of RAM; it was really comfortable once I moved to 512 a few years later, and I thought that should be enough for the decades ahead.
But then we got electron and turning the web into an operating system on top of an operating system.
Now having a document processor barely fit within 8 GiB is considered acceptable...
Is it regrettable? Idk. Definitely not unique to software though once you look and appliances, cars etc
Teams is a nice example. It will eat 1-2gb of my memory on a regular day. Being limited by 16gb and trying to work... It's not fun.
It's been a long time since I last used GTK2. I was shocked at how much faster it feels than GTK3/GTK4 apps. Load time is almost instant on my old computer, and no perceptible latency anywhere. There's no arbitrary 60fps frame rate cap like with more recent GTK versions (while running on Xorg). There are no annoying animations. GTK2 was already perfect and everything since then has been a downgrade.
Discord always deeply cared about their users. Which is why nobody is able to get even close to replacing them.
They are adding user requested features and improvements all the time. They might not be what you consider "improvement", but maybe you are not really their target market.
Just spend the tokens, the native app user experience improvements are worth the effort.
Low effort article.
I think it'll be fixed soon but it drives me nuts.
Flutter is under appreciated for desktop.
https://github.com/DioxusLabs/dioxus#experimental-native-ren...
Blitz itself is a great experiment in debloating.
see also https://github.com/pathscale/izumo
Also difficult to manage fake websites duplicating the look and feel. Scamming people into giving access or passwords.
A native app which is installed once from a good source is more secure, i feel.
A well built web app will never be more performance than a well built native app. It's just inherent due to the JavaScript abstraction.
Though even with memory it's not as clear as you assume in the context (which is about browser-based apps). Singular C/Zig/Rust program will surely be more economical than a singular in-browser app due to browser itself having a huge footprint. But what if said user has that browser open all the time anyway as probably most users do? What if there are more than one GUI-rich app, and with browser they share most of the overhead? PLs which allow low-level optimizations offer great opportunities, no arguing. But never say "never" until you know what exact problem yiu have to deal with.
Even though the word performance was used by a parent comment, I think they used it as an umbrella term. The article and most of the talk around rust discord is primarily about the memory. And JVM is probably the worst runtime you could pick if you care about memory usage.
I think that's also the main reason software like VS Code is electron based and not browser based.
A well built anything is better than most software. I would argue that a well built rust app will probably a higher quality piece of software than typescript slop produced by Microsoft.
You're mistaking "JS is forced on people and they have no choice but to make it work" with "it's everywhere so it must be good".
Can you share something else they could've built everything else on top of, instead? Yeah, that's what I thought.
Do you really think a normal junior dev is going to be/should be writing web assembly code to build a basic portfolio website?
Everything is not built on top of it.
> It's the language powering the whole web
It’s also not powering the whole web, just a significant part of the client frontend inside browsers.
You can tell me until you're blue in the face that you also think these apps should be cross-browser but we all know that will never happen.
There's absolutely no reason why a simple chat client should take more than a fraction of a second to start. If you need to fetch data from the web, just do it progressively. Not to mention that 290 MB is still way too much.
It's ridiculous how over the last 20 years simple apps became slower and slower while computers became faster and faster.
At the same time, REAPER (a full digital audio workstation) opens in less than a second.
These so-called software engineers seem to have completely lost the baseline of what is possible on modern computers. Or they just don't care.
"Technology: Not used" was most useless table in a while, that was when I noticed.
A good example fast / "performant" software which uses Electron is Obsidian.
Yes Electron isn't perfect, but I think it's a good choice for many situations. Same for Tauri, CapacitorJS, etc. Regardless of which is chosen, there should be an effort to make software performant and non-bloated.
for a large project like electron, it is up to the maintainers to optimize it while preserving the api. if they can do this with typescript, they can also explore this with electron. perhaps a native webview option instead of chromium?
with current memory crisis, devs with cushy performant laptops bought over a year ago should realize that we yet again have hardware constraints and need to act accordingly. however, putting the pressure at the wrong place is not as productive.
To be fair, multi-platform GUI development is _hard_ to do properly, just look at the differences between menu bars on Windows and Mac OS. In theory you could ship electron once as a dependency, similar to the various MSVC++ runtimes, but then you've reinvented 'dll hell'.
Any attempts to fix this probably end up with https://xkcd.com/927/
Best example is vscode.
Are Electron apps more wasteful than native: sure. But I rather stand with Electron and that Windows, Mac and Linux is supported.
But electron applications that are forced by the first party (IE; third party clients are explicitly forbidden and will be an EULA violation- possibly resulting in expulsion from the platform) is an issue.
We talk about a global RAM crisis now due to AI, but I don't even want to think about how much RAM is hoarded by Teams/Slack and Discord in aggregate- these are applications that are intended to be run in the background by everybody, so you're talking at least 2GiB per person because you can be pretty sure that people are running more than one of these.
1.5GiB * the number of people in work = what.. 1 petabyte of RAM? For chat.
Compare vscode memory + cpu usage to whatever IDE you were using before that. It's probably an order of magnitude more efficient.
In comparison to Sublime, it is indeed slower and more resource inefficient- however, it is free and good enough.
Not everything boils down to technical purity, there can be other important factors.