Discord dumps Electron and rewrites its app in Rust to slash RAM use

Discord is ditching Electron and its new app uses less RAM

Discord dumps Electron and rewrites its app in Rust to slash RAM use

Discord is abandoning Electron and React Native, moving its entire desktop client to Rust, a language it has used since 2018 for infrastructure and voice tech. CTO Stanislav Vishnevskiy shared a screenshot of the Windows app running on just 290MB of RAM, a sharp drop from the 1GB or more the current app often consumes. Mobile keeps native UI but will share app code with desktop through Rust. Testing with users is expected soon.

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.
  1. throwaway2037

    From the website https://gpui.rs/, I see this description:

    > GPU-accelerated UI framework for Rust

    Can someone explain to me why a text editor needs to be GPU-accelerated? Literally, you are only blitting a few icons and painting text. What am I missing? To be clear, I am not here to doubt that the toolkit is good. Rather, I am asking why is "GPU-accelerated" important? Most people in 2026 that use an IDE are also equipped with a multi-GHz CPU has has plenty of compute to paint whatever pixels necessary at more than 60Hz refresh rate.

  2. the__alchemist

    I had trouble reading more than the opening volley of the article due to popups. Am a Discord user, and rust application programmer: What GUI framework are they using? EGUI? GPUI? Something custom?

    GPUI from comments? I meant to try GPUI, but backed off after an announcement pending its maintenance would be in question (?) a few months ago, and Zed broadly ending up being a false messiah, for my uses. (Not on the tier of JetBrains IDEs, a bug with a long thread they closed which (still I believe?) causes it to open cached versions of files, then clobber edits made since the cache, e.g. by other programs. I.e. the sort of bug which renders software too dangerous to use. I will not switch to a GUI framework from a group that ignores bugs of that severity reported by many people)

  3. kayson

    I'm very interested in (and a total novice in) cross platform GUI application development. Hadn't heard of GPUI, though I had heard of Tauri. I looked at the GPUI front page and saw this mess of almost-CSS method chaining... Surely there's a better way? This seems horrible to me.

    > div()

    .flex()

    .flex_col()

    .gap_3()

    .bg(rgb(0x505050))

    .size(px(500.0))

    .justify_center()

    .items_center()

    .shadow_lg()

    .border_1()

    .border_color(rgb(0x0000ff))

    .text_xl()

    .text_color(rgb(0xffffff))

    .child(format!("Hello, {}!", &self.text))

    .child(

    div()

    .flex()

    .gap_2()

    .child(div().size_8().bg(gpui::red()))

    .child(div().size_8().bg(gpui::green()))

    .child(div().size_8().bg(gpui::blue()))

    .child(div().size_8().bg(gpui::yellow()))

    .child(div().size_8().bg(gpui::black()))

    .child(div().size_8().bg(gpui::white())),

    )

  4. Swiffy0

    Not sure what to think of this.

    Sure, a Rust implementation will perform better and use less RAM, but it's quite obvious that the transition to Rust will be done almost entirely by AI.

    Don't get me wrong, the AI coded Rust version of Discord will most likely work just fine. The thing I'm wondering about is if it's a good idea to rewrite your whole codebase (which I assume is handwritten since Discord predates AI coding) with AI because now there is nobody that knows how it really works - I'm wondering what's the value of having a human-written codebase + the people who wrote it. Just feels like one shouldn't throw that into the trash like it's nothing?

  5. PreciousH

    It's crazy how much RAM electron needs, at my old startup the main product was an electron app, i initially used to run into this issue where AI wouldn't clean up the dev builds it spunned up for e2e testing and each could be over 500MB, it just get's to a point that the cross platform advantage is no longer worth it, i think it was one of the main reasons cursor had to move off electron to rust based builds.

  6. mintflow

    I noticed this news and because one of my codex banked reset is expiring soon

    I launch codex with astra+ultra on my tauri project because webview sometimes cause blank screen on user device to let it to rewrite the tauri projec to GPUI

    It did those stuffs for me

    - get rid of the CGO and MINGW toolchain for cross building windows on Linux

    - wrote a compatbility layer to communicate the original app backend written using rust

    - Achieve not ideal but acceptable UI/UX as the tauri project

    - The new build using 24MB memory which is quite good and I do not even bother to check the tauri version

    It amazing time to rewrite, though I still can't remember joy of old days that manual coding, but my lower back ask me to just embrace the Agentic coding...

  7. Telaneo

    Holy Jesus of Nazareth. I love it.

    I just pray that Vencord will continue to work in some form, if only so I can use whatever font I want. I'm not a fan of many other changes they've made and I've thus had to reverse, but I'm willing to trade away the flexibility of CSS for an app that uses 5 times less RAM. Even better if it doesn't go away at all, but we'll see.

  8. Kuyawa

    The app size also went from 10 GB to 10 MB, start time went from 10 secs to 10 ms

    Goodbye Electron, we barely knew you

  9. stasomatic

    Who cares? I've never had performance issues with Slack, Discord and the like. It runs fast enough on my MBP. They could make it faster by removing the casino lights and prompts and upsells, and research other ways to monetize. Electron is not the issue with Discord, it's their constant annoying nagging.

  10. renehsz

    This wasn't on my 2026 bingo card but I love it!

More from this day

2026-11-05