• guywithoutaname@geddit.social
    link
    fedilink
    arrow-up
    104
    arrow-down
    2
    ·
    1 year ago

    I love having multiple copies of Chromium installed on my system at the same time. 250 MB internet messengers please!

    • masterspace@lemmy.ca
      link
      fedilink
      English
      arrow-up
      32
      arrow-down
      14
      ·
      1 year ago

      You ever notice how everything installs and uninstalls super cleanly and easily these days and software gets consistent regular updates?

      That’s because developers stopped min/maxing storage and started bundling all of an application’s dependencies with it instead of trying to rely on globally installed packages and frameworks that can break or be missing or lead to dependency hell.

      No one likes larger download sizes and more storage being used but the tradeoff is by and large worth it.

      • Otter@lemmy.ca
        link
        fedilink
        English
        arrow-up
        24
        arrow-down
        2
        ·
        1 year ago

        Isn’t this about performance and not storage?

        Making and managing an electron app is easier, but it is possible (with more work) to have clean install/uninstall, a nice UI, and consistent regular updates while still being fast and efficient.

        Better programs will always need more work to create.

        I am curious about what other options there are, and why Electron is what a lot of people go with.

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

          Options:

          Native app for each platform:

          • Pros: native code is going to be the fastest possible to run and have the smallest dependencies
          • Cons: have to write all your code 3+ times in different languages, have less time to develop new features and optimize existing code.

          Progressive Web App:

          • Pros: single app, write once runs anywhere, no signing keys, no lock in, can be hosted anywhere, runs on everything
          • Cons: artificially limited by Apple on iOS, doesn’t have access to deep operating system resources, only what’s exposed through the browser, limited multithreading capabilities

          React Native:

          • Pros: single app, write once, runs anywhere, similar enough to React Web that a lot of developers will have an easy time learning it
          • Cons: still kinda finnicky, not super easy to make it work and perform well across all platforms, you’ll probably still end up having to write some native code, not actually CSS / React Web so still a bit of a learning curve coming from there

          Qt:

          • Pros: single app, write once, runs anywhere, low level / compiled means that it will be small and performant
          • Cons: written in C++, harder to find developers for, harder to implement modern out of the box niceties that CSS gives you for free, poor devX compared to react

          .NET MAUI (formerly Xamarin):

          • Pros: single app, write once, runs anywhere, low level / compiled enough to be more performant than most web apps out of the box, well documented
          • Cons: written in C#, easier to find devs for but not many experts in it specifically, MVVM model is not as pleasant of a devX as React, again no css

          Electron:

          • Pros: single app, write once, runs anywhere, has full access to operating system resources and deep multithreading if needed, can be as simple as web app in a container or as complex as something like VSCode.
          • Cons: takes up more storage and ram since you’re bundling chromium with your app
          • aksdb@feddit.de
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            Flutter is quite nice too. Closer to web dev, but still pretty close to native.

          • TehPers@beehaw.org
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Tauri is also a more recent option, which uses the native webview. Not sure if it’s suitable for production yet though.

        • AnonymousDeity@sh.itjust.works
          link
          fedilink
          arrow-up
          15
          ·
          1 year ago

          People choose Electron because they already know how to write Chromium apps (web dev). It’s really just ease of development, using another framework takes more specialized skills than using Electron.

          That’s why everything is Chromium these days.

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

            That’s why everything is Chromium these days.

            The root cause is one step deeper, tbh: Web apps are cheaper. You take BSc’s and make them create web pages, and hey, with Chromium they can also be your desktop app devs. No need to have costly MSc’s for backend or full-stack work.

            I mean this might vary depending on where in the world you are, but web devs earn a fair bit less over here.

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

              No need to have costly MSc’s for backend or full-stack work.

              Lmao where are you seeing backend shops just full of MSc’s writing new sorting algorithm and arguing about the BigO notation of their problem?

              I’ve worked at Fortune 500 and MAANG companies, and the overwhelming vast majority of backend engineers that I’ve seen have BSc at best.

              It doesn’t even make logical sense in the context of your argument given that Electron is purely a frontend technology. It has no bearing on your backend costs or how many backend engineers you need if you’re building your frontend natively or with Electron.

              • Carighan Maconar@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                It doesn’t even make logical sense in the context of your argument given that Electron is purely a frontend technology. It has no bearing on your backend costs or how many backend engineers you need if you’re building your frontend natively or with Electron.

                Yeah, that’s what I said.

                • masterspace@lemmy.ca
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 year ago

                  You take BSc’s and make them create web pages, and hey, with Chromium they can also be your desktop app devs. No need to have costly MSc’s for backend or full-stack work.

                  ?

                  In this situation you never needed MSc’s…

      • RaivoKulli@sopuli.xyz
        link
        fedilink
        arrow-up
        13
        arrow-down
        1
        ·
        1 year ago

        You ever notice how everything installs and uninstalls super cleanly and easily these days and software gets consistent regular updates?

        Not really. Well maybe I take it for granted having switched to Linux.

        I mostly hate Electron for the dumb RAM usage.

      • master5o1@lemmy.nz
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        1 year ago

        Pretty sure that’s more about a switch from physical distribution where storage is expensive (CDs) to digital where it’s cheap.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      1 year ago

      250 MB internet messengers please

      Hum… Make them some of those large-sized megabytes if it’s Teams.

      • Carighan Maconar@lemmy.world
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        Teams is truly exceptional, more so because the same company has VSCode.

        Both show the inherent lag and sluggishness of Electron apps, but they’re on totally opposite ends of the spectrum. Which is wild. It’s like a case study or something.

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    69
    arrow-down
    3
    ·
    1 year ago

    Wouldn’t it be great if there was a way for all these electron apps to share the same runtime so people don’t have to bundle it with their applications.

    You know, I bet if the applications without the runtime are small enough, you could probably stream them directly from the internet without even downloading anything up front!

    I guess that shared runtime would need some way to browse the applications…

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

      Use the system webview, you cowards!

      Developers bundle all of Chromium, because they’re afraid the OS webview will have a different browser engine. Testing is too hard…

      This is such a terrible excuse — usually the same app runs in browsers too, so it already has to deal with even wider variety of browser engines.

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

        I mean even for something like .NET, apps install the version of the runtime they need in a shared space, so that they can be used by everyone desiring that specific version.

        • Trainguyrom@reddthat.com
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Ooh! Just unlocked a memory of a computer I was setting up and one piece of software assumed its version of .NET would be present and just failed install every time because it wasn’t. I ended up just installing it later once I had other stuff installed

    • xavier666@lemm.ee
      link
      fedilink
      English
      arrow-up
      17
      ·
      1 year ago

      You mean instead of downloading the app, we could just browse through them? That’s a revolutionary concept. We could call them hyper-apps!

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

      Outside of PWA shortcomings, I believe there’s a way to have a .NET application run a WebView with Edge (Chromium). I believe Windows 11 has both pre-installed now.

      I don’t even want to run NodeJS anymore. I would run all my server apps on headless Chromium if I could.

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

      Don’t bundle your app, let the CDNs do their job. God damn, that’s revolutionary.

      Hopefully your idea takes off like the idiot that started the “monorepos” craze.

      To your credit, your idea is actually good.

    • flashgnash@lemm.ee
      link
      fedilink
      arrow-up
      11
      arrow-down
      2
      ·
      edit-2
      1 year ago

      For now at least, PWAs work on Android and I believe many apps already use electron or something similar under the hood

      • Trainguyrom@reddthat.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        When I worked support for an android device manufacturer I had some strange issues with other apps that were resolved by clearing the cache in Chrome. Its all webpages all the way up and down baby!

          • smileyhead@discuss.tchncs.de
            link
            fedilink
            arrow-up
            4
            ·
            1 year ago

            Inspect any major website, you’ll see boilerplate of <div><div><div><div> and unreadable pile of JavaScript programs your browser need to run to build the website. Sites should be done in a way that is still readable after you disable one element (for example disable CSS function, scripts or HTML specific tag).

            Internet is modular, based on stacked protocols. Want to fit Tor between TCP and HTTP? No problem. Web is also like that, build of semi-independent formats, in theory. But in practice devs are using frameworks that assume Chrome, Firefox and Safari are and would ever be the only things existing. Now if you want to develop new browser you not only need to display HTML and add other things later. You need to get all specifications of all standards working right away or sites would spectacularly break.</div></div></div></div>

            • TehPers@beehaw.org
              link
              fedilink
              English
              arrow-up
              3
              ·
              1 year ago

              It’s a bit of a shame that HTML went from describing documents to describing UIs. I do miss the days of simple websites, although I’m not old enough to remember the old old internet.

              • JackbyDev@programming.dev
                link
                fedilink
                English
                arrow-up
                0
                ·
                1 year ago

                What’s the alternative? Or an alternative I guess I should say. I agree though, I wish folks would use HTML for all documents. Like why the hell am I downloading a PDF of a thing I’m never printing? (PDFs are still acceptable for printing though.)

                • TehPers@beehaw.org
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 year ago

                  I don’t think there’s anything wrong with using HTML/XML-ish format for describing a UI (although having a standardized presentation format that all “viewers/browsers” follow exactly the same way would be nice), I’m just sad that websites have become described as UIs rather than as well-structured documents.

              • TWeaK@lemm.ee
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                Yes, the issue is with web developers not following standards. However, because all of them fail to do this, the problem ends up being with the browser that doesn’t support everyone’s non-standard developments.

                I just want my text in the centre of the page (not with rows stretched across a widescreen monitor) and for things to not jump about as they load. Figure out where things should go, then display it.

    • Blackmist@feddit.uk
      link
      fedilink
      English
      arrow-up
      12
      ·
      1 year ago

      What else works across as many platforms and screen sizes as well as the combination of HTML/CSS/JS?

      Most attempts to build that just lead to a worse version of it.

      I’ll be the first to admit it’s bloated to all hell after 25 years of people stacking crap on top of more crap, and it’s perilously close to being completely controlled by Google, but it is what it is.

      • I Cast Fist@programming.dev
        link
        fedilink
        arrow-up
        21
        ·
        1 year ago

        What else works across as many platforms and screen sizes as well as the combination of HTML/CSS/JS?

        Doom. It runs on every-fucking-thing

      • smileyhead@discuss.tchncs.de
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        edit-2
        1 year ago

        Maybe I do not specify clearly what I mean.

        Why to order taxi, access bank, register a domain name do we have to have apps on all platforms and then to fix this problem we bloat the web by creating webapps. Why not just plain simple HTML website beautified with CSS instead?

        Real cross-platform apps are those written in, for example QT. Then came Android and iOS forcing everyone to use their toolkits so we started to abuse poor web.

        • Blackmist@feddit.uk
          link
          fedilink
          English
          arrow-up
          7
          ·
          1 year ago

          Well I’m in agreement there.

          The only reason they want everything as an app is so they can push notifications and do any tracking they can legally get away with (and some they can’t but who’s gonna know?)

          Dominos have locked all their deals that actually make a pizza a normal price that humans would willingly pay for a pizza behind their app. There’s no reason for them to do this. Surely their business model is selling pizza? So now I go to a little family run pizza shop, pay less and get decent pizza.

          • Dubious_Fart@lemmy.ml
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            Yep.

            Your standard web browser has to many privacy protections for you and your data.

            Its why they want to push you to an app, that asks for WAY to many permissions to do what it needs to do. Cause it doesnt need that access to function. It needs that access to monitize you. Cause they make more off stealing your information, than they do off you being a customer, Which is why you get so many discounts for using apps.

  • amigan@lemmy.dynatron.me
    link
    fedilink
    English
    arrow-up
    46
    arrow-down
    2
    ·
    1 year ago

    It seems every new shiny technology today tries its darndest to short-circuit 40+ years of advances in OS virtual memory design. Between Electron and Docker, the entire idea of loading an image into memory once and sharing its pages among hundreds of processes is basically dead. But at least there’s lower support burden!!!1111

  • crow@beehaw.org
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    1
    ·
    1 year ago

    If I have to load elements from the web just to use the electron app properly, I’d rather use a web app and load the whole page each time and not have the tracking.

  • el_abuelo@lemmy.ml
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Folks in this thread complaining about Electron I think miss the point. It is a trade-off. It is designed to allow engineers who have a web dev skillset to write desktop apps. For those like me who want to write the occasional hobby app - it’s great. It’s also great for orgs to be able to have cross functional teams. Just like React Native allows this for the mobile world. This could be because they’re small and can’t afford specialist native engineers for each platform they want to support - or it could be that they want to spend their money in other areas and happy to trade off app performance. If it was as lean or as performant as native apps there would be a lot of people in this thread looking for work.

    • Xusontha@ls.buckodr.inkOP
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      It’s not terrible, electron is good for stuff like what you discuss

      I just like native apps better haha

      • el_abuelo@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Native apps have the potential to be better than electron apps for sure. I get that.

        This is a surface level thing though - the question is: would THIS app, written by THAT organisation be better if it was native? Unlikely because they don’t have the skillset for it…otherwise it would have been a native app. Its also likely that less apps would even exist because the barrier to entry is higher without electron and similar.

        But this is just a meme and I’m taking this way too seriously!

    • heird@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      It’s still terrible because of its ram usage, electron uses minimum 300Mb per instance so that’s 3GB for 10 apps while if you open them all in Chrome you save 100s of mb

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

    Electron is awesome, badly coded apps just suck. Look at Voyager for Lemmy, it’s great and it’s just a web app.

    • Xusontha@ls.buckodr.inkOP
      link
      fedilink
      arrow-up
      21
      ·
      1 year ago

      Electron apps are nice in some ways, but use a ton of memory

      I usually don’t mind electron apps too much, but I do prefer native apps

      • Carighan Maconar@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        1 year ago

        Uh huh. Electron apps look good on Windows. Sure.

        No electron app ever looks good anywhere. They are consistent insofar that they look shit on all OS, equally. And alias their fonts wrong. And scale them wrong. And break accessibility.

          • Carighan Maconar@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Sure, there’s always a bar to clear. And yet Electron can’t even properly alias fonts if the creator doesn’t do it properly, as it tries to use Chrome’s broken font rendering by default. Nevermind scaling the size of anything, which just becomes a blurry mess if the app wasn’t created well enough (see the mess that is Signal as an example).

    • carbonara@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      1 year ago

      Voyager is made with Ionic. The difference with Electron is that in Ionic, trough Swift/Kotlin, shows a WebView from the System Browser (mobile only) while Electron “installs” Chrome each time (desktop only).

      WebApps are great, but Electron is just too much

    • xavier666@lemm.ee
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      1
      ·
      1 year ago

      This is the same coping mechanism as “just build another 4 lane highway. That should solve the traffic issues”. You are just shifting the problem.

        • wols@lemm.ee
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          1 year ago

          The point is that you’re not fixing the problem, you’re just masking it (and one could even argue enabling it).

          The same way adding another 4 lane highway doesn’t fix traffic long term (increasing highway throughput leads to more people leads to more cars leads to congestion all over again) simply adding more RAM is only a temporary solution.

          Developers use the excuse of people having access to more RAM as justification to produce more and more bloated software. In 5 years you’ll likely struggle even with 32GiB, because everything uses more.
          That’s not sustainable, and it’s not necessary.

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

            The same way adding another 4 lane highway doesn’t fix traffic long term (increasing highway throughput leads to more people leads to more cars leads to congestion all over again) simply adding more RAM is only a temporary solution.

            How is adding more RAM a temporary solution? It would lead more workload to the CPU… which is good?

            • MyFairJulia@lemmy.world
              link
              fedilink
              arrow-up
              6
              arrow-down
              1
              ·
              1 year ago
              1. People have enough RAM.
              2. Developers see people getting more RAM.
              3. Developers allow their software to use more RAM (either by doing more cool stuff or optimizing less stuff).
              4. People have little RAM.
              5. People buy more RAM.
              6. goto 1;

              This also applies to CPU and GPU.

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

                You’re giving the devs too much credit. They didn’t give a fuck even when we have not enough RAM. Otherwise this post won’t be such a common experience.

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

            I don’t know much about car traffics but I don’t see how adding more RAM to solve the problem of not having enough RAM is a poor solution

            • PixxlMan@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

              The idea is that increasing road capacity will increase demand and basically make traffic as bas again and similarly “just add more ram”-ing will just lead to developers using less memory efficient practices leading the same situation down the line.

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

                Which is a flaw logic as it implies

                1. The RAM capacity of any PC is a publicly available information like the road capacity; AND
                2. Electron app developers are checking info of 1. (if it’s somehow available) to decide how they optimize their app. Which doesn’t seems reasonable as electron apps are not games and thus not expected to use 100% RAM.
                • PixxlMan@lemmy.world
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  1 year ago

                  Of course the average amount of ram in computers isn’t some secret. What are you on about? It’s only thanks to the fact that we have gigabytes of ram these days that inefficient practices are possible. If developers didn’t know that, they would have no idea that was possible. How on earth do you think developers would ever optimise software and determine their performance requirements if specs were unknown? I’m not saying they’re snooping on YOU individually (although there’s a ton of telemetry these days everywhere and ram is probably a common statistic collected by software - Steam’s hardware survey is public and shows millions of computer’s specs. Any software you use knows your ram capacity - it’s not secret. The ram capacity of newly sold systems is public is obviously shown on spec sheets)…

    • Xusontha@ls.buckodr.inkOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I got 32 on my desktop so I’m fine there, but my laptop explodes if I try to run the same amount of stuff with 8GB ram

      • SnipingNinja@slrpnk.net
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Easy solution, get a laptop with 32 GB RAM/s

        Seriously though, the problem is either on both or on neither. It’s an additional expense on the customer though, like everything else nowadays. I personally ended up getting a super powered laptop/tablet and relying on it for all my computing needs because laptops are good enough for most use cases nowadays and desktops are limited to specific use cases.

        Thinking about it though, the reason it’s only limited tasks needing more power might be because everything else is electron.

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

    Well, people tend to pick the easiest way to achieve an objective, even though the solution is simple or optimised.

    • Cornelius@lemmy.ml
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      1 year ago

      Yeah, then we can have marginally more responsive web apps.

      Seriously though, web apps are usually just optimized like shit in addition to using chrome.

      • Andrew@mander.xyz
        link
        fedilink
        arrow-up
        4
        arrow-down
        4
        ·
        1 year ago

        Do you know what this even is? It’s not marginal at all. Check the comparisons of Tauri and Electron. And it does not use Chrome. Electron also doesn’t use Chrome.

        • Carighan Maconar@lemmy.world
          link
          fedilink
          arrow-up
          11
          arrow-down
          1
          ·
          1 year ago

          Tauri is the exact same problem, just done a bit more cleanly.

          The problem is the evolutionary dead end that - hopefully - is web framework based “desktop” apps. There is already a framework for desktop apps, and unless you’re still used to those, you wouldn’t notice just how slow any web framework is by comparison. It’s mostly the user interactions, that small but noticably delay on every interaction, every click, every type, everything. Funnily enough, my actual web browser (Firefox) shows one of the shortest delays when typing into web pages like this compared to all the “native apps” I got installed that are just web pages, too.

          Tauri is an improvement. To the problem. It’s not a solution.

          • Andrew@mander.xyz
            link
            fedilink
            arrow-up
            1
            arrow-down
            2
            ·
            1 year ago

            We just not there yet. Tauri tries to be Electron or React, where you write only once and use everywhere. This is very cost efficient. So even though it’s of course not perfect overall, but it is the perfect alternative, that brings web apps closer to native-like experience. Small but important step to greatness.

            In the end the question is: Election or Tauri? And not a debate on whether web frameworks are bad etc.

          • Andrew@mander.xyz
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            1 year ago

            Basically, but not basically. After all, Chromium is (F)OSS, and Chrome is proprietary.

            • Jakeroxs@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              I think most people are more upset about the engine being the only thing devs target now, similar to the old IE days, not as much on the chrome vs chromium aspect when it comes to this.

    • beeb@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I was pleasantly surprised to find a tauri app in the wild at my work. Our time tracking software uses it, at least for the Linux version.

  • Elise@beehaw.org
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    1 year ago

    Tja in a world where every OS has its own stupid little UI system, language and IDE…