• Overspark@feddit.nl
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 hours ago

    This isn’t about replacing javascript, this compiles something that looks a bit like Python to C and then to WASM. Which browsers can run natively these days. But you can do that with any source language if there’s a compiler for it, type safe or not. You can compile Rust to WASM too for example. So nothing’s getting replaced, these are just additional tools for Web developers.

    • taladar@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      5 hours ago

      Agreed. Just the idea of finally replacing JS with something only to be another of those “dynamic” languages makes me want to puke.

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

    I think if the idea is to replace js, it should be a superset language at the interpreter level. I.e. the interpreter can run js, but valid js wouldn’t work with the compiler. It makes it a drop-in replacement without harming legacy