Discord Rewrites Desktop and Mobile Clients in Rust Using Zed's GPU-Accelerated Rendering Framework
- Discord
- Zed
- Electron
- React Native
- Tauri
- VS Code
AI Summary
Discord is rewriting its desktop and mobile clients in Rust, abandoning Electron and React Native for a new stack codenamed Phoenix. The desktop application now uses GPUI, the GPU-accelerated Rust UI framework created for the Zed editor, eliminating Chromium and Node.js. Meanwhile, the mobile apps retain native UI components while sharing a unified Rust core, and the web client compiles application logic to WebAssembly. Early internal tests demonstrate dramatic improvements, including reduced RAM consumption down to around 290 MB and near-instant cold starts compared to the previous 5.5-second Electron boot time.
Key Takeaways
- Discord is replacing Electron on desktop and React Native on mobile with a Rust-based core and GPUI rendering framework.
- Early benchmarks show desktop RAM usage dropping to approximately 290 MB with significantly faster cold start times.
- While GPUI enables 120-fps rendering without garbage collection, it requires developers to handle missing browser accessibility and text layout features manually.
Why it matters
This rewrite represents a massive architectural shift away from resource-heavy web technologies toward native GPU-accelerated rendering and systems programming languages for large-scale consumer applications. It provides critical engineering insights into trade-offs involving performance, memory footprint, and the loss of out-of-the-box browser accessibility features when adopting GPUI.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.