← Thu, Nov 5 digest

Discord is ditching Electron and its new app uses less RAM

read article ↗ hn thread ↗

Discord is replacing Electron and React Native with Rust and the GPUI framework for its desktop and mobile clients, drastically reducing memory usage.

summary is enough The short announcement is less informative than the comment thread's technical debate over the GPUI framework and accessibility concerns.

summary

Discord is fully transitioning its desktop and mobile applications from Electron and React Native to the Rust programming language. According to the company's CTO, the new native client will share core code across platforms while adopting the GPU-accelerated GPUI framework for the UI. Early previews show dramatic reductions in RAM usage compared to the current web-technologies stack. The switch leverages Rust for both application logic and rendering, moving away from web-based overhead entirely.

key points

  1. Discord is dropping Electron for desktop and React Native for mobile, unifying client code and UI via Rust.
  2. The UI is built using GPUI, the GPU-accelerated framework created by Zed, which significantly lowers RAM consumption.
  3. Technical discussions highlighted potential regressions for screen readers and accessibility tools due to GPUI's custom rendering.

who should read it

Software engineers and desktop application developers interested in cross-platform GUI frameworks and Rust.

discussion positive

consensus

Commenters are generally thrilled about the massive RAM savings and dropping Electron's bloat, but anxious about accessibility regressions and the long-term maintainability of custom GUI frameworks.

pushback

Some users voiced strong pushback against using GPUI due to its lack of built-in support for native accessibility frameworks, potentially blocking screen reader users.

best comment by ethin ↗

The fact they're using gpui is... Bad. Is someone trying to make it integrate with native accessibility frameworks? If not (and if they force the native app on us) this transition is going to lock out a ton of people who use assistive technologies.

It highlights a critical accessibility flaw in the GPUI framework choice that mainstream coverage ignored.

Generated by an LLM from the article and thread. Check the sources before relying on it.