Discord Is Ditching Electron For Rust
3 72Discord is replacing Electron with a desktop client built fully in Rust, which the company says should significantly reduce the app's notoriously high resource usage while improving performance and memory safety. "We've been early adopters of Rust since 2018 and a lot of our infra, voice tech, and even some of the current client is already Rust, the holy grail was getting the whole client there," explains Discord chief technology officer Stanislav Vishnevskiy in a post on X. "That means Electron goes away, and so does React Native, mobile keeps native UI but shares app code with desktop via Rust." The Verge reports: Vishnevskiy also shared an image of the Discord Windows client using just 290MB of RAM, which is a clear improvement as you only have to participate in a few servers and RAM usage can easily hit 1GB or more using the current Windows app. It's not clear when Discord will make the full switch over to Rust, but Vishnevskiy says the company "hope to get it into testing with users soon."
3 comments
Re:just 290MB of RAM (Score: 5, Funny)
by ebunga ( 95613 ) on Thursday November 05, 2026 @02:46PM (#66411823)
-- Sam Altman, 2026
Re:just 290MB of RAM (Score: 5, Informative)
by darkain ( 749283 ) on Thursday November 05, 2026 @02:51PM (#66411827)
1920x1080 24bit bitmap is over 6MB in size by itself. That's assuming the rendering target is a single flat surface with no back-buffering, and also not multiple layered sub-windows. Yeah, believe it or not, but painting things to the screen, just a flat window, still requires RAM using modern compositors. Now add memory allocation for fonts, glyphs, the logo, all the menuing/config sub-windows, and it adds up quite quickly.
In the Win9x era, the only reason things didnt use this scale of RAM is because there was no compositor. Back then, you painted directly to video RAM, every and every single draw call. There was no persistence of individual window bitmaps, only raw draws to the final output framebuffer.
And this is all just accounting for the main application, not counting the server content which is undoubtedly loaded with people sharing meme gifs 24/7.
Re:I've grown to be okay with Rust (Score: 5, Insightful)
by alvinrod ( 889928 ) on Thursday November 05, 2026 @03:27PM (#66411889)
Unless you're writing in a text editor where you have to manage the whitespace yourself, almost any IDE will take care of it for you automatically. Also, even if you were using some language where it doesn't matter, you should be using proper indentation anyway. I think it's a particularly good "feature" for new programmers because it forces them to structure their code properly and in a way that makes it easier to identify certain kinds of mistakes that other languages can hide. More importantly it eliminates the need to argue where the curly brackets should go entirely and prevents the kind of holy war being waged to this day and wastes everyone's time when it winds up getting discussed or argued over yet again.