WASI fits snuggly in between, being a common intermediate language
WASI fits snuggly in between, being a common intermediate language
From https://en.wikipedia.org/wiki/Asm.js
> asm.js consists of a strict subset of JavaScript, to which code written in statically-typed languages with manual memory management (such as C) is translated by a source-to-source compiler such as Emscripten (based on LLVM).[2] Performance is improved by limiting language features to those amenable to ahead-of-time optimization and other performance improvements.
> asm.js is mostly rendered obsolete with the introduction of WebAssembly (wasm), which has a bytecode format that is faster to parse. Efforts to extend JavaScript with more low-level features like SIMD.js has also been suspended since 2017. asm.js remains useful primarily as a "fallback" for wasm
But nowadays WASM is much more suitable for the job. JavaScript was designed as a scripting language, not a low level intermediary language.