• MyFairJulia@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    If a fancy text editor starts eating hundreds of megabytes RAM without having loaded a file, i think we did something wrong.

    Though Visual Studio can do that too without Electron.

    • rambaroo@lemmy.world
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      VS Code is low than a text editor these days. It’s frequently used as a full fledged IDE now.

    • nitefox@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      9
      ·
      edit-2
      1 year ago

      Have you ever had, in good conscience, a problem caused by an electron app using too much resources?

      Because we are, again, in 2023: the standard is 16GB of RAM, with CPUs much more powerful and with a lot of more cores and thread per cores than the past. Complaining about a PC resources being used when these doesn’t actually create a problem is like complaining about GUI being bloat; or JS/CSS being bloat.

      This of course doesn’t mean electron is perfect, cause it clearly isn’t, but it’s a good enough solution that can be iterated upon (see Tauri) and improved (the DX on electron is shit). Nor that every app should be in electron.

      • railsdev@programming.dev
        link
        fedilink
        arrow-up
        6
        arrow-down
        4
        ·
        edit-2
        1 year ago

        Uh, have you not? Ever run Slack on macOS? My work computer is a completely spec’d out MacBook Pro and Slack still runs slow as hell on it. I know VS Code isn’t Electron but it’s so bloated that I don’t have the patience to let it finish starting up on my old M1 MacBook Air; I’d rather use a native text editor than deal with the trash.

        • rambaroo@lemmy.world
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          1 year ago

          I run slack every day. It’s a bit slow sometimes but it doesn’t cause any real issues. Still better than teams. I’d rather have it as an electron app than as a web app.

          VS Code is electron but it’s not meant to be a lightweight text editor like notepad. Must people are using it as an IDE at this point. Can you explain what’s “bloated” about it?

          These apps probably wouldn’t exist at all if it wasn’t for electron so I’m grateful for it. The purists can pound sand like always.

        • Starman@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          on the vscode comment, that’s just plain wrong. here’s vscode opening up on a base model m1 air (it’s a test project but my works codebase also opens just as fast)

          https://imgur.com/a/q6iw2Bk

          on a 8gb ram m1 air, with 3/4 chrome windows, slack, postman and two node processes running. as for slack, i agree its not as snappy as say, native macos apps but it doesn’t really bother me a lot.

          • railsdev@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            I just uninstalled VS Code from my MacBook Air, it was never able to open without crashing. I don’t need it in my personal life so no loss there.

      • Neko the gamer@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        not everyone can afford 16 GB of RAM though, if you want to make your software accessible write it to work on as many systems as possible with few or no slowdowns or hiccups. Electron is a shitty bandaid because you’re a lazy ass that doesn’t want to write more efficient software for desktop and instead you keep making web applications running natively, which is and will always be wrong

      • MyFairJulia@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        3
        ·
        1 year ago

        It didn’t cause problems since i have a lot of RAM but i still hold the opinion that just because we have a lot of RAM, we don’t need to waste it. We could keep being efficient about it and get even more out of the same amount of RAM, you know. That said, if Tauri lowers the RAM usage of the same applications i’m looking forward to it.

        • nitefox@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          3
          ·
          1 year ago

          Your kernel allocates all the ram anyway lol, it literally changes nothing to you

            • nitefox@lemmy.world
              link
              fedilink
              arrow-up
              3
              arrow-down
              2
              ·
              edit-2
              1 year ago

              that would change nothing to you. Unless they are seriously consuming a lot of memory and filling up processes while not needed, then it’s fine. Otherwise it means the app was developed by a bunch of monkey, but that could happen - maybe even more likely - with native software as well.

              Tldr: to the end user it changes literally nothing nowadays, to the companies and the devs it changes quite a lot. And to some degree, end-users won’t have to deal with shitty ugly apps (unless the designers are jerks, in which case you are probably working in the same company as me)