deniz.in

Markets

Weather

Loading weather

· via The Verge

Discord drops Electron for a Rust desktop client that uses far less RAM

Discord is rebuilding its desktop client in Rust and retiring both Electron and React Native, with its CTO showing a Windows build using about 290MB of RAM.

Discord drops Electron for a Rust desktop client that uses far less RAM

Discord is leaving Electron behind

Discord is retiring Electron, the cross-platform framework it has long used to ship its desktop app, and rebuilding the client around Rust. According to The Verge, the shift takes the entire desktop app over to Rust, a language known for its performance and memory safety, and away from a framework that has drawn years of criticism for how much memory and processing power it consumes.

The announcement came from Discord chief technology officer Stanislav Vishnevskiy, who set out the plan in a post on X. As The Verge reports, Vishnevskiy said Discord has been an early adopter of Rust since 2018, and that the company's infrastructure, its voice technology, and even parts of the existing client already rely on the language. He described a client written entirely in Rust as the ambition the company had been working toward all along.

More than the desktop shell is changing

Two frameworks are on the way out, not one. Alongside Electron, React Native is being dropped as well. In Vishnevskiy's description, the mobile apps will keep their native interfaces while sharing application code with the desktop client through Rust.

The upshot is a single Rust core serving both desktop and mobile, with each platform keeping a UI layer suited to it. The Verge does not detail what will replace the web-based rendering on desktop, so questions remain about how much of the interface experience will change for users.

A screenshot that argues for itself

The most concrete evidence Vishnevskiy offered was an image of the Windows client consuming about 290MB of RAM. As The Verge notes, the current Windows app can easily push past 1GB once you have joined even a handful of servers. If that lower figure holds up in everyday use across busy accounts, the rewrite would represent a several-fold reduction in memory consumption for typical users.

No release date yet

The Verge reports that it is unclear when Discord will complete the transition. Vishnevskiy indicated the company aims to start testing the new client with users soon, but no timeline was given for a full rollout, and there is no word yet on how the change will be staged or whether both versions will coexist during a transition period.

Why it matters

Electron let a generation of teams build desktop apps using web technologies and web developer skills, and the bargain — shipping faster in exchange for heavier resource usage — became an accepted cost across the industry. Discord was one of the framework's most visible and widely installed deployments, and its exit is a significant data point against that bargain.

If a service operating at Discord's scale can move its whole client to Rust and deliver dramatically lower memory use, it strengthens the case for native rewrites of apps that have outgrown their web-based shells. It also validates an architectural pattern that several large platforms have been edging toward: one shared codebase written in a systems language, with native UI layered on top per platform. For developers and engineering leaders weighing whether to keep investing in Electron-style apps, Discord's migration, and how its user testing goes, will be one of the most closely watched experiments in desktop software right now.

  • #discord
  • #rust
  • #electron
  • #desktop-apps
  • #memory-usage

Related posts