• Windows Latest discovered Discord and other Chromium and Electron-based applications with high RAM usage
  • RAM usage spikes from 1GB to 4GB on Discord both in and out of voice chat
    • The Quuuuuill@slrpnk.net
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      what’s google got to do with it? this is an article about a product develeped at GitHub (now a microsoft subsidiary) causing problems with Windows and the thumbnail is showing produts from the following companies:

      • facebook
      • discord
      • microsoft
      • microsoft
      • microsoft
      • microsoft

      like. look. i hate google. they partner with israel to conduct genocide (don’t use waze, btw, or better yet, don’t use any google products). but this seems like not looking at the whole of how evil all of big tech is just to focus on how evil one company in big tech is

    • zaphod@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      5
      ·
      7 hours ago

      Electron was originally developed by GitHub for a text editor called Atom.

  • xthexder@l.sw0.com
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    2
    ·
    20 hours ago

    Windows Latest discovered Discord and other Chromium and Electron-based applications with high RAM usage

    Lol, this is news? Where have they been the last 15 years?

    In other news, the sky is blue.

  • UnderpantsWeevil@lemmy.world
    link
    fedilink
    English
    arrow-up
    31
    ·
    22 hours ago

    I remember how the combination of Internet mass distribution of file data and the blossoming gray market for file-share applications really super-charged the technology of file compression.

    I wonder if we’ll see skyrocketing RAM prices put economic pressure on the system bloat rampant through modern OSes.

      • UnderpantsWeevil@lemmy.world
        link
        fedilink
        English
        arrow-up
        13
        ·
        19 hours ago

        I mean, ymmv. The historical flood of cheap memory has changed developer practices. We used to code around keeping the bulk of our data on the hard drive and only use RAM for active calculations. We even used to lean on “virtual memory” on the disk, caching calculations and scrubbing them over and over again, in order to simulate more memory than we had on stick. SSDs changed that math considerably. We got a bunch of very high efficiency disk space at a significant mark up. But we used the same technology in our RAM. So there was a point at which one might have nearly as much RAM as ROM (had a friend with 1 GB of RAM on the same device that only had a 2 GB hard drive). The incentives were totally flipped.

        I would argue that the low-cost, high-efficiency RAM induced the system bloat, as applications could run very quickly even on a fraction of available system memory. Meanwhile, applications that were RAM hogs appeared to run very quickly compared to applications that needed to constantly read off the disk.

        Internet applications added to the incentive to bloat RAM, as you could cram an entire application onto a website and just let it live in memory until the user closed the browser. Cloud storage played the same trick. Developers were increasingly inclined to ignore the disk entirely. Why bother? Everything was hosted on a remote server, lots of the data was pre-processed on the business side, and then you were just serving the results to an HTML/Javascript GUI on the browser.

        Now it seems like tech companies are trying to get the entire computer interface to be a dumb terminal to the remote data center. Our migration to phones and pads and away from laptops and desktops illustrates as much. I wouldn’t be surprised if someone finally makes consumer facing dumb-terminals a thing again - something we haven’t really experienced since the dawn of personal computers in the 1980s.

        But TL; DR; I’d be more inclined to blame “bloat” on internet web browsers and low cost memory post '00s than on AI written-code.

        • nosuchanon@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 hours ago

          I mean, ymmv. The historical flood of cheap memory has changed developer practices. We used to code around keeping the bulk of our data on the hard drive and only use RAM for active calculations. We even used to lean on “virtual memory” on the disk, caching calculations and scrubbing them over and over again, in order to simulate more memory than we had on stick. SSDs changed that math considerably. We got a bunch of very high efficiency disk space at a significant mark up. But we used the same technology in our RAM. So there was a point at which one might have nearly as much RAM as ROM (had a friend with 1 GB of RAM on the same device that only had a 2 GB hard drive). The incentives were totally flipped.

          I would argue that the low-cost, high-efficiency RAM induced the system bloat, as applications could run very quickly even on a fraction of available system memory. Meanwhile, applications that were RAM hogs appeared to run very quickly compared to applications that needed to constantly read off the disk.

          Internet applications added to the incentive to bloat RAM, as you could cram an entire application onto a website and just let it live in memory until the user closed the browser. Cloud storage played the same trick. Developers were increasingly inclined to ignore the disk entirely. Why bother? Everything was hosted on a remote server, lots of the data was pre-processed on the business side, and then you were just serving the results to an HTML/Javascript GUI on the browser.

          Now it seems like tech companies are trying to get the entire computer interface to be a dumb terminal to the remote data center. Our migration to phones and pads and away from laptops and desktops illustrates as much. I wouldn’t be surprised if someone finally makes consumer facing dumb-terminals a thing again - something we haven’t really experienced since the dawn of personal computers in the 1980s.

          It is definitely coming and fast. This was always Microsoft’s plan for an internet only windows/office platform. Onedrive and 365 is basically that implementation now that we have widespread high speed internet.

          And with the amount of SaaS apps the only thing you need on a local machine is some configuration files and maybe a downloads folder.

          Look at the new Nintendo Switch cartridges as an example. They don’t contain the game, just a license key. The install is all done over the internet.

  • kalpol@lemmy.ca
    link
    fedilink
    English
    arrow-up
    20
    ·
    22 hours ago

    And here I am resurrecting Dell laptops from 2010 with 1.5gb DDR RAM and Debian

    • mcv@lemmy.zip
      link
      fedilink
      English
      arrow-up
      10
      ·
      22 hours ago

      I remember when they changed the backronym for Emacs from “Eight Megabytes And Constantly Swapping” to Eighty. Megabytes. Or when a Netscape developer was proud to overtake that memory use.

      What’s the point of more RAM and faster processors if we just make applications that much less efficient?

      • The Quuuuuill@slrpnk.net
        link
        fedilink
        English
        arrow-up
        7
        ·
        21 hours ago

        “unused ram is wasted ram”

        yeah yeah yeah, great. but all you motherfuckers did that and i’m fucking out of ram.

        • pftbest@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          9 hours ago

          This phrase is just plain wrong. Unused ram is used for the page cache by the kernel. You must always have some ram free or else the whole system will not operate without a page cache. Larger page cache allows to cache more files from the file system.

        • Korhaka@sopuli.xyz
          link
          fedilink
          English
          arrow-up
          3
          ·
          19 hours ago

          I want to run more than 1 process thanks. So fuck off with you trying to eat 3GB to render a bit of text.

  • BlueBockser@programming.dev
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    1 day ago

    Yeah, the RAM shortage is definitely to blame on Electron. Won’t someone please think of the poor AI companies who have to give an arm and a leg to get a single stick of RAM!

    • floofloof@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 hours ago

      I wouldn’t mind so much if they were giving their own arms and legs, but they seem to be giving ours.

    • HugeNerd@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      14 hours ago

      If you have a better way of generating videos of absurdly obese Olympic divers doing the bomb from a crane, I’d love to hear it.

  • Kissaki@feddit.org
    link
    fedilink
    English
    arrow-up
    35
    ·
    edit-2
    1 day ago

    I guess the prices give us a new kind of issue ticket template; “new RAM is too expensive for me, please consider optimizing”

    Less abstract, more concrete than “take less of a share please”

    • Kairos@lemmy.today
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      2
      ·
      24 hours ago

      Electron should be a system dependency entirely so that every single app doesn’t have to be individually updated whenever there’s a chromium CVE which seems to be weekly.

    • Pringles@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      12
      ·
      1 day ago

      Just another AI agent bro, that will fix th

      Out of Memory or System Resources. Close some windows or programs and try again.

      • phlegmy@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        15 hours ago

        No thanks. Any software that has AI integration as one of its main selling points is shitware imo.

      • Jankatarch@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        19 hours ago

        VSCode history is so messed up. Microsoft buys github and stops production of github team’s IDE, then uses the framework developer for that IDE to make VSCode.

        Fucking 1600s colonizer behavior.

  • floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    162
    ·
    edit-2
    2 days ago

    If there’s any silver lining to this, perhaps we can get a renewed interest in efficient open-source software designed to work well on older hardware, and less e-waste.

    • lostbit@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 hours ago

      there are a shit ton alternatives. Too bad there are more average developers

    • XLE@piefed.social
      link
      fedilink
      English
      arrow-up
      12
      ·
      1 day ago

      “It sounds like you want low-end devices to be turned into thin clients for cloud-based operating systems. Do I have that right?”

    • DominusOfMegadeus@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      76
      ·
      edit-2
      2 days ago

      Morgan Freeman: ”They couldn’t”

      I wish we could, but it’s tough to maintain optimism in the face of these sociopathic corporations’ seemingly ever-growing power

      • cenzorrll@piefed.ca
        link
        fedilink
        English
        arrow-up
        30
        ·
        2 days ago

        Open source developers are just like you and me. They’ll get fed up with the bullshit and start developing things they need with the resources they have, just like they’ve always done.

        • VieuxQueb@lemmy.ca
          link
          fedilink
          English
          arrow-up
          6
          ·
          1 day ago

          It’s always been there, why is there so many great Open Source Software out there ? Even Linus started the linux kernel because he could not afford Unix.

    • Ugurcan@lemmy.world
      link
      fedilink
      English
      arrow-up
      40
      arrow-down
      7
      ·
      edit-2
      1 day ago

      If there’s any silver lining to this, fuck JavaScript, fuck JavaScript wrappers and fuck all people picked JavaScript for the programming language of anything cross-platform.

      It’s unbelievable I would need 6 gbs of RAM to say a simple “hello” to my friends. It used to take 300kb with IRC.

        • fernandofig@reddthat.com
          link
          fedilink
          English
          arrow-up
          15
          arrow-down
          1
          ·
          1 day ago

          Maybe not Javascript as a language, but the framework it requires to get applications written with it running, which is a lot. And in a roundabout way, it kinda has a little to do with the language itself, as the reason electron got so popular in the first place is because it catered to web developers who either couldn’t be bothered or couldn’t figure out proper desktop app devlopment, so they went with the easy short-term path. And Javascript kinda is an easy language to pick up and write simple.projects in - now, maintaining more complex applications with it is another story.,.

          • Nenutzerbame@feddit.org
            link
            fedilink
            English
            arrow-up
            7
            ·
            1 day ago

            It has less to do with JavaScript as most people tend to think IMO. JavaScript does not require Electron to exist, it’s rather the other way around. The fact that Electron ships a whole browser is the culprit and you could even argue that V8 is bloated as well, though I’m not sure how efficient it is built and how much size it takes. Browsers historically need to support so much legacy stuff which is another main factor for its size. I really hope for stuff like Tauri or Servo to gain traction.

            • [object Object]@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              edit-2
              20 hours ago

              you could even argue that V8 is bloated as well

              Not really, no. It’s very compact compared to Python, Java or most anything in the same league. A compiled program would be smaller, of course, and Lua is minuscule next to anything — but otherwise V8 is small and fast. Iirc Node.js takes something like 30 MB out of the box, including its modules and libraries.

      • [object Object]@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        22 hours ago

        Even Electron apps aren’t necessarily ram hoarders: Stretchly, which is a break reminder and thus needs to always run in the background, takes something like 20 or 40 MB of memory.

    • tekato@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      1 day ago

      Why would you do that when you can pull 50 JavaScript libraries and wrap it in Electron?

    • neon_nova@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      22
      arrow-down
      3
      ·
      2 days ago

      I’d love to see games do this because they are clearly not being optimized. Can’t wait to see that not happen.

      Good thing, I’m happy with retro games and the occasional indie.

      • mushroommunk@lemmy.today
        link
        fedilink
        English
        arrow-up
        9
        ·
        2 days ago

        3/5 of the way through 100% Final Fantasy II. Figure by the time I catch up to modern final fantasy either hardware will be better again or people will optimize again. Either way I got time

          • mushroommunk@lemmy.today
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 day ago

            I’m doing the pixel remasters which I think are based more on original JP. I know some purists look down on them but I think overall they’re a solid version.

            • neon_nova@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              1
              ·
              10 hours ago

              I haven’t played them myself, but I think they look cool.

              If someone wants to be a purist, let them get an original system and a crt. Otherwise, they can just shut up about.

    • warm@kbin.earth
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      Why spend time making better software when the end user can just buy better hardware!

      • floofloof@lemmy.ca
        link
        fedilink
        English
        arrow-up
        7
        ·
        1 day ago

        That’s been the thinking for the last couple of decades at least. But it can’t continue if people can’t afford new hardware.

        • warm@kbin.earth
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          Hardware doesnt need to get more powerful either. If we actually harnessed it, we have what we need already.

  • _cryptagion [he/him]@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    126
    ·
    2 days ago

    I really wish Electron wasn’t as popular as it is. It’s such a fucking memory hog. I mean, sure, I’ve got RAM to spare, but I shouldn’t need that much for a single app.

    • cmnybo@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      58
      ·
      2 days ago

      Yes, it runs a separate browser instance for each electron program. Many of the programs that use it could just be a PWA instead.

      • SaraTonin@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 hours ago

        Or, even better, let’s start developing for separate platforms again, and optimise software for the platform that’s going to be running it. Rather than just developing everything for Chrome.

      • lastweakness@lemmy.world
        link
        fedilink
        English
        arrow-up
        47
        ·
        2 days ago

        This is what bothers me so much… Browsers should be improving their PWA implementation (looking at you, Firefox) and electron apps should be PWAs more often. Another decent middle ground Is Tauri. SilverBullet and Yaak are both so much lighter and better than anything else on my system.

        • Pechente@feddit.org
          link
          fedilink
          English
          arrow-up
          38
          ·
          edit-2
          1 day ago

          Yeah but companies want full control and no ad blockers. That’s why they’re pushing shoddy Electron apps over their web experiences and PWAs.

      • tal@lemmy.today
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        1 day ago

        I wonder how much exact duplication each process has?

        https://www.kernel.org/doc/html/latest/admin-guide/mm/ksm.html

        Kernel Samepage Merging

        KSM is a memory-saving de-duplication feature, enabled by CONFIG_KSM=y, added to the Linux kernel in 2.6.32. See mm/ksm.c for its implementation, and http://lwn.net/Articles/306704/ and https://lwn.net/Articles/330589/

        KSM was originally developed for use with KVM (where it was known as Kernel Shared Memory), to fit more virtual machines into physical memory, by sharing the data common between them. But it can be useful to any application which generates many instances of the same data.

        The KSM daemon ksmd periodically scans those areas of user memory which have been registered with it, looking for pages of identical content which can be replaced by a single write-protected page (which is automatically copied if a process later wants to update its content). The amount of pages that KSM daemon scans in a single pass and the time between the passes are configured using sysfs interface

        KSM only operates on those areas of address space which an application has advised to be likely candidates for merging, by using the madvise(2) system call:

        int madvise(addr, length, MADV_MERGEABLE)
        

        One imagines that one could maybe make a library interposer to induce use of that.

      • plz1@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 day ago

        I tried the PWA route with Discord. It wouldn’t stay logged in, and acted generally janky. That said, I do PWA with any app that’s Electron, at least to try and avoid the RAM bloat.

    • modular950@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 days ago

      maybe a toggle to choose between “take some extra RAM, I’m feeling generous” and “fuck you, I’m computing shit over here” could be used to let the app know your current mood / needs …

      • TheBlackLounge@lemmy.zip
        link
        fedilink
        English
        arrow-up
        10
        ·
        edit-2
        1 day ago

        Memory hogging browsers usually do release memory when pressured. You can take it further by getting extensions that unload unused tabs.

        The problem is electron apps that load the whole browser core over and over.