languages icon indicating copy to clipboard operation
languages copied to clipboard

WASM

Open flying-sheep opened this issue 7 years ago • 0 comments

First of all: I think it’s useless to distinguish bytecode and text representations of WASM. They correspond 1:1, that’s tr, not a compiler.

Generally I think everything will compile to WASM at some point very soon in the future. Right now:

  • JWebAssembly compiles Java bytecode to WASM
  • Using LLVM:
    • EMScripten compiles C/C++ to JS or WASM
    • Rust has WASM as direct compiler target

I think rust is the most mature and convenient bet right now, you can compile your library directly to a WASM library by setting the compile target mode and import the resulting file from a JS runtime.

flying-sheep avatar Jul 08 '18 16:07 flying-sheep