Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

⁨339⁩ ⁨likes⁩

Submitted ⁨⁨2⁩ ⁨weeks⁩ ago⁩ by ⁨nemeski@piefed.social⁩ to ⁨technology@lemmy.zip⁩

https://www.windowslatest.com/2026/11/05/discord-is-killing-its-electron-app-that-can-eat-4gb-of-ram-on-windows-11-and-the-rust-rebuild-uses-just-290mb/

Discord is killing its Electron app that can eat 4GB of RAM on Windows 11, and the Rust rebuild uses just 290MB

source

Comments

Sort:hotnewtop
  • vk6flab@lemmy.radio ⁨2⁩ ⁨weeks⁩ ago

    I think that the headline says more about Electron than it does about Rust.

    source
    • Scrollone@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

      Yeah exactly. “Just” 240 MB, it’s still a lot for a glorified chat app

      source
      • AllNewTypeFace@leminal.space ⁨2⁩ ⁨weeks⁩ ago

        Perhaps it’s vibecoded slop?

        source
        • -> View More Comments
      • Lojcs@piefed.social ⁨2⁩ ⁨weeks⁩ ago

        240 is quite little considering how much media there’s in it

        source
      • zergtoshi@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

        Windows 98 required far less disk space and was a complete operating system - that is if you consider Win98 an operating system…

        source
        • -> View More Comments
      • MangioneDontMiss@feddit.nl ⁨2⁩ ⁨weeks⁩ ago

        have you seen how much memory a single webpage in chrome uses?

        source
    • fartsparkles@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

      Even the guys who invented Electron (developers of the Atom text editor) stopped using it years ago and switched to Rust when writing their new editor, Zed.

      source
      • henfredemars@infosec.pub ⁨2⁩ ⁨weeks⁩ ago

        Maybe we don’t want to use JavaScript for literally everything.

        It’s great to see it. I wonder how much of this push comes from the high price of memory.

        source
        • -> View More Comments
  • joeschmoe@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

    “Hey Claude, rewrite our dogshit Electron app in Rust, make no mistakes”.

    source
    • diaphragmwp@discuss.tchncs.de ⁨2⁩ ⁨weeks⁩ ago

      Hey Claude, add Discord branding to this template so that I may show off Windows task manager.

      source
  • AgentSeven@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

    Discord is as much spyware as anything else. Its efficiency in using my computer’s resouces in order to log everything about me, build a dossier on me and sell me out at every opportunity is not a consideration, as I view it as something to be avoided like Meta, et al.

    That said, Electron does suck.

    source
    • derfaucet@beehaw.org ⁨2⁩ ⁨weeks⁩ ago

      Anything else? Nah bro. It’s as much spyware as Google chat or Whatsapp… But Matrix, XMPP, mumble, etc are not spyware (sure, if your host is the CIA maybe, but with these software you can be your own host if you want. No spying guaranteed.)

      source
  • Evotech@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

    Vibe coded i guess?

    source
    • nightlily@leminal.space ⁨2⁩ ⁨weeks⁩ ago

      I get why vibe coders love Rust - it’s a lot harder to shoot yourself in the foot if rustc is checking your lifetimes, but holy shit is the code I’ve seen from them the most unholy mess. Rust is difficult enough to read at the best of times but LLMs don’t even bother with any kind of module structure. Just thousands of lines of vomit in single files and a worrying amount of unsafe.

      source
      • Fiery@lemmy.dbzer0.com ⁨2⁩ ⁨weeks⁩ ago

        Just tell the clanker to use modern practices poof fixed.

        Jokes aside a lot of that bad code can be detected by static linting tools and gated on, making it impossible for any of those to reach main.

        source
      • boonhet@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

        Honestly sounds like LLMs have learned that from half the rust projects I’d seen before the LLM craze lol

        source
      • FukOui@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

        Unsafe? For vibe coded client/ backend?

        source
    • TBi@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

      And this will probably give rust a bad name if most of the code is horrid vibe coded stuff. (Cuck coded?)

      source
    • entwine@programming.dev ⁨2⁩ ⁨weeks⁩ ago

      99% of new Rust projects today are vibe coded, so probably yeah

      source
    • faercol@lemmy.blahaj.zone ⁨2⁩ ⁨weeks⁩ ago

      Hmmmm, the first blog posts about rewriting the backend part from Go to Rust are a few years old by now (early 2020) so it’s clearly not a “let’s vibecode everything in two weeks” kind of project.

      However… The later stages are probably vibecoded… Yeah, that would check out today.

      source
  • Chiahna@piefed.blahaj.zone ⁨2⁩ ⁨weeks⁩ ago

    It’s great, but I wonder what happens with the linux client? There is no mention of it in the article.
    Do we get optimized native client or is that too much work if they don’t have universal framework anymore?

    source
    • sorter_plainview@lemmy.today ⁨2⁩ ⁨weeks⁩ ago

      They are using GPUI. Rust native UI franework from the Zed IDE team. I think the creator of Zed is the one who created Electron in tbe first place, then left. I’m not usre though.

      source
      • RustySharp@programming.dev ⁨2⁩ ⁨weeks⁩ ago

        It’s a bold strategy. “Electron sucks! Let’s see what else these people made”.

        But seriously, why do I need GPU acceleration for my chat UI?

        source
        • -> View More Comments
    • xistera@lemmy.dbzer0.com ⁨2⁩ ⁨weeks⁩ ago

      Image

      Marketing director of Discord on Reddit says linux will have a native client.

      source
    • VibeSurgeon@piefed.social ⁨2⁩ ⁨weeks⁩ ago

      “Native” sort of loses its meaning in this context - this new client is not “native” in the sense of using the existing GUI tooling for each platform (Cocoa for macOS, any of Microsoft’s own frameworks on Windows, primarily Gnome/KDE on Linux).

      It is using a universal framework in GPUI, so the experience will be the same on each platform.

      It is “native” in the sense that it’s not web technology on any of the platforms.

      source
  • CompactFlax@discuss.tchncs.de ⁨2⁩ ⁨weeks⁩ ago

    Good to see. Electron is trash for a few reasons.

    source
  • sage@lemmy.blahaj.zone ⁨2⁩ ⁨weeks⁩ ago

    Why are people on Lemmy using discord?

    source
    • guy@piefed.social ⁨2⁩ ⁨weeks⁩ ago

      People probably voice chat with their friends, I don’t think Lemmy has that feature?

      source
      • idunnololz@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

        I also use it for socializing. Basically a collection of giant instant messaging groups.

        source
    • perturbedstarstuff@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

      It’s actually really difficult to get your friends to switch over little things like ‘being a spy platform’, and ‘leaking tens of thousands of users private information’.

      source
    • Allero@lemmy.today ⁨2⁩ ⁨weeks⁩ ago

      It’s a mainstream platform, so many non-Lemmy people are still there.

      Besides, it’s always worth the praise when someone makes good technical decisions that benefit users.

      source
    • possiblylinux127@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

      Because thats what people use

      source
      • flameleaf@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

        That’s the only reason I use it

        source
    • Eyro_Elloyn@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

      I’m friends with normal people.

      source
    • Axolotl_cpp@lemmy.dbzer0.com ⁨2⁩ ⁨weeks⁩ ago

      To manage my community more easly and interact with many others aswell plus every friend of my uses it.

      There is no alternative currently that offers a granular permission system like discord’s, voice chat and streaming that doesn’t also suck in other aspects

      source
    • BurgerBaron@quokk.au ⁨2⁩ ⁨weeks⁩ ago

      Things I want are held hostage on Discord. If I want to play Motorstorm online, I look at the fan server channel and it has real time lobby stats and chat rooms to get some games going. Just an example. My friends usually use Steam for voice chat.

      source
    • dreadbeef@lemmy.dbzer0.com ⁨2⁩ ⁨weeks⁩ ago

      Desire?

      source
    • JackbyDev@programming.dev ⁨2⁩ ⁨weeks⁩ ago

      Oh, I’m sorry, I wasn’t aware I had to forego all traditional social media applications to use federated ones. 🙄

      source
    • derfaucet@beehaw.org ⁨2⁩ ⁨weeks⁩ ago

      Someone at work with much more political power, and much less knowledge of how dangerous surveillance capitalism is, insists on using it 'cause they use it all the time and it’s functional.

      :(

      source
  • gera@feddit.nu ⁨2⁩ ⁨weeks⁩ ago

    With screensharing on wayland? With screensharing on wayland, right?

    source
  • Brkdncr@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

    You ever use a Swiss Army knife to open a letter? It’s a lot of extra shit you don’t need but it’s there anyways.

    source
  • RickyRigatoni@piefed.zip ⁨2⁩ ⁨weeks⁩ ago

    How will this affect the vesktop users

    source
    • Axolotl_cpp@lemmy.dbzer0.com ⁨2⁩ ⁨weeks⁩ ago

      TL;DR: vesktop will probably no longer work (unless they wanna mantain the client themselves…) and vencord will likely only work as a userscript in your browser.

      source
    • subignition@piefed.social ⁨2⁩ ⁨weeks⁩ ago

      It probably won’t, but honestly there aren’t that many features the desktop client has that you can’t just get by using the browser webapp (Keyboard shortcuts, and the “now playing” feature that is a privacy mess, are the two biggest ones that come to mind right now)

      source
      • Jesus_666@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

        Being its own icon on the taskbar would be one I’d miss.

        source
  • danielsoto317@lemmy.zip ⁨1⁩ ⁨week⁩ ago

    Now everything will become Rust, does anyone knows if its as good as some benchmarks say it is? Should I rewrite my life in Rust?

    source
  • Lemmynated@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

    Will the rust ai slop be better than the electron humanslop?

    source
  • carrylex@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

    I’m pretty sure this is just an experiment:

    • The website version of the app can’t be replaced
    • The normal discord app is not that memory hungry it’s usually below 1 GB for me, maybe consider optimizing your existing codebase?
    • A web based client allows for easier customization, better styling and easier creation of modifications
    source
    • boonhet@lemmy.zip ⁨2⁩ ⁨weeks⁩ ago

      The existing app is based on electron. It pretty much can’t be optimised unless you manage to greatly reduce the footprint of Chromium itself.

      source