• SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 years ago

    A pile of HTML + JS is the only cross platform GUI toolkit that’s practical to deploy.

    I’m not really happy about it myself, but realistically there’s not any other option than just bundling a website into a wrapper.

    And to pre-empt any replies; your proposed solution must support Windows, Linux (X11 and Wayland), MacOS, iPhone, Android, Chromium and Firefox.

    • jw13@beehaw.org
      link
      fedilink
      arrow-up
      0
      ·
      3 years ago

      Chromium and Firefox are web browsers, of course they only support HTML+JS. That’s what they were designed for.

      • dan@upvote.au
        link
        fedilink
        arrow-up
        0
        ·
        3 years ago

        of course they only support HTML+JS.

        WebAssembly is becoming more popular, which lets you run code written in languages other than JavaScript in a browser. It’s not possible to do everything yet, so you still need some JS code and a bridge between the WASM and JS, but it’s getting there. Emulators that run in the browser often use it.

        • Knusper@feddit.de
          link
          fedilink
          arrow-up
          0
          ·
          3 years ago

          I don’t think, there’s currently any plans to introduce a non-JS API for accessing the DOM. It would just take an insane amount of implementation work + documentation.

          But frameworks can generate access code for you, so you don’t actually need to write any JS yourself. Rust is quite far ahead in this regard, thanks to the wasm-bindgen library.

    • b_n@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      3 years ago

      I know the guy working on makepad is trying to solve this problem along with vr headsets, Apple tv, etc. It’s really painful because of dependency bloat messing with build times so he ended up rewriting a bunch of things 🤷‍♂️.

    • greenskye@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 years ago

      Why is Firefox a ‘platform’? I’m assuming chromium is for chromeOS devices, but I don’t know of any device that just runs Firefox.

      • Commiunism@lemmy.wtf
        link
        fedilink
        arrow-up
        0
        ·
        3 years ago

        they probably meant web versions of the app that run both on chromium and gecko (firefox) browser engines

      • SavvyWolf@pawb.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 years ago

        As Communism said, yeah I was ment a web application. No need to spend dev time working on a different version of your app if you can just reuse the web version.