Friday, December 04, 2026

Discord: Electron => Rust

Discord is ditching Electron and its new app uses less RAM | The Verge

Discord is moving its apps fully over to the Rust programming language.


Yes, and it is a massive shift for the desktop app industry.

As of early November 2026, Discord's co-founder and CTO, Stanislav Vishnevskiy, officially confirmed that the company is abandoning Electron for the desktop client and ditching React Native for its mobile apps[1][2].

Here is what is happening and why it is not as strange as it sounds:

  • The Problem: Up to this point, Discord was essentially a disguised Google Chrome tab running via Electron. It was notorious for being a massive memory hog, easily consuming 1GB to 4GB of RAM (which they heavily mitigated by auto-restarting the app in the background when it got too bloated)[1][3][4].

  • The "Phoenix" Rewrite: Discord is entirely rebuilding its client using Rust[5]. For the desktop interface, they are not using WebViews at all; they are using GPUI, a GPU-accelerated Rust UI framework developed by the team behind the Zed code editor[1][6].

  • The Results: An early internal Windows build (codenamed "Discord Phoenix") showed the app running with multiple accounts while consuming only ~290 MB of RAM and booting up almost instantly without a loading screen[5][7][8].

  • What about Mobile? Discord is dropping React Native on iOS and Android. Instead, the mobile apps will use true native interfaces (Swift/Kotlin) but will share all of the core application logic with the desktop app via a shared Rust core[7][9].

Why Rust?
It isn't strange at all when you consider performance. Rust provides the speed and hardware control of C++, but with strict memory safety guarantees that prevent apps from randomly crashing or leaking memory. Discord had already been using Rust for their backend infrastructure and voice/video routing since 2018[10], so expanding it to completely replace the heavy, web-based Electron UI was the logical next step to stop the app from hogging gamers' system resources[11][12].

No comments: