News for hackers. Stuff that matters.
Re:Discord is ditching Electron and its new app uses less RAM by nonethewiser on Thursday November 05, 2026 @09:27AM (#50379476)
What the fuck. That's amazing. 10GB->10MB can't simply be moving from Electron right?
Re:Discord is ditching Electron and its new app uses less RAM by hypfer on Thursday November 05, 2026 @09:28AM (#50379494)
It can and it does, because it drops a ton of code for scenarios that do not exist.

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.

Re:Discord is ditching Electron and its new app uses less RAM by delta_p_delta_x on Thursday November 05, 2026 @09:30AM (#50379527)
Unironically, with LLMs, everyone should be looking to cut their system resource consumption (memory, disk, network, GPU, I/O traffic in general) and rewrite everything natively. It's not even that hard, and has been done several times over. Have a platform-independent business logic layer, and a platform-dependent UI/UX layer. Done.
Re:Discord is ditching Electron and its new app uses less RAM by hypfer on Thursday November 05, 2026 @09:35AM (#50379580)
> Unironically, with LLMs, everyone should be looking to cut their system resource consumption (memory, disk, network, GPU, I/O traffic in general) and rewrite everything natively.

Depends.

There is a lot of value in man-made software where the man knows exactly what happened where when why.

If you just revibe in rust, you get something that works at this point in time, but this deep architectural knowledge is completely lost and you're at the mercy of Dario not locking down your account for wrongthink.

That can still be fine for smaller tools where the cost of recreating them from scratch is alright, but revibing your core business thingy is likely a horrible idea, which I encourage people to do, as I'd love to have the business opportunity to take over their frustrated customerbase ca 5 years from now.

Re:Discord is ditching Electron and its new app uses less RAM by delta_p_delta_x on Thursday November 05, 2026 @09:38AM (#50379632)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by nonethewiser on Thursday November 05, 2026 @09:37AM (#50379621)
>and you're at the mercy of Dario not locking down your account for wrongthink.

Inference cannot be controlled. The models are already out there. It's too late.

Re:Discord is ditching Electron and its new app uses less RAM by hypfer on Thursday November 05, 2026 @09:40AM (#50379655)
Good luck doing the full-hands-off one-shot revibe stuff this all is referring to with GLM-5.3.

That needs claude-like capabilities.

It also should not be done at all. But that approach needs it.

Using open weights models like GLM-5.3 can also speed up rewriting, but then you're rewriting and not revibing, which is a lot slower.

Re:Discord is ditching Electron and its new app uses less RAM by throwitaway222 on Thursday November 05, 2026 @10:18PM (#50387752)
Yeah I have to agree here - the days of being scared of complete rewrites are pretty much over.
Re:Discord is ditching Electron and its new app uses less RAM by pjmlp on Thursday November 05, 2026 @09:28AM (#50379484)
Electron is a full Chrome instance, plus whatever else makes up the application.
Re:Discord is ditching Electron and its new app uses less RAM by nonethewiser on Thursday November 05, 2026 @09:32AM (#50379545)
Yes, and that only explains about 150MB.

If it were simply the Chrome install that would imply Electron is 9GB+ by itself, which it most certainly is not.

Re:Discord is ditching Electron and its new app uses less RAM by chii on Thursday November 05, 2026 @09:41AM (#50379671)
It's probably left over old instances and updates that werent deleted properly. These apps tend to download the update as an entire bundle, rather than any sort of binary diff and patch.

Therefore, if you have an old install and have gone thru several (many) cycles of updates, the installation directory could be riddled with old versions and update files that make up the bulk of that 10 gig.

Re:Discord is ditching Electron and its new app uses less RAM by flykespice on Friday November 06, 2026 @09:31AM (#50392732)
That is horrible, is it really that common that electron apps eventually consume all your storage with each update?
Re:Discord is ditching Electron and its new app uses less RAM by chii on Saturday November 07, 2026 @05:32AM (#50403297)
if the app cleaned up the update properly, then no. For example, signal desktop is fine.

I dont have discord, so what i said is just conjecture, but bad update files laying around isn't uncommon imho.

Re:Discord is ditching Electron and its new app uses less RAM by sgarland on Thursday November 05, 2026 @10:15AM (#50380126)
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, blocklists, no concept of servers, etc. I can’t imagine everything else Discord has squeezes into another 5 MB.
Re:Discord is ditching Electron and its new app uses less RAM by upcoming-sesame on Thursday November 05, 2026 @06:13PM (#50385894)