• mushroommunk@lemmy.today
      link
      fedilink
      English
      arrow-up
      29
      ·
      10 hours ago

      In theory a less resource intensive program that should be more secure and have fewer bugs. Electron and React Native are large frameworks that abstract away a lot at the cost of bundling a web browser and significant code overhead into your program.

      I’m not optimistic they’ll actually do it well but that’s a separate topic.

      • Lyricism6055@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        7 hours ago

        Why would it be more secure? Electron has a massive ecosystem with a good bug bounty program afaik.

        • Axolotl.cpp@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          1 hour ago

          Less surface area to attack; Electron bundles a stripped down Chrorium browser and to make graphics you also gotta use JS… so basically there could be 3 more parts to attack

        • zener_diode@feddit.org
          link
          fedilink
          English
          arrow-up
          13
          ·
          7 hours ago

          It would (hopefully) have less attack surface. Electron is, after all, a whole browser, and needs to be able to do all the things a browser can do, while a native implementation can limit itself to just the very limited network interactions needed. (e.g. while XSS attacks are quite hard to do on a modern browser, a native app would make them impossible)

          • Lyricism6055@lemmy.world
            link
            fedilink
            English
            arrow-up
            5
            ·
            7 hours ago

            Does rust have a mature sandboxing environment similar to a browser though?

            Legit asking as I thought that was one of the selling points to electron. It also seems like one of the easiest things a shiny new app that leans heavily on Claude is probably gonna fuck up