Hacker News new | ask | show | jobs
by Suro 54 days ago
Considering the insane memory consumption of claude code running in my terminal, electron was never really the problem, bad software was the culprit all along.
4 comments

The culprit is using web technologies where they don't belong, which Electron is also guilty of. Claude Code is 400k lines of JavaScript for a TUI where a sane implementation in C would be two orders of magnitude less code.
Can’t say that electron does not encourage bad software, quite the opposite
It's an example of bad code that further encourages more bad code.
Yup. VSCode is really fast and memory-frugal for an Electron application of that complexity.

Likewise, Gnome has proven that you can write entire UIs in Javascript and have them be quite performant.

Electron (well, Node is a big sub-culprit) and Javascript in general just make it really easy to create a slow, bloated application.

Always has been.