Let’s reinvent java bytecode but… different

  • onlinepersonaOP
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    22
    ·
    9 months ago

    I’m not sure why the WASM creator(s) didn’t take advantage of the existing java bytecode and JVM instead of reimplementing it. Might’ve sped up its adoption. Doesn’t matter to me though, as long as JS stops being the #1 in web development.

    This meme isn’t to be taken seriously

    Anti Commercial AI thingy

    CC BY-NC-SA 4.0

    • xigoi@lemmy.sdf.org
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      9 months ago

      Java bytecode is designed specifically for class-oriented languages like Java and works terribly with anything else.

    • RonSijm
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      9 months ago

      Why would they? WASM is Web-Assembly, so Assembly is a lower level language than Java.

      You can use C# WASM through Blazor, and Java WASM though JWebAssembly. WASM as core is supposed to be language agnostic. So If you want a JVM in WASM you can build it on top of it

      • onlinepersonaOP
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        13
        ·
        9 months ago

        Java makes bytecode which is run in a JVM, WASM is bytecode which runs in a VM.

        Anti Commercial AI thingy

        CC BY-NC-SA 4.0

        • RonSijm
          link
          fedilink
          arrow-up
          11
          ·
          9 months ago

          Java makes things run in a VM

          Docker makes things run in a VM

          Virtualbox makes things run in a VM

          Why did we need any of those things, should have just put everything in Java instead right 🙃