• 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
  • A_norny_mousse@feddit.org
    link
    fedilink
    English
    arrow-up
    30
    ·
    edit-2
    3 days 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.

    • dasbteam@lemmynsfw.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      WebBluetooth, WebUSB, WebSerial and the File System Access API aren’t universally available in Browsers for example.

      Tauri would be a lesser evil compared to electron, but that then involves libwebkitgtk.

    • ExLisper@lemmy.curiana.net
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      4
      ·
      3 days 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
        27
        ·
        3 days 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
          ·
          3 days 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
            ·
            3 days 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
              ·
              3 days 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.

                • ExLisper@lemmy.curiana.net
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  2 hours ago

                  So I checked and my app done with Tauri uses 50MB of RAM. Simple PWAs I’ve checked using about:memory in Firefox use 40-50MB. Native apps done with egui or iced use ~25MB. The difference is really small and taking into account all the advantages of Tauri (more mature framework, easier packaging, better DX, better components library) I’m not very motivated to learn a native library just to save 20MB of RAM. PWA would be an interesting option (very similar to Tauri but maybe with easier distribution) but in the near future I want to work with Android Auto so I will need to work closely with native Android API and I already know how to do it with Tauri.

                • ExLisper@lemmy.curiana.net
                  link
                  fedilink
                  English
                  arrow-up
                  3
                  arrow-down
                  1
                  ·
                  3 days ago

                  Firefox requires a PWA extension.

                  And the extension requires a package from a 3rd party repo. Probably that’s why I missed it until now. It works nice on Android though. Maybe I should do a PWA… But it’s like… learn new tools, host it somewhere… I will think about it. Thanks!