• Digit@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    LOL.

    Enjoyable little irony personally for me, as when I asked an LLM to churn out a readme for my fin project ( posted on lemmy here ), it proposed one of fin’s advantages that could push fin into the notable category: “Performance niche - might be faster than Electron-based editors for simple tasks”. Maybe I should change that to “save a fortune on RAM compared to Electron-based editors”.

  • favoredponcho@lemmy.zip
    link
    fedilink
    arrow-up
    2
    arrow-down
    5
    ·
    5 hours ago

    Electron apps existed and were a standard years before this current memory shortage. There is no connection there.

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      3 hours ago

      I think there is. I would say the connection is not that electron didn’t exist before, but that now that ram prices are high, an increase in the number of electron apps becomes a problem because of the ram usage. Not that the usage wasn’t a problem before, but that more people are using even more electron apps now than ever, hence their “industry standard” comment.

      • favoredponcho@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        2 hours ago

        But it’s not like electron apps became an industry standard now that there is a memory shortage. I also don’t think there is an increase in electron apps now that there is a memory shortage. These things are not connected in the way the meme suggests. Is it more problematic since memory is more expensive? Sure, maybe for some people running old hardware that want to upgrade. Otherwise, a lot of people already have plenty of memory to run these apps.

        • bitcrafter@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2 hours ago

          I do not see the causal connection you are seeing in the meme at all. I just see it pointing out that now is a particularly bad time for Electron apps to be so dominant, which is true.

        • Jarix@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 hours ago

          You aren’t reading the meme correctly. It’s not a connection, is a coincidence.

          It just says a thing ,that uses 500 mb of ram per instance, had become an industry standard. That’s the happy face. Hey I created a thing for myself but it got used so much it became a standard.

          The second face is like oh shit, I did not make this efficient with its memory usage but now it’s standard and ram prices are terrible so the thing that was sparking joy, is now kind of a problem because its flaws now actually matter

  • 1984@lemmy.today
    link
    fedilink
    arrow-up
    12
    arrow-down
    2
    ·
    16 hours ago

    Linux wins again. Still runs on same hardware as 10 years ago. :) No forced updates by any big corp.

    • gerryflap@feddit.nl
      link
      fedilink
      arrow-up
      5
      ·
      12 hours ago

      In terms of performance yeah. Though not every old device keeps working. You’re still vulnerable to driver support for newer kernels. My old Thinkpad no longer functions properly because the Nvidia drivers are not compatible with newer kernels. I can either have an unsafe machine that runs fine or an up-to-date machine that can barely open a web browser.

        • Digit@lemmy.wtf
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          I struck lucky. Never had any issues with nvidia on linux in all my >2 decades using linux.

          Still prefer AMD though. Straight through.

          • 1984@lemmy.today
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            2 hours ago

            Yeah I got amd graphics 3 years ago and the same day, all those weird issues with graphics artifacts or suspend bugs just went away.

            If you didnt have any of those, you are Indeed lucky. I had many of them through the years.

  • tangonov@lemmy.ca
    link
    fedilink
    arrow-up
    17
    ·
    21 hours ago

    Meanwhile my Linux runtime still boots for 1G and Emacs is looking pretty good right now lol

  • boonhet@sopuli.xyz
    link
    fedilink
    arrow-up
    68
    ·
    1 day ago

    Atom was kinda revolutionary in its plugin support and everything IIRC.

    Well, now that Atom has been replaced by VSCode, which is also an electron app, the original Atom devs, or at least some of them, are creating Zed. Zed’s written in Rust and uses a lot less memory.

    Of course it’s not yet as mature and they’re trying to earn money by integrating AI and selling that as a service. BUT the AI is voluntary and even if you do want to use it, you don’t have to pay to use their AI (which comes with a free tier if you DO want to use it), you can literally run your own model in ollama.

    It’s not perfect, but I love how little RAM it uses compared to VSCode and (shudders) the Jetbrains suite (which I normally love, but hate the RAM and CPU usage, it can drive my computer pretty slow)

    • PoliteDudeInTheMood@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      That explains alot. I have both PyCharm and RustRover open as I steal convert stuff from a project I found. Anywho I was typing in discord and I was typing faster than it rendered and I thought that was strange

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

      still have the patch they sent for people who published packages. I made a theme no one but me used but still! Pre microsoft github was cool

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

        Got that patch still in it’s brown envelope somewhere in a drawer, for doing a syntax highlighting plugin.

        They were indeed cool

    • NickeeCoco@piefed.social
      link
      fedilink
      English
      arrow-up
      34
      arrow-down
      1
      ·
      1 day ago

      It has become my favorite editor, even though I don’t need or want the AI stuff. They do something that I do quite appreciate, that I wish other apps (looking at you, Firefox) would do:

      sroAL9YDNF05i6p.png

      In the AI section of the settings, the first thing is a toggle that turns off all AI features.

      • x00z@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        2
        ·
        1 day ago

        It shouldn’t have AI features by default though. Just make that functionality a plugin that can be downloaded separately.

    • foo@feddit.uk
      link
      fedilink
      arrow-up
      11
      ·
      1 day ago

      They also developed their own Rust UI library and open-sourced it.

      • The Quuuuuill@slrpnk.net
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 day ago

        it did, but this is about electron, which isn’t relevant to sublime. sublime’s plugins mechanism is a little different from atom, which is much more like emacs

  • Samskara@sh.itjust.works
    link
    fedilink
    arrow-up
    164
    arrow-down
    2
    ·
    1 day ago

    Spotify using several processes and GB of memory just play some music and browse a library is an abomination. WinAMP did most of that 20 years ago while using a fraction of the resources.

    Discord similarly is an affront.

    • kirk781@discuss.tchncs.de
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      16 hours ago

      If you have Spotify Premium, try a third party client. Even GUI clients like Spotify-qt are memory light [though not at feature parity] whilst terminal clients like ncspot, spotify-player take 1/10th the memory. The latter even supports Spotify connect.

    • Cevilia (she/they/…)@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      6 hours ago

      Correction, Winamp still does this today while using a fraction of the resources.

      Though if you’re on Windows I’d recommend Xmplay instead, it plays basically everything.

      I’m on Linux and I use VLC.

    • 14th_cylon@lemmy.zip
      link
      fedilink
      arrow-up
      67
      ·
      edit-2
      1 day ago

      don’t worry, this will all be solved now with incompetent vibe-coders, just give it a while

      or you will look back to this with a nostalgic tear in the eye. one of these.

    • Ace@feddit.uk
      link
      fedilink
      English
      arrow-up
      29
      arrow-down
      1
      ·
      1 day ago

      I use discord.com/app for exactly this reason. Its footprint is lower and the experience is almost exactly the same. And I can block things I don’t like using ublock/other extensions, like animated reactions and those crazy new premium video profiles with explosions and confetti etc

      • gwl@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        6 hours ago

        I can recommend Vencord or Vesktop instead, it’s a modified client with stuff like FakeNitro and Adblocker as plugins

      • SkyeStarfall@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        11
        ·
        1 day ago

        God I wish discord just stuck to being a straightforward app without any of the fancy fluff that’s just not needed. I hate the super-flashy things that obscure visibility and divert your attention so much

        But it’s what they sell to people, and a minority seems to really like so

        • hornywarthogfart@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 hours ago

          They had no viable business plan with which to pay back investors so this was inevitable. It sucks though…not a day goes by where I don’t grumble about what an insult Discord is to their users.

      • dejected_warp_core@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 day ago

        Same here. At first, I thought I was going to get a better Discord experience with the dedicated ‘app’. Nope. Another web app crammed into Electron, multiplying the overall browser footprint on my system. It now happily lives on in a normal browser tab where my ad blockers and user-scripts claw back local control of things.

    • NotSteve_@piefed.ca
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      3
      ·
      1 day ago

      For Spotify it sort of makes sense though, right? It buffers a few songs ahead of time so using any free RAM seems valid

      • DaGeek247@fedia.io
        link
        fedilink
        arrow-up
        37
        ·
        1 day ago

        The average spotify 3:40 song is going to be about 4MB. This only changes to triple (10MB at the same length for premium and high quality) that size when you pay for it.

        If Spotify is using more than 50MB on the audio cache, they absolutely deserve to get ragged on for it.

    • ExLisper@lemmy.curiana.net
      link
      fedilink
      arrow-up
      6
      arrow-down
      11
      ·
      1 day ago

      Really? I have it running right now with 0% CPU usage and around 100MB of memory. Something’s wrong with your setup.

  • Ex Nummis@lemmy.world
    link
    fedilink
    arrow-up
    142
    ·
    2 days ago

    If there’s any upside to the entire situation, it’s that perhaps, maybe, developers will again start paying more attention to optimization instead of just throwing more powerful hardware at it.

    Some of the greatest games ever developed for consoles were great because the developers had to get extremely creative with the limited resources at their disposal. This led to some incredibly optimized games that could do a whole lot with those very limited resources.

    • Digit@lemmy.wtf
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      If there’s any upside to the entire situation, it’s that perhaps, maybe, developers will again start paying more attention to optimization instead of just throwing more powerful hardware at it.

      Amen.

      Long time irked that so many developers fail with the mathematics of the situation.

      If hardware multiplies its resources 1000x, that does not mean you can make your program use 1000x resources, along with thousands of other developers failing at that mathematics too, making bloat radically outpace Moore’s Law.

      If hardware multiplies its resources 1000x, that should mean that developers continue to keep their software tight, lean, and fast, and that should mean users have 1000x more resources available to do more with.

      *Dreamer*

    • hornywarthogfart@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 hours ago

      I think pretty much every dev understands the issue but they are limited in what they can do about it. Quitting a job because they won’t let you optimize is noble but unrealistic for the vast majority of devs.

      I would love for optimizations to start being prioritized. More specifically, I would love to see vendors place limits on memory use in apps. For example, Steam could reject any game over 50gb. I do not believe for a moment that any game we currently have needs more than 50gb except maybe an mmo with 20 years of content. Or Microsoft could reject apps that use more than X ram. They won’t ever do that but without an outright rejection, this won’t be fixed.

    • Jesus_666@lemmy.world
      link
      fedilink
      arrow-up
      81
      ·
      1 day ago

      Best I can do is mandatory Lumen and Nanite. You can get almost-stable 60 fps on a 5090 with DLSS Performance and 3x frame gen, which should be optimized enough for anyone.

      My game will sell for 80 bucks, 150 if you want the edition with all the preorder-exclusive content.

    • BootLoop@sh.itjust.works
      link
      fedilink
      arrow-up
      40
      ·
      1 day ago

      You don’t even need to go that far back. It blows my mind that the 360 and PS3 have 512mb of RAM. Halo 4, GTA 5, and The Last of Us did some impressive graphics work with 512mb.

      • dogs0n@sh.itjust.works
        link
        fedilink
        arrow-up
        25
        ·
        edit-2
        1 day ago

        Oh wow my mind is blown. Even more so that it’s 256mb of DRAM and 256mb of VRAM separately.

        We have really gone down hill and fast ;(

        In my brain memory I find it hard to believe all the textures loaded at one time could ever be so small. Im amazed.

      • I Cast Fist@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        23 hours ago

        tbf, the PC version of console games of the time ran like utter shit on computers with less than 2GB RAM and graphics cards worse than a Geforce 9800. A lot of people were still on WinXP, which was bloated compared to WinME-2000, but by 2006 it was fine.

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      24
      ·
      2 days ago

      I always care about how much memory I end up using.
      Problem is, most places won’t pay for caring about that. Those that would, are doing so because they are using the product on their own systems instead of some customer’s systems.

      • ZILtoid1991@lemmy.worldOP
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        I think we will first see a batch of alternative apps, which either will get shut down by manufacturers etc., or get tolerated as an alternative.

        • ulterno@programming.dev
          link
          fedilink
          English
          arrow-up
          10
          ·
          1 day ago

          I’m not sure I know many Electron apps that are worth running.
          There is WhatsApp, but I just run the browser version. For Matrix, there’s NeoChat, which uses QML and is definitely better than Electron.

            • ulterno@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 day ago

              android-studio : I guess that explains why it ran so badly back when I had to use it for work.
              jdk wouldn’t be an Electron app, right?

              discord is the only 1 of those that I used in any meaningful sense before and I already stopped using it for reasons other than Electron. So, I guess it’s just a personal thing that I don’t tend to require stuff that is made in Electron.

              • BootLoop@sh.itjust.works
                link
                fedilink
                arrow-up
                2
                ·
                1 day ago

                I believe Android Studio is built on top of IntelliJ IDE which uses Java, so no Electron. That being said, Java applications are generally RAM heavy as well and Android Studio was always a pig on resources.

                Visual Studio Code (not Visual Studio!) is Electron based but I’ve always had good performance with it.

                • ulterno@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  24 hours ago

                  Visual Studio Code

                  Yeah, that’s one that I can’t talk badly about.
                  While I have used MS Visual Studio and know how slow it was, I tried VS Codium once or twice and it worked pretty smoothly. Someone probably put quite a bit of effort into making it so.

                  Apart from Android Studio, which ended up not even starting up properly on the work computer, Gradle itself also takes quite a bit of time and resources. I was using the NDK with a C++ project and it took way longer to setup than any BSP, despite only being able to compile for a single version of Android.

    • masterspace@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 day ago

      The upside to the situation is that electron has been a more successful cross platform development framework then literally anything that came before it, from Xamarin to Java. And it’s entirely based on open source software, and open web standards.

  • anamethatisnt@sopuli.xyz
    link
    fedilink
    arrow-up
    74
    arrow-down
    1
    ·
    1 day ago

    Lutris is impressive when it comes to game launchers and RAM efficiency, especially when compared to the ones using Electron.

  • who@feddit.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    23 hours ago

    Scintilla my beloved

    (This is the text editor component in Geany and Notepad++)

    • Potatar@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      9 hours ago

      I’m sorry my comment is not deep enough to be his irrelevant to the topic but I gotta ask: Do you know a text editor which is just notepad but remembers the last session when you close it? I just need a scratchpad, even notepad++ is too fancy for my needs but that’s what I was using on windows. Now I use kate but it feels like I’m killing a mosquito with a rocket launcher when a book cover would do.

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

        Unless you want to get fancy for the sake of not being fancy, you will likely be best just sticking with Kate.

        Basic editing can be done in vi or nano or even piped to a file via she’ll. I don’t think any of those are necessarily better or worse than using Kate. Vi and nano would probably be faster but you would need to be in a terminal already.

        That said, I am curious as well if anyone has a better answer.

      • who@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        On KDE Plasma, I would stick with Kate and hide/disable some the fancier interface features. It might seem like overkill, but since it’s built from common components that other KDE apps use using anyway, the additional resource consumption will probably be minimal. And it’s quick.

        On a Gtk desktop, you might try Mousepad. This is what I used before moving away from Xfce.

    • bluGill@fedia.io
      link
      fedilink
      arrow-up
      47
      arrow-down
      1
      ·
      1 day ago

      until curl rewrites in electon and you don’t have enough ram to run it anymore

    • alk@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      18
      ·
      1 day ago

      back in the day people would download more ram and put it on giant tape-based backup systems. Big companies started downloading massive amounts of high quality ram this way. This created a ram shortage, and companies like corsair are now using their massive reserves of downloaded ram and filling empty ram sticks with them and making lots of money. That’s why ram is so expensive today. Any ram you can download today is low quality ram, and the only high quality ram can be had on physical sticks, which were filled by the companies with ram reserves. 1969 was the peak of the ram harvesting, so you’ll probably get some really great ram if it came from that year.

    • hedge_lord@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      My gripe with Kate is that whenever I open a file and get an LSP error it displays a pulsing warning notification in the lower left of the window. This might be okay except that I cannot read things if something is moving in my peripheral vision and there is also apparently no way to suppress this pulsing warning notification other than to disable the LSP features entirely. I want to use kwrite because at that point I might as well, but there is a long-standing bug in plasma that causes Kate to be defaulted to over kwrite for some file types despite my preferences!

      I still prefer this to vscode, but I just need to vent a bit

    • MeThisGuy@feddit.nl
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

      i doo doo love it too.
      does it have syntax support for Gcode yet? I do CnC (not the kinky kind) and I love to see shit in color. there’s only a few specialized editors that I have come across that do this reasonably well…

      • Buddahriffic@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Iirc you can create custom syntax highlighting formats for notepad++. So if it’s not there by default, someone else might have made a file for it, or you can start making one yourself, as the format was easy to understand. It’s been like a decade since I’ve used it, but it should be somewhere in the menus.

  • FishFace@piefed.social
    link
    fedilink
    English
    arrow-up
    35
    arrow-down
    5
    ·
    1 day ago

    It’s kind of an abomination when VsCode, supposed to be a lighter IDE, runs like dogshit compared to JetBrains, a fuckin’ Java based IDE. Since when was Java light on RAM?

    (Caveat: I haven’t directly compared their memory usage, my experience is in very difference codebases for each)

    • masterspace@lemmy.ca
      link
      fedilink
      English
      arrow-up
      24
      arrow-down
      5
      ·
      1 day ago

      Lmao this is quite frankly, horseshit, upvoted by people who have never used an IDE.

      VScode is lightweight, snappy, and fast to open. VSCodium gives you all of that without any of the Microsoft. And even runs in a web browser.

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

        It’s not “horseshit” - I gave you a caveat precisely so that you can understand the limitations of my comparison, and so that you don’t need to be so antagonistic.

        lightweight

        I launched VSCode fresh this morning. Just now, 4 hours later, I closed it and watched my system memory usage: 1.3GB. I am doing remote development, so there’s a whole server process as well which is chomping a few GB. My old laptop repeatedly ground to a halt until the OOM killer woke up/I rebooted as its measly 32GB of RAM couldn’t cope with two VSCode sessions (plus other normal apps) after a while.

        • Ethan@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 hours ago

          In my experience VSCode on Windows runs like dogshit. I blame Windows for that. VSCode on Linux runs like a dream. I can have four different sessions open and it still runs great (I haven’t tested more than that because I’ve never had a reason to).

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

            I can confirm this has been my experience as well.

            Anectdotally, the only people I know who say vscode is lightweight and snappy are devs that have have primarily used it, visual studio, jet brains, or some other common and bloated application.

        • masterspace@lemmy.ca
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          4
          ·
          1 day ago

          Drawing strong conclusions like ‘VSCode is an abomination that runs like dogshit and is worse than an Oracle product’, from an admittedly flawed comparison that does not demonstrate that, is inviting some antagonism.

          • FishFace@piefed.social
            link
            fedilink
            English
            arrow-up
            17
            arrow-down
            2
            ·
            1 day ago

            Electron is the abomination, not VSCode, and JetBrains IDEs are developed by… JetBrains, not Oracle.

      • brucethemoose@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 day ago

        +1

        For stuff like editing massive files or huge folders, the least stuttery, fastest IDE for me is… VScode. Jetbrains (last I tried it) is awful.

        Code may not use 1MB of RAM or idle dead asleep, but it utilizes the CPU/GPU efficiently.

        Now, extensions are the caveat, like any app that supports extensions. Those can bog it down real quick.

      • dogs0n@sh.itjust.works
        link
        fedilink
        arrow-up
        5
        arrow-down
        3
        ·
        1 day ago

        It’s not really an IDE and it’s not lightweight either.

        It’s not snappy. Sometimes just moving up a couple lines fast causes my caret to lag, which is not pleasant.

        That might have more to do with when you have lots of plugins for LSPs, etc, but who uses vscode without any plugins?

        • masterspace@lemmy.ca
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          2
          ·
          edit-2
          1 day ago

          Claiming that VSCode is not an IDE is just pedantic.

          It is literally just a modular IDE that lets you pick and choose which piece you want rather then being like Visual Studio or XCode that is tailored for a single language / development flow.

          Hell you still have to download core parts of XCode / VS after you download and install them like the development frameworks for your targets, does that mean that they’re not actually IDEs?

          • dogs0n@sh.itjust.works
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            I will concede on the “not really an IDE” part. You’re right you can set it up to be like one.

            I say it’s not mostly because it isn’t marketed as one. It’s marketed as just a source code (text) editor.

    • Xylight@lemdro.id
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 day ago

      It’s not lightweight in terms of memory but it’s definitely not slower than jetbrains. I use both frequently, but prefer vs code because it feels much snappier to use.

  • BigDanishGuy@sh.itjust.works
    link
    fedilink
    arrow-up
    14
    ·
    1 day ago

    And here I was thinking this was about emacs and lisp. Yougster complaining about not knowing how to quit Vi smh they have never experienced the horrors of emacs