News for hackers. Stuff that matters.
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