The State of Scala on WebAssembly
summary
Scala compiles to Wasm now but current Scala.js output includes hundreds of JS imports so it is not sandboxed; Scala.js adds experimental Wasm in 1.17 and reaches stability in Scala.js 1.22 stable Wasm. A new wasm-without-JS in 1.23 removes JS interop, requires explicit @wasm imports, and produces pure .wasm files runnable on Wasmtime/Wasm-micro-runtime. The scala-wasm effort adds WASI and scala-wasm component support via WIT, enabling typed component ABIs, Scala↔Rust composition via wit-bindgen, and an ongoing Cats Effect port for WASI.
AI-written summary · about
