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

@best

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

TL;DR Discord's CTO Stanislav Vishnevskiy announced on X that the company is moving its desktop client fully to Rust, dropping Electron and React Native, with mobile keeping native UI while sharing app code via Rust. He shared a screenshot of the Windows client using about 290MB of RAM, versus 1GB or more for heavy users of the current app, and said the new client should reach user testing soon, with no firm date for the full switch.

  • 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 there.
  • Electron and React Native are being removed; mobile keeps native UI but shares app code with desktop through Rust.
  • Windows client memory use is shown at about 290MB, compared with 1GB or more for users in only a few servers on the current app.
  • No release date for the full switch was given; the company hopes to get it into user testing soon.
  • The article is short and relies mainly on the CTO's X post; it gives no details on the GUI framework or performance benchmarks.

Discussion The thread is a mix of enthusiasm for lower resource use and skepticism about the approach. Many commenters cheer the end of Electron and point to memory and size figures, though several challenge the claimed 10GB install size and note that no outside users have tried the Rust port yet. A large share of the discussion centers on AI-assisted rewriting: some see it as a sign of what LLMs make possible, others worry about lost institutional knowledge and about modding becoming harder. The mood is lively and mostly positive about performance, with a skeptical undercurrent about AI and Discord's direction.

  • Electron is bloated and its end is welcome (many): Many commenters say Electron apps waste RAM and disk space, and that a full browser engine is the wrong base for a chat app. They welcome the move as a sign that resource use will matter again.
  • AI makes rewriting native apps cheap (many): Several argue LLMs lower the cost of rewriting in Rust or native code, so developers should cut resource use. Others say the Discord port itself is likely AI-generated and that this is a sign of where software is going.
  • Rewrite with AI risks losing understanding (some): Some worry that replacing a human-written codebase with AI-generated code leaves nobody who understands it, making future changes and reversals hard. Others reply that large codebases were never fully understood by one person, so this risk is overstated.
  • Modding and third-party clients will suffer (some): Users of Vencord and other mods fear the native client will be harder to modify. Some expect community reimplementations or AI-driven reverse engineering to fill the gap.
  • Electron's cost is a trade-off, not pure laziness (a few): A minority defends Electron for cross-platform support, accessibility, tooling and easy hiring, arguing that calling it lazy ignores real engineering trade-offs. They also note that rebuilding parts of a browser brings its own bugs and costs.
  • Numbers in the story look wrong or misleading (a few): Commenters question the 10GB install size, noting that the Linux Flatpak is about 240MB download and 568MB installed, and suggest the size came from old update leftovers. Others say the Rust port has not been tested by outsiders yet.
  • Discord's IPO and ads make leaving a good idea (a few): Some worry that an IPO will bring more ads and monetization, and suggest looking at alternatives, though network effects keep most users in place.

Links from the comments

#Discord #Rust #Electron #desktopApps #AIcoding #performance