Discord Shifts from Electron to Rust for Enhanced Performance
Transition Away from Electron
Discord has announced a significant change in the development of its desktop application, moving away from the Electron framework. Electron, a platform that allows developers to create cross-platform desktop applications using web technologies, is known for being resource-intensive.
Embracing Rust for Development
Discord’s new approach involves utilizing Rust, a modern programming language celebrated for its speed and memory safety features. Stanislav Vishnevskiy, Discord’s Chief Technology Officer, stated, “We’ve been early adopters of Rust since 2018 and a lot of our infra, voice tech, and even some of the current client is already Rust; the holy grail was getting the whole client there.” This transition signifies not only a shift in technical frameworks but also a major evolution in how Discord aims to improve its user experience.
Improvements in Performance and Resource Usage
Vishnevskiy highlighted a substantial benefit of this transition by sharing a performance metric: the upcoming Discord Windows client is projected to utilize only 290 MB of RAM. This is notably lower compared to the existing application, where RAM usage can exceed 1 GB when users participate in multiple servers. Such improvements are expected to enhance the overall efficiency and user experience of the application.
Timeline for Full Migration
While the exact timeline for the completion of this transition remains uncertain, Vishnevskiy expressed optimism about the development process, stating that the company “hope[s] to get it into testing with users soon.” This indicates Discord’s commitment to refining its platform before a widespread rollout of the Rust-based desktop app.
