EXPLORINEER
en

Hatena

Discord Rewrites Entire Client in Rust to Move Away from Electron, Adopts Zed's GPUI UI Framework and Shares Code with Mobile Version

SoftwareFirst seen 56 points


Discord plans to rewrite its whole app in the Rust programming language and move away from Electron. The desktop app will use GPUI, a UI toolkit made by the team behind the Zed code editor.

Discord is rebuilding its app in Rust

Discord, a chat app for gamers, says it will move its entire client app to Rust. Stanislav Vishnevskiy, Discord's co-founder and CTO, shared the plan on X (formerly Twitter) on November 4. Electron, which is used for the desktop app today, will go away. React Native, which is used for mobile today, will also go away. The mobile apps will keep their native look on iOS and Android, but they will share core app code with the desktop version through Rust.

Key facts

  • Discord has used Rust since 2018 for parts of its infrastructure and voice technology.
  • Today, the desktop app is built with Electron and the mobile app with React Native. Both are based on JavaScript.
  • The desktop app will use GPUI, not Tauri. GPUI is made by the team behind the Zed code editor and uses the GPU to speed up drawing the screen.
  • Vishnevskiy says the team hopes to start testing the new Rust app with users soon.

Why Electron and Rust matter

Electron is a tool that lets developers build desktop apps using web technology such as JavaScript. Rust is a programming language known for speed and efficiency. It builds apps that run directly on the computer, without a web-based layer. Moving from JavaScript tools to native Rust apps can bring better performance.

Why it matters

This is a big change for one of the most popular chat apps for gamers. If the plan works, Discord could run faster and use computer resources more efficiently. Sharing code between desktop and mobile through Rust could also make it easier for the company to keep both versions working well together.

What to watch

  • When Discord starts user testing of the new Rust app.
  • Whether the new app runs faster than the current Electron version.
  • How smoothly mobile apps share code with the desktop version.
  • Whether GPUI is ready for a large app like Discord.

Glossary

Discord
A chat app mainly used by gamers for voice, video, and text talk.
Rust
A programming language known for speed and safety, often used to build fast software.
Electron
A tool that builds desktop apps using web technology such as JavaScript.
React Native
A tool that builds mobile apps using JavaScript.
GPUI
A UI toolkit from the team behind the Zed code editor, which uses the graphics chip to draw the screen quickly.
Zed
A code editor, a program where programmers write code.