• 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
  • UnderpantsWeevil@lemmy.world
    link
    fedilink
    English
    arrow-up
    23
    ·
    17 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
        10
        ·
        14 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
          1
          ·
          4 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
    13
    ·
    18 hours ago

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

  • BlueBockser@programming.dev
    link
    fedilink
    English
    arrow-up
    15
    ·
    20 hours 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
      2
      ·
      4 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
      ·
      9 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
    26
    ·
    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”

  • floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    117
    ·
    edit-2
    1 day 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
      ·
      9 hours ago

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

    • XLE@piefed.social
      link
      fedilink
      English
      arrow-up
      8
      ·
      22 hours 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
      58
      ·
      edit-2
      1 day 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

    • Ugurcan@lemmy.world
      link
      fedilink
      English
      arrow-up
      31
      ·
      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.

      • [object Object]@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        17 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
      8
      ·
      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
      16
      ·
      1 day 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.

  • Lightsong@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    18 hours ago

    I have couple of old 8 gb sticks from my old 960 GPU pc. Is there any way for me to stick it onto my new pc and have only certain app use it and nothing else?

    • towerful@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      17 hours ago

      Only for multi CPU mobos (and that would be pinning a thread to a CPU/core with NUMA enabled where a task accessed local ram instead of all system ram). Even then, I think all ram would run at the lowest frequency.
      I’ve never mixed CPUs and RAM speeds. I’ve only ever worked on systems with matching CPUs and ram modules.

      I think the hardware cost and software complexity to achieve this is beyond the cost of “more ram” or “faster storage (for faster swap)”

    • Logical@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      17 hours ago

      As to whether it’s possible to get certain apps use specific physical RAM sticks, I am not sure, but that seems unlikely and would probably require some very low level modifications to your operating system. But even before you get to that point you’d have to physically connect them to your new motherboard, which will only work if there are both free RAM slots on it, and your new motherboard has slots for the same generation of RAM that your old PC uses.

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    31
    ·
    1 day ago

    I wouldn’t mind them all using HTML for UI if they’d learn to share the same one, and only load it when they need to show me something.

    No, Razer, your “mouse driver” does not need to load Chrome at all times, when I’ll only ever look at it once.

    • A_norny_mousse@feddit.org
      link
      fedilink
      English
      arrow-up
      21
      ·
      1 day ago

      No, Razer, your “mouse driver” does not need to load Chrome at all times, when I’ll only ever look at it once.

      It’s funny; on Linux such devices work perfectly but many users complain that they “aren’t supported” because there’s no UI (that sits uselessly in your notification area and eats memory).

  • GnuLinuxDude@lemmy.ml
    link
    fedilink
    English
    arrow-up
    36
    ·
    1 day ago

    The proliferation of electron programs is what happens when you have a decade of annoying idiots saying “unused memory is wasted memory,” hand-in-hand with lazy developers or unscrupulous managers who are externalizing their development costs onto everybody else by writing inefficient programs that waste more and more of our compute and RAM, which necessitates the rest of us having to buy even better hardware to keep up.

    • CeeBee_Eh@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      24 hours ago

      annoying idiots saying “unused memory is wasted memory,”

      The original intent of this saying was different, but ya it’s been co-opted into something else

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

        So what was the original saying? As I see it, this phrase is wrong no matter how you look at it. Because all ram is used at all times, for example if you have 32GB of free ram, the kernel will use all of it as a page cache to speed up the file system. The more free ram you have the more files can be cached, avoiding access to the disk when you read them.

  • ExLisperA
    link
    fedilink
    English
    arrow-up
    22
    ·
    1 day ago

    It’s because people want cross-platform apps and web is the easiest way to do it. Yes, you have Flutter, KML or Qt but those are often hard to work with (looking at you, Flutter) or it’s difficult to find devs that can work with them. You choose web (JS/wasm) and you have plenty of devs familiar with the tools and you can support all the platform easily. I’m using Tauri for my personal projects because it’s fun and easy. I could use Qt but I don’t want to work with C++ or Python, at least not in my spare time. If anyone can recommend me a nice framework supporting Linux and Android and using modern language I might switch. I haven’t found one.

    • Croquette@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      21
      ·
      1 day ago

      It’s because there is no such thing as optimisation anymore. Websites are bloated to the gills with terrible animations and tracking scripts.

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

      It’s because people want cross-platform apps and web is the easiest way to do it.

      Just use the website then? There already is a suitable browser installed on every system. But no, must have apps. Makes it easier to stop people from having opinions about data collection and such. And the full browser stack needs to be fully reproduced each time. It gets really ridiculous when these apps sit idly in the notification area. Not to speak of security implications because electron apps and such usually don’t get timely updates.

      • ExLisperA
        link
        fedilink
        English
        arrow-up
        7
        ·
        1 day ago

        Just use the website then?

        It is a good solution for some apps but if you need to store data locally, use push notifications, run something in the background or access any native APIs you have to go with a native app.

        • A_norny_mousse@feddit.org
          link
          fedilink
          English
          arrow-up
          16
          ·
          1 day ago

          All major browsers can do this - with the exception of running something in the background I guess. But that is exactly the sort of usage scenario where an Electron app is the worst choice. Coding a separate utility with no GUI would be the sane thing to do here, not put whole browser stacks into memory.

          • ExLisperA
            link
            fedilink
            English
            arrow-up
            4
            ·
            1 day ago

            You’re actually right, by now browsers have APIs to do most of the things apps do. Technically you could convert most apps to websites. I guess as a user I just don’t want all my apps to open a tab in my browser. I want to move apps between virtual desktops and monitors independently and I don’t want my app’s window to be clattered by all the menus from my browser. On mobile I also prefer switching between apps than between different tabs. For me the best compromise is:

            • for system tools that don’t have to be cross platform and critical apps write native apps
            • for small/medium cross platform apps use webviews like Webview2 or Tauri
            • for big apps like Teams or Discord just use a website
            • A_norny_mousse@feddit.org
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 day ago

              I guess as a user I just don’t want all my apps to open a tab in my browser. I want to move apps between virtual desktops and monitors independently and I don’t want my app’s window to be clattered by all the menus from my browser.

              All this is already possible with most browsers.

              • ExLisperA
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 day ago

                Do you know any websites that integrate into Linux desktop and Android like native apps? I mean I can run it from cmd/icon, and it opens as new window without any decorations? I never saw it but if it’s works fine it’s an interesting option.

    • fuzzzerd@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      21 hours ago

      I have been really enjoying working with Avalonia, it is a .NET library that works across windows, Linux, and Mac and allows you to use C# for desktop app development on those environments. Its what MAUI should have been.

  • anon5621@lemmy.ml
    link
    fedilink
    English
    arrow-up
    50
    ·
    1 day ago

    Miss times when 4 gigs of ram was more than enough for browsing and playing game at the sane time

  • Jo Miran@lemmy.ml
    link
    fedilink
    English
    arrow-up
    34
    ·
    1 day ago

    I normally reply with a tux penguin but, is it really a Windows problem if the it’s the apps that aren’t optimized for shit?

  • TipsyMcGee@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 day ago

    I have an M1 Macbook Air with 8 gb of ram, it performs great for everything I want to do with it – except for the fact that a ”few” active browser tabs are enough to bring the memory pressure to the pain point. Editing HD video? Reasonably snappy for an old, base spec laptop. Browsing a news site? Potato.