• 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
  • ExLisper@lemmy.curiana.net
    link
    fedilink
    English
    arrow-up
    32
    arrow-down
    3
    ·
    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
      28
      arrow-down
      1
      ·
      23 hours 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
      29
      ·
      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.

      • ExLisper@lemmy.curiana.net
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        4
        ·
        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
          26
          ·
          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.

          • ExLisper@lemmy.curiana.net
            link
            fedilink
            English
            arrow-up
            8
            arrow-down
            4
            ·
            24 hours 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
              6
              ·
              24 hours 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.

              • ExLisper@lemmy.curiana.net
                link
                fedilink
                English
                arrow-up
                2
                arrow-down
                2
                ·
                23 hours 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
      ·
      19 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.

    • Taleya@aussie.zone
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      10
      ·
      21 hours ago

      Programs. They are called programs . We are talking about desktop machines, not mobile devices