languages
languages copied to clipboard
WASM
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.