logoalt Hacker News

nonethewiser • today at 2:27 PM • 3 replies • view on HN

What the fuck. That's amazing. 10GB->10MB can't simply be moving from Electron right?


Replies

sgarland • today at 3:15 PM

This has to be hyperbole. I built (with Claude) a P2P LAN voice-only chat app in Rust recently, using native frameworks for each platform (Swift, GTK, Win32), and it weighs in at about 5-6 MB depending on the platform. I have spent an enormous amount of time looking for places to squeeze it further. It has ephemeral channels and password protection, but that’s about it: no text chat, no video, no friends, no blocklists, no concept of servers, etc. I can’t imagine everything else Discord has squeezes into another 5 MB.

pjmlp • today at 2:28 PM

Electron is a full Chrome instance, plus whatever else makes up the application.

➕ show 1 reply
hypfer • today at 2:28 PM

It can and it does, because it drops a ton of code for scenarios that do not exist. (Not these numbers, of course, but if you check the comments of that account.. well. Yeah. Some kid)

Electron rose to fame because one could just do everything with it and it was good enough.

Being able to do everything also means that the thing can do everything everywhere all at once, which is many lines of code.

___

The magic of electron was that it was "cheap", however, with code being all AI-generated, that's even cheaper. So now everything will be some slop rust until the point when people realize that there is a cost to be paid after all.

For electron, that has been RAM and performance. For the vibeslop.. well. We shall see.

➕ show 1 reply