News for hackers. Stuff that matters.
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 chrismustcode on Saturday November 07, 2026 @04:53PM (#50408388)
Chatgpt isn't a harness. OpenAI's harness is codex.
Re:Every Windows 11 app should kill Electron, and Discord ju... by Uzazo on Sunday November 08, 2026 @05:01AM (#50411853)
Of course it’s a harness. Every LLM chat interface is a harness.
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 davidmurdoch on Saturday November 07, 2026 @08:58AM (#50404583)
Because it used to cost extraordinarily more money to build for a performance increases almost none cares about.
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 astrange on Saturday November 07, 2026 @09:38AM (#50404932)
> chatgpt.exe right now is 1 GB on my windows machine. I have 16 GB and can spare none.

These are not the same units, because all modern OSes have compressed swap.

Re:Every Windows 11 app should kill Electron, and Discord ju... by senordevnyc on Saturday November 07, 2026 @03:51PM (#50407930)
But you’re running it, aren’t you? So from the business perspective, you don’t care enough for it to matter.
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 spapas82 on Saturday November 07, 2026 @09:04AM (#50404633)
I agree with that yes but consider how many people would benefit. And how easy it should be for them to do the change (and compile). It's just tokens.
Re:Every Windows 11 app should kill Electron, and Discord ju... by 72deluxe on Saturday November 07, 2026 @10:00AM (#50405131)
But "friction" is the job, and "complexity" is the job. That's why we're developers.
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 sitzkrieg on Saturday November 07, 2026 @08:12PM (#50409629)
definitely dont mention setting up apple certificates/ code signing.
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 sparkling on Saturday November 07, 2026 @02:59PM (#50407517)
Because the (wall clock) execution speed / performance oft the harness is tiny compared to waiting for the LLM response.
Re:Every Windows 11 app should kill Electron, and Discord ju... by baist0 on Sunday November 08, 2026 @12:10AM (#50410567)
Because there are more JS programmers, and they need to eat too.
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