Dev News Daily ENDE

Discord rewrites its desktop and mobile clients in Rust on Zed's GPUI

Discord's CTO Stanislav Vishnevskiy has announced that the company is rewriting its desktop and mobile clients in Rust, InfoQ reported on 19 November. The project, codenamed Phoenix, replaces Electron on the desktop and React Native on mobile. "That means Electron goes away, and so does React Native," Vishnevskiy wrote on X, adding that it is not Tauri but GPUI, and that the company hopes to get it into testing with users soon.

GPUI is the open-source, GPU-accelerated Rust UI framework built by the Zed team for the Zed editor. On mobile, Discord keeps native iOS and Android views and shares application code with the desktop through a common Rust core. The browser client keeps rendering HTML, with the application logic compiled to WebAssembly; embedded web surfaces such as YouTube videos and Activities will use an operating-system webview, since Electron's built-in browser is no longer there.

According to InfoQ, early internal desktop builds use around 290 MB of RAM with two accounts logged in and start almost instantly, against 5.5 seconds on Electron. On mobile, Vishnevskiy showed a load time under two seconds for the rewrite against about five seconds for the current app. InfoQ notes the trade-off: a GPU-rendered UI gives up features a browser provides out of the box, such as text layout, input method integration, screen-reader hooks and right-to-left support, which developers must wire in themselves.

Discord rewrites its desktop and mobile clients in Rust on Zed's GPUI
Discord rewrites its desktop and mobile clients in Rust on Zed's GPUI — Dev News Daily

Why it matters

The figures are internal builds shown by the company itself, not a released client. The cost InfoQ names - accessibility and text handling a browser used to provide - is the part users will notice if it is done badly.