• immutable@lemm.ee
    link
    fedilink
    arrow-up
    238
    arrow-down
    28
    ·
    10 months ago

    People that are upset about electron should consider it’s not:

    Electron App vs Wonderful Fully Supported Native Linux Application

    The reality is that your choice is largely:

    Electron App vs No App (maybe running their windows app in wine if you can get that to work)

    It’s not like companies are going to go build a native linux app but electron got in their way. It was always electron or no support.

    So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

    • Shatur@lemmy.ml
      link
      fedilink
      arrow-up
      39
      ·
      10 months ago

      I think proprietary Electron apps better run in browser anyway because of trackers that you can disable via extensions.

    • mustardman@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      41
      arrow-down
      5
      ·
      10 months ago

      So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something. There’s no trophy you get at the end of your life for “most cumulative ram left idle”

      This is a damn homicide lmao

      • KSP Atlas@sopuli.xyz
        link
        fedilink
        arrow-up
        15
        ·
        10 months ago

        Running electron apps becomes a genuine ram issue when running heavy ram workloads like running heavily modded games

      • samson@aussie.zone
        link
        fedilink
        arrow-up
        2
        arrow-down
        4
        ·
        10 months ago

        And very true. 32gb is 99 dollars Australia pesos, 16 is about 70 percent that. What a waste to let it sit around.

          • samson@aussie.zone
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            10 months ago

            I’ve never had a problem with the speed of an electron app be it steam or Spotify.

    • crispy_kilt@feddit.de
      link
      fedilink
      arrow-up
      30
      ·
      10 months ago

      There’s no trophy you get at the end of your life for “most cumulative ram left idle”

      Some people like to use more than 1 app you know.

      Also, RAM is never ever idle. It is used as filesystem cache when not used by programs thus speeding up read accesses significantly.

        • crispy_kilt@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          Alright, let’s nitpick! No, it is never ever idle, every few cycles is a refresh cycle, which is work.

          • nicoweio@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            10 months ago

            It’s great that you mention this, but this is a different layer of abstraction than what we were previously talking about.

      • EddoWagt@feddit.nl
        link
        fedilink
        arrow-up
        5
        arrow-down
        4
        ·
        10 months ago

        Honestly even with more than 1 application open it shouldn’t be an issue. Maybe with a really old computer, but anything modern really should handle an electron app just fine

      • crispy_kilt@feddit.de
        link
        fedilink
        arrow-up
        9
        ·
        edit-2
        10 months ago

        I’d prefer that. One firefox instance can easily run 10 big fat websites while using like 6GB of RAM. 10 electron apps on the other hand? 32GB RAM won’t be enough.

      • MyFairJulia@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        10 months ago

        Electron IS a browser. It’s a Chromium browser to be exact with all the Chromium UI elements except the very bare minimum removed.

        So the only difference that remains is running a website in a tab or in a fancy window.

        • rumschlumpel@feddit.de
          link
          fedilink
          Deutsch
          arrow-up
          4
          ·
          edit-2
          10 months ago

          I know that Electron is a browser. But the issue is that it’s a different browser, and AFAIK Electron applications don’t share libraries etc. like Chrome/Firefox tabs would, which makes Electron apps even more inefficient than web apps.

    • Pechente@feddit.de
      link
      fedilink
      English
      arrow-up
      23
      ·
      10 months ago

      Well, there’s also Tauri which requires slightly more testing since you actually use the device’s built-in browser, so there might be differences. The upside is a much smaller bundle size, quick start-up times and often less RAM usage than with Electron.

    • nitefox@lemmy.world
      link
      fedilink
      arrow-up
      29
      arrow-down
      13
      ·
      10 months ago

      lmao, yea. Besides, it’s not like electron is that bad either. We aren’t in 1990, why would you care if electron uses a gb of ram or ten processes or this or that… they think that native means good, but more often than not native means a shitty ugly unusable application that will work (not really) just on windows

      • MyFairJulia@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        10 months 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
          ·
          10 months 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
          7
          ·
          edit-2
          10 months 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.

            • rambaroo@lemmy.world
              link
              fedilink
              arrow-up
              4
              arrow-down
              1
              ·
              10 months 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
              ·
              10 months 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.

            • nitefox@lemmy.world
              link
              fedilink
              arrow-up
              4
              arrow-down
              2
              ·
              10 months ago

              I use both daily, never noticed a problem. MacBook Pro M1 with 8GB ram. Eight!

          • MyFairJulia@lemmy.world
            link
            fedilink
            arrow-up
            3
            arrow-down
            3
            ·
            10 months 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
              2
              ·
              10 months 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
                  10 months 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)

    • ky56@aussie.zone
      link
      fedilink
      arrow-up
      16
      arrow-down
      2
      ·
      10 months ago

      What about laptop battery life? More CPU usage = less battery life. WHY DOES NO ONE GIVE A FUCK ABOUT BATTERY LIFE???

      The single most reason I switched from Spotify to Apple Music is that I was sick of seeing the Spotify macOS app at the top of the “High Battery Usage” page on Activity Monitor. I also actually noticed less battery life. Fuck Electron. I avoid apps made in it like the plague.

    • TheOPtimal@lemmy.blahaj.zone
      link
      fedilink
      ქართული
      arrow-up
      7
      arrow-down
      1
      ·
      10 months ago

      Even native apps usually use cross-platform toolkits which usually have very good Linux support. E.g. Qt, .NET, WxWidgets, GTK (maybe)

    • RaivoKulli@sopuli.xyz
      link
      fedilink
      arrow-up
      8
      arrow-down
      11
      ·
      10 months ago

      So if you like the app, remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something.

      It could be doing so much more if you hadn’t gone with Electron you fuck

        • Buddahriffic@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          10 months ago

          From the comments that have mentioned the efficient programming languages, my guess is there’s a bunch of devs in here that never got past the “c++ is hard!” stage.

          The first time I saw an office app launch in my browser, I was both impressed that they got excel to work in a browser and appalled that they wanted excel to work in a browser at the same time. And I’ll admit that it does perform well considering it’s running in a fucking browser, but I’ll still launch the native app any time I actually want to work with a file that’s opened in the browser.

            • Buddahriffic@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              10 months ago

              Keep at it, eventually things will click and you might find yourself appreciating the compiler errors and type strictness. Perhaps you’ll even spend time getting rid of warnings even though it will let you run without doing that, because they indicate edge cases that might break your program in difficult to debug ways.

                • Buddahriffic@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  10 months ago

                  Yeah, time is always the hard part.

                  It’s all kinda the same btw. Like you’ll have different sytax and styles, but most languages have variables, loops, conditionals, functions, objects, inheritance, APIs to access OS functions like files and network, etc.

    • uis@lemmy.world
      link
      fedilink
      arrow-up
      12
      arrow-down
      20
      ·
      edit-2
      10 months ago

      remember that the ram and the cpu you paid for doesn’t provide value unless it’s doing something.

      Remember that house you paid for doesn’t provide value unless you fill it with elephant shit.

      That’s consumerism. Another equally shitty statement: your liver doesn’t provide value unless it dies from all toxins in the world.

      • Cralder@feddit.nu
        link
        fedilink
        arrow-up
        26
        arrow-down
        5
        ·
        10 months ago

        You know that “no app” and “not using the app” is the exact same user experience right? So you can just not use the app and stop complaining about it existing.

      • bitsplease@lemmy.ml
        link
        fedilink
        arrow-up
        19
        arrow-down
        1
        ·
        10 months ago

        Idk who you think you’re speaking for, but I don’t think it’s as many people as you think lol.

        Besides an electron app you don’t use and no app are literally the same thing, so why choose nothing?

                • monk@lemmy.unboiled.info
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  10 months ago

                  The same reason why webapps are a bad idea. We’ve built monstrous browser engines to do fancy stuff to pages in a bonkers language in a sandbox, and the resulting abomination is neither pages nor apps. And now we’re like: we have so much expertise in shuffling page parts around to look like they’re apps, let’s build “real” apps out of them. It’s like rejecting headphones and towing a car with broken windows around with you just in case you’ll wanna listen to music: it technically works, but makes negative sense.

  • SuperSpruce@lemmy.ml
    link
    fedilink
    arrow-up
    59
    arrow-down
    6
    ·
    10 months ago

    This might be a hot take but I’ve noticed some complicated electron apps are faster than some simple native apps. The striking example to me is how Vs code runs better and has a lower startup time than the stock Windows 11 File manager.

    A well written electron app is better than a poorly written native app sometimes.

    • Knusper@feddit.de
      link
      fedilink
      arrow-up
      53
      arrow-down
      2
      ·
      10 months ago

      I mean, sure, but:

      1. The Windows File Manager is really just awful in that regard. You can get alternative file managers that start up in a fraction of that time, with more features.

      2. Startup time isn’t really the worst of it. RAM usage is worse. And if a program uses lots of RAM, it will still appear quite performant. But it makes everything else on your system slower.

        • SuperSpruce@lemmy.ml
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          10 months ago

          As long as the program is not bloated, JavaScript can be fast. Unfortunately that’s not the case with most programs.

      • vivadanang@lemm.ee
        link
        fedilink
        arrow-up
        8
        arrow-down
        1
        ·
        10 months ago

        file manager opens instantly.

        genuinely curious, I have a shitton of networked drives and at least 7 volumes on this locally, file manager has always popped open ready to go at a click or hotkey.

        • Knusper@feddit.de
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          10 months ago

          I don’t know, man. I haven’t done a scientific study on it either.

          It was one of the reasons why I switched from Windows to Linux. On the same HDD, with same data, Windows file manager took half a minute to open, when the various Linux file managers were all instant.
          I did ‘refresh’ Windows beforehand, too, which Microsoft claims is like reinstalling. Couldn’t easily do a proper reinstall, because of OEM license horseshit.

          These days, I only really see Windows when colleagues are using it. That’s all within my company’s network drive infrastructure. Maybe it is being slowed down by that.

          That’s still proof enough for me, though, that Windows file manager is shittily coded. A proper architecture would have the UI in a separate thread from all the file operations and it should never be the case that a slow hard drive or network drive is causing the UI to appear later.

        • SuperSpruce@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          10 months ago

          Are you using the Windows 10 file manager? That one is so much faster than the new Windows 11 one.

      • SuperSpruce@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        Can you recommend some third party windows file managers?

        1. Stock file manager has an okay UI (tabs are super nice) but is kinda slow, especially on battery.

        2. I tried explorer++ but its UI is clunky and it’s only slightly faster than the stock file manager.

        • Knusper@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          10 months ago

          Well, the file manager I use on Linux, Dolphin, has an experimental Windows version.
          When I learned of that a few years ago, I gave it a shot on Windows and I prefered it to File Explorer, but it’s not like I compared it to other offerings or anything like that.

          I do think that’s the best file manager on Linux and most features were working on Windows back then, so it’s not unlikely either, that it is by far the best offering for Windows. But it could also be a buggy mess. I wouldn’t know…

        • legendarydromedary@feddit.nl
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          I’ve been using Double Commander for years and I love it, but the UI takes some getting used to (and the default settings aren’t great).

    • MyFairJulia@lemmy.world
      link
      fedilink
      arrow-up
      27
      ·
      10 months ago

      That’s not a compliment to Electron, that’s a heck of an indictment to Microsoft messing up the File Manager.

        • PixxlMan@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          10 months ago

          It’s legitimately hilarious to me when the creator of the OS ships web-based UI on their own operating system… Like teams on windows. Not only is it a terrible experience, slow, buggy and sluggish - it’s obviously not native - on Microsoft’s own OS! Where they’ve made all the UI APIs!

    • morrowind@lemmy.ml
      link
      fedilink
      arrow-up
      21
      arrow-down
      2
      ·
      10 months ago

      I mean sure once you start getting big enough, you’d probably be bundling all the features of chromium anyways, and any extra bloat is meaningless. Chromium and thus electron are extremely well optimized so if you are using the full feature set it will be fast.

      But please stop using vscode as the benchmark electron app. It is not comparable. No other application in history has as large of a talent pool as vscode and It’s possible none ever will either.

      • dukk@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        10 months ago

        Yeah, VS Code is insanely optimized. No other Electron app is even going to try to reach that level.

      • sfgifz@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        10 months ago

        Does it really have to? Vscode is built on top of it, I don’t think it’s ever opened chromium dev tools for the app (maybe I’m wrong?)

    • cley_faye@lemmy.world
      link
      fedilink
      arrow-up
      7
      arrow-down
      2
      ·
      10 months ago

      Open the dev tools in electron app that where so badly coded that they are not blocked as they should in the first place. In short, bad app developer makes bad apps, and people complain about the framework instead of complaining about the lazy dev.

  • fury@lemmy.world
    link
    fedilink
    arrow-up
    45
    arrow-down
    4
    ·
    edit-2
    10 months ago

    ITT: some people are mad the web became the application platform of choice, in part due to handy dandy cross platform app tools like Electron and accessible languages like JavaScript.

    There is no perfect answer. Qt isn’t using the platform’s native capabilities to the fullest extent either. Qt requires a “wrapper” too–all those libraries your app depends on, to name a few (unless you got a commercial license and are compiling statically, you rich devil).

    Let’s celebrate the onslaught of apps that work with Linux instead of trying to scare off developers any more than Linux already did. Make love not war. <3

    In my experience, Electron and other “web wrapper” apps run just fine and I have enough CPU and RAM to run a dozen of them alongside my 50 browser tabs. Slack, Discord, VSCode, Teams, IRCCloud, it all works fine. Hardware is cheap compared to my time.

    • Viper_NZ@lemmy.nz
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      With you for the most part, except where you say the bloated, slow, unreliable, piece of crap Teams is fine…

  • erasebegin@lemmy.world
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    10 months ago

    JS land is the America of development. You may not like it, but it’s the encumbent power and it’ll be that way for a long time so might as well enjoy the plus sides

      • SnipingNinja@slrpnk.net
        link
        fedilink
        arrow-up
        3
        ·
        10 months ago

        That’s how I learnt about it. Funny enough I can’t see the image on this post (doesn’t load) but I can see the comments

    • scarilog@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      Front end developers will also have to learn rust, so tauri still presents a barrier to entry.

    • Nonononoki@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      10 months ago

      A big reason for me to use Electron is that Typescript is really easy to use. Does Tauri support that?

    • Andrew@mander.xyz
      link
      fedilink
      arrow-up
      3
      ·
      10 months ago

      It already should work on mobile, but it’s not production ready. I really want to try it out when I have time.

  • AlexWIWA@lemmy.ml
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    5
    ·
    10 months ago

    I’ll take shitty electron apps over winforms any day of the week.

      • AlexWIWA@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 months ago

        You have you just didn’t realize it. Think every shitty windows XP app you ever used. They were usually built with winforms.

  • Mio@feddit.nu
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    10 months ago

    The problem is that even Microsoft choose to use Electron when they built Teams. MS got loads of developers and Teams is really a big product in terms of users.

  • Mio@feddit.nu
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    10 months ago

    Lets write an OS in Electron and go to March. Maybe start using the right tool for the right job. If i only know how to build with lego, I dont build a real house with lego, instead i learn how to do it right.

  • hperrin@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    9 months ago

    As a full stack web developer, I FUCKING LOVE Electron. I can make really cool desktop apps, and you can deal with it.