Essentially the same html/css rendering of Firefox or Chromium, still able to access the www, but with javascript fully removed for another language that can be interpreted - like python or lua. Is this feasible?

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    2 days ago

    Arguably typescript fits, it is converted to JS for runtime, but the developer writes TS. You theoretically could transpile python or lua to JS, no idea if it exists yet though.

    Otherwise WASM would be the main contender, dunno if lua or python can compile to wasm, but lots of languages can.

    • jol@discuss.tchncs.de
      link
      fedilink
      arrow-up
      2
      ·
      10 hours ago

      Typescript doesn’t run on the browser. But I’m pretty sure we will see native typescript soon. At this point, TS is practically the industry standard for developing serious JavaScript.

      • CameronDev@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        I dunno, I don’t see the benefit to native TS in the browser. For compatibility, all sites will continue to serve JS, so what does TS gain anyone? And there is no performance benefit, maybe a performance hit given none of the type validation can happen until all of the scripts have downloaded, so execution can’t begin until that has happened?

        I could be way off on this though, I’m not a webdev :/