News for hackers. Stuff that matters.
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 redox99 on Sunday November 08, 2026 @07:22AM (#50412655)
It would be extraordinary to see a real world rust program use more memory than its JVM 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 doodlesdev on Sunday November 08, 2026 @11:14AM (#50414487)
[delayed]
Re:Every Windows 11 app should kill Electron, and Discord ju... by tcfhgj on Sunday November 08, 2026 @07:59AM (#50412891)
You cannot separate performance from memory usage. Usually less memory usage comes at the cost of performance and vice versa.
Re:Every Windows 11 app should kill Electron, and Discord ju... by broken-kebab on Sunday November 08, 2026 @10:01AM (#50413894)
To be direct: this is utter nonsence. Memory usage and performance are different targets of optimization, which often at odds with each other.
Re:Every Windows 11 app should kill Electron, and Discord ju... by tetromino_ on Sunday November 08, 2026 @09:36AM (#50413727)
I have seen it happen once in an LLM rewrite from java to rust. The modern JVM gc is actually pretty good.
Re:Every Windows 11 app should kill Electron, and Discord ju... by tcfhgj on Sunday November 08, 2026 @07:49AM (#50412810)
Yes never
Re:Every Windows 11 app should kill Electron, and Discord ju... by mycall on Sunday November 08, 2026 @09:05AM (#50413482)
So fix the JavaScript abstraction. I've had more success with dart-wasm lately so I'm waiting for someone to finish the standards.
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 doodlesdev on Sunday November 08, 2026 @11:07AM (#50414425)
[delayed]
Re:Every Windows 11 app should kill Electron, and Discord ju... by SaintRomuald on Sunday November 08, 2026 @11:09AM (#50414440)
Do you have the link to it or remember what it was called?
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.