News for hackers. Stuff that matters.
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 npongratz on Saturday November 07, 2026 @08:14PM (#50409637)
[delayed]
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.