• treechicken@lemmy.world
    link
    fedilink
    arrow-up
    26
    arrow-down
    4
    ·
    7 months ago

    Not really a language you would write in but WebAssembly. I have this dream of a single WASM runtime environment across web, desktop, mobile with devs writing apps once, compiling them down to WASM, distributing them over the Internet, and users running them on any platform they like.

    • fnmain@programming.dev
      link
      fedilink
      arrow-up
      10
      ·
      7 months ago

      A lot of new languages are going to support WASM now that garbage collection has been implemented into the language (Go, Python, Java possibly). Now if we could get the JS runtine to just use UTF-8 instead of the shitty archaec bad UTF-16, there would just be no reason to not use WASM

      • Mubelotix@jlai.lu
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        7 months ago

        Blazor and webassembly are different things. Webassembly is a runtime, blazor is a framework built for webassembly. They do not compare

        • Rogue@feddit.uk
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          7 months ago

          Blazor WebAssembly ticks the boxes that @treechicken@lemmy.world described.

          I have this dream of a single WASM runtime environment across web, desktop, mobile with devs writing apps once, compiling them down to WASM, distributing them over the Internet, and users running them on any platform they like.

          You write the app once and it can be compiled to WebAssembly that works across web, desktop, and mobile.

          In reality to take full advantage of Blazor you’re probably going to use Blazor Server/hybrid for desktop and mobile but the principle is the same, you’ve only written your app once but it works in every environment.

          • icesentry@lemmy.ca
            link
            fedilink
            arrow-up
            4
            ·
            7 months ago

            That only works with c# though. What they are suggesting is compiling any arbitrary language to wasm and run that anywhere. Which is technically already possible with WASI and any of its supported runtime.