Discord is ditching Electron and its new app uses less RAM theverge.com · 262 po...

@best30

Discord is ditching Electron and its new app uses less RAM theverge.com · 262 points · 220 comments · HN thread

TL;DR Discord CTO Stanislav Vishnevskiy announced on X that Discord is moving its desktop and mobile clients fully to Rust, dropping Electron and React Native, with mobile keeping native UI and sharing app code via Rust. He shared a Windows client screenshot using about 290MB of RAM, versus 1GB or more for the current app in some cases, and said the company hopes to get it into user testing soon with no firm date.

  • Discord has used Rust since 2018; its infrastructure, voice tech and part of the client are already Rust, and the goal is to move the whole client to it.
  • Electron and React Native are being removed; mobile keeps native UI but shares app code with desktop through Rust.
  • A Windows client screenshot shows about 290MB of RAM use, compared with reports of 1GB or more for the current Windows app with only a few servers joined.
  • Commenters identified the UI toolkit as GPUI, the framework from the Zed editor, rather than Tauri or egui.
  • No release timeline was given; the CTO said the company hopes to get it into testing with users soon.
  • Commenters raised concerns about modding, accessibility, and whether AI tools did much of the rewrite.

Discussion The thread is a mix of praise for lower resource use and skepticism about the motives and method. Many commenters welcome the end of Electron and cite RAM, startup time and the broader case against bloated desktop software. Much of the debate centers on the likely role of AI coding tools in the rewrite, with some arguing that AI makes native rewrites cheap and others worrying that nobody will understand the resulting codebase. Other threads cover the GPUI toolkit's accessibility and maturity, the risk to client modding and third-party clients, distrust of Discord over ID verification and ads, and a long side argument about whether Electron is a sensible choice for chat apps. The mood is mixed: cautiously positive about performance, but skeptical about Discord itself.

  • Electron is wasteful and native rewrites are overdue (many): Many commenters are glad to see Electron dropped, citing RAM use, security exposure from embedding a browser, and slow startup. Some hope other apps such as Slack and Teams follow.
  • AI makes native rewrites cheap and practical (many): Several commenters report using LLMs to port or rebuild their own apps in Rust, Swift or GPUI with good results. They see this as the reason large rewrites like this are now feasible.
  • AI-written rewrites risk losing understanding of the codebase (some): Some argue that a rewrite largely produced by AI leaves no one who understands the system, making long-term maintenance and reversal hard. Others reply that large codebases were never fully understood by one person anyway.
  • Electron's cross-platform benefits are real and underrated (some): Defenders say Electron gives free cross-platform support, accessibility, devtools and a large hiring pool, and that rebuilding this in Rust is a poor trade. Critics answer that the trade-offs are often overstated.
  • Discord itself is distrusted regardless of the rewrite (some): Several commenters point to phone-number verification, ads, account bans and the upcoming IPO as reasons to leave Discord, and they doubt the performance work benefits users.
  • Modding and third-party clients may get harder (a few): Some expect a native binary to be harder to mod than a web bundle, and suggest that Vencord-style modding or alternative clients may suffer. Others say a web client remains and mods can be rebuilt.
  • GPUI accessibility and maturity are concerns (a few): Commenters note that GPUI lacks built-in accessibility, and that forks and a Zed-focused roadmap may leave it under-maintained. Some say accessibility can be added with third-party libraries, and one developer reports building apps with it successfully.

Links from the comments

#Discord #Electron #Rust #GPUI #AICoding #DesktopApps