RC RANDOM CHAOS

Discord Ditches Electron, Saves 70% RAM With Rust Rebuild

· via Hacker News

Original source

Every Windows 11 app should kill Electron, and Discord just showed why

Hacker News →

Discord is completely rebuilding its desktop application in Rust using GPUI, a GPU-accelerated UI framework from Zed’s creators, replacing Electron’s bundled browser engine. The single codebase runs natively on Windows, macOS, and Linux. Mobile apps shift away from React Native toward native interfaces powered by shared Rust code, while the web client executes application logic through WebAssembly with HTML rendering intact.

Performance gains are significant. The Rust version loads its friends list before the Electron client finishes displaying its launch screen. Memory consumption sits at 290MB when running two concurrent accounts—roughly 70% below Discord’s typical 1GB baseline. The new build eliminates the update-check delay by applying patches silently in the background rather than blocking startup.

The shift exposes questionable design decisions elsewhere. WhatsApp migrated from a native Windows app under 100MB to a WebView2 wrapper consuming 1.2GB; Teams idles at 963MB despite Microsoft’s own WinUI advocacy. Discord’s proof-of-concept undermines the technical justification for such overhead. Private testing begins soon with no public release date announced.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.