Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
Nemeski ( nemeski@piefed.social )  to Technology@lemmy.zipEnglish · 21 days ago

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

www.windowslatest.com

external-link
message-square
49
link
fedilink
231
external-link

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

www.windowslatest.com

Nemeski ( nemeski@piefed.social )  to Technology@lemmy.zipEnglish · 21 days ago
message-square
49
link
fedilink
Discord is ditching Electron to rebuild its Windows app in Rust and GPUI, cutting idle RAM down to 290MB. The app was notorious for RAM usage
alert-triangle
You must log in or register to comment.
  • Onno (VK6FLAB) ( vk6flab@lemmy.radio ) 
    link
    fedilink
    English
    arrow-up
    136
    ·
    21 days ago

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

    • Scrollone ( Scrollone@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      60
      ·
      21 days ago

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

      • AllNewTypeFace ( AllNewTypeFace@leminal.space ) 
        link
        fedilink
        English
        arrow-up
        21
        ·
        21 days ago

        Perhaps it’s vibecoded slop?

        • ryannathans ( ryannathans@aussie.zone ) 
          link
          fedilink
          English
          arrow-up
          8
          ·
          21 days ago

          Rust apps seem to always be on the heavy side, maybe depends how much debug info they leave in

          • threeonefour ( threeonefour@piefed.ca ) 
            link
            fedilink
            English
            arrow-up
            8
            ·
            21 days ago

            I once played around with reverse engineering a Rust program. I compiled the optimized version of the standard “hello world” program which somehow turned into 50,000 lines of assembly.

            It looked like it copied over dozens of functions from libc and the data section was filled with every single possible error string “file not found”, “connection timed out”, etc. as if there was a possibility of hello world generating an access denied error.

            • henfredemars ( henfredemars@infosec.pub ) 
              link
              fedilink
              English
              arrow-up
              5
              ·
              21 days ago

              Was your C hello world program statically linked? I believe Rust includes its libraries whereas the typical hello world does not. Static linkage generally brings in large amounts of unused code.

            • boonhet ( boonhet@lemmy.zip ) 
              link
              fedilink
              English
              arrow-up
              2
              ·
              21 days ago

              Rust has static linking, you get the necessary (and some unnecessary) parts of the standard library in your binary instead of the user having to install the library the way you have to have a libc installed. Makes for fatter binaries but much easier compatibility.

        • 0xDREADBEEF ( dreadbeef@lemmy.dbzer0.com ) 
          link
          fedilink
          English
          arrow-up
          8
          ·
          21 days ago

          Anything new coming from any non-bootstrapped company is likely slop, and even the bootstrapped deserve a second look

        • VibeSurgeon ( VibeSurgeon@piefed.social ) 
          link
          fedilink
          English
          arrow-up
          5
          ·
          20 days ago

          I’d be willing to bet $100 that AI assistance was involved in creating this new client, yes.

          Similarly I’d bet the same amount that AI assistance was involved in building the former electron-based client

      • Lojcs ( Lojcs@piefed.social ) 
        link
        fedilink
        English
        arrow-up
        19
        ·
        21 days ago

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

      • MangioneDontMiss ( MangioneDontMiss@feddit.nl ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        20 days ago

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

  • AgentSeven ( AgentSeven@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    48
    ·
    21 days 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.

    • derfaucet ( derfaucet@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 days 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.)

  • Pika ( Pika@sh.itjust.works ) 
    link
    fedilink
    English
    arrow-up
    29
    ·
    21 days ago

    man I love that they are ditching electron but, they “just” fixed the discord linux client to properly update and now they are rehauling it? can’t wait to get this update 3 years from now.

    • henfredemars ( henfredemars@infosec.pub ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 days ago

      I got frustrated enough with the weirdness of the Linux client that I eventually ended up using a pinned browser tab.

      At least then the data collection monstrosity is sandboxed. I believe Flatpak helps, too.

  • Chiahna ( Chiahna@piefed.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    24
    ·
    21 days 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?

    • sorter_plainview ( sorter_plainview@lemmy.today ) 
      link
      fedilink
      English
      arrow-up
      23
      ·
      edit-2
      21 days ago

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

      So it should be cross platform

      • RustySharp ( RustySharp@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        12
        ·
        21 days 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?

        • egregiousRac ( phailhaus@piefed.social ) 
          link
          fedilink
          English
          arrow-up
          22
          ·
          21 days ago

          It’s a video player. You want GPU acceleration.

          • Venia Silente ( veniasilente@lemmy.dbzer0.com ) 
            link
            fedilink
            English
            arrow-up
            3
            ·
            21 days ago

            What video? 99.99479% of my Discord experience is text.

            • UnpledgedCatnapTipper ( UnpledgedCatnapTipper@piefed.blahaj.zone ) 
              link
              fedilink
              English
              arrow-up
              11
              ·
              21 days ago

              A lot of people talk and stream to their friends. If I only needed a text app, I would not use discord at all.

            • JackbyDev ( JackbyDev@programming.dev ) 
              link
              fedilink
              English
              arrow-up
              3
              ·
              21 days ago

              What video? 99.99479% of my Discord experience is text.

            • henfredemars ( henfredemars@infosec.pub ) 
              link
              fedilink
              English
              arrow-up
              2
              ·
              21 days ago

              Really depends on the server. The servers I use are driving incredibly rich media: like animated images, video clips, and streaming.

        • The_Decryptor ( The_Decryptor@aussie.zone ) 
          link
          fedilink
          English
          arrow-up
          12
          ·
          21 days ago

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

          Because rendering things is quite literally the reason GPUs exist, it takes load off the CPU and is more efficient at it to boot.

        • Possibly linux ( possiblylinux127@lemmy.zip ) 
          link
          fedilink
          English
          arrow-up
          5
          ·
          21 days ago

          Because without it UI changes create CPU spikes

        • Orygin ( Orygin@sh.itjust.works ) 
          link
          fedilink
          English
          arrow-up
          4
          ·
          21 days ago

          Do you like having battery?

        • JackbyDev ( JackbyDev@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          21 days ago

          People use Discord for a lot of things. A lot of people use it to stream and watch streams.

        • VibeSurgeon ( VibeSurgeon@piefed.social ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          20 days ago

          It doesn’t hurt to have the component that is optimized for drawing things to the screen be a bit more involved in drawing things to the screen.

          Strictly speaking necessary? No. Does it hurt? Not at all.

    • xistera ( xistera@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      21
      ·
      21 days ago

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

    • VibeSurgeon ( VibeSurgeon@piefed.social ) 
      link
      fedilink
      English
      arrow-up
      5
      ·
      20 days 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.

  • CompactFlax ( CompactFlax@discuss.tchncs.de ) 
    link
    fedilink
    English
    arrow-up
    19
    ·
    21 days ago

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

  • sage ( sage@lemmy.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    16
    ·
    21 days ago

    Why are people on Lemmy using discord?

    • guy ( guy@piefed.social ) 
      link
      fedilink
      English
      arrow-up
      31
      ·
      21 days ago

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

    • Allero ( Allero@lemmy.today ) 
      link
      fedilink
      English
      arrow-up
      15
      ·
      21 days 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.

    • Possibly linux ( possiblylinux127@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      14
      ·
      21 days ago

      Because thats what people use

      • flameleaf ( flameleaf@lemmy.zip ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        21 days ago

        That’s the only reason I use it

    • Eyro Elloyn ( Eyro_Elloyn@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      12
      ·
      21 days ago

      I’m friends with normal people.

    • LaserTurboShark69 ( LaserTurboShark69@sh.itjust.works ) 
      link
      fedilink
      English
      arrow-up
      9
      ·
      21 days ago

      To easily chat and stream with friends

    • BurgerBaron ( BurgerBaron@quokk.au ) 
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      21 days 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.

    • Axolotl.cpp ( Axolotl_cpp@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      7
      ·
      21 days 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

    • 0xDREADBEEF ( dreadbeef@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      21 days ago

      Desire?

    • JackbyDev ( JackbyDev@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      21 days ago

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

    • derfaucet ( derfaucet@beehaw.org ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      21 days 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.

      :(

  • gera ( gera@feddit.nu ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    21 days ago

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

  • Ricky Rigatoni ( RickyRigatoni@piefed.zip ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    21 days ago

    How will this affect the vesktop users

    • Axolotl.cpp ( Axolotl_cpp@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      21 days 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.

    • subignition ( subignition@piefed.social ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 days 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)

  • danielsoto317 ( danielsoto317@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    13 days 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?

  • Lemmynated ( Lemmynated@lemmy.zip ) BannedBanned
    link
    fedilink
    English
    arrow-up
    1
    ·
    18 days ago

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

Technology@lemmy.zip

technology@lemmy.zip

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !technology@lemmy.zip

News community around technology, social media platforms, information technology and governmental policy surrounding it.

What doesn’t fit here?

The core of the story has to be technology focused.

  • If article mentions “AI” in a sentence and then talks about business economics that doesn’t make it tech news.
  • Gaming is too many layers removed from technology. There are many dedicated communities that are a better fit for it.
  • Transporation is too many layers removed from technology. EVs while use many cool technologies have many dedicated communities that are a better fit for it.
  • Entertainment is too many layers removed from technology. While sometimes it can fit here, business or cultural aspects of it are a better fit for dedicated communities.
  • Cybersecurity. While it heavily focuses on technology, most of the time it’s too technical for most people who are not already invested in it. Should be posted in a dedicated communities unless it has broader connection to other tech areas.

Post guidelines

Title format

Post title should mirror the news source title. If you don’t like the title of article, look for an alternative source instead of editorializing it.

URL format

Post URL should be the original link to the article (even if paywalled) and archived copies left in the body. It allows avoiding duplicate posts when cross-posting.

[Opinion] prefix

Opinion (op-ed) articles must use [Opinion] prefix before the title. Opinion articles refer to articles that their publisher doesn’t explictly endorse.

Country prefix

Country prefix can be added to the title with a separator (|, :, etc.) if the news is from a local publisher who doesn’t clearly mention the country.


Rules

1. English only

Title and associated content has to be in English.

2. Use original link

Post URL should be the original link to the article (even if paywalled) and archived copies left in the body. It allows avoiding duplicate posts when cross-posting.

3. Respectful communication

All communication has to be respectful of differing opinions, viewpoints, and experiences.

4. Inclusivity

Everyone is welcome here regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

5. Ad hominem attacks

Any kind of personal attacks are expressly forbidden. If you can’t argue your position without attacking a person’s character, you already lost the argument.

6. Off-topic tangents

Stay on topic. Keep it relevant.

7. Instance rules may apply

If something is not covered by community rules, but are against lemmy.zip instance rules, they will be enforced.


Companion communities

!globalnews@lemmy.zip
!interestingshare@lemmy.zip


Icon attribution | Banner attribution


If someone is interested in moderating this community, message @brikox@lemmy.zip.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3 users / day
  • 471 users / week
  • 1.26K users / month
  • 3.8K users / 6 months
  • 48 local subscribers
  • 7.62K subscribers
  • 6.45K Posts
  • 14.9K Comments
  • Modlog
  • mods:
  • BrikoX ( BrikoX@lemmy.zip ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code