• jw13@beehaw.org
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    il y a 1 an

    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
      11
      arrow-down
      1
      ·
      edit-2
      il y a 1 an

      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
        4
        ·
        il y a 1 an

        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.