Scala to WebAssembly: How and Why
Briefly

Scala.js will now support Wasm as its new linker backend, enabling direct compilation to Wasm. This move enhances efficiency and performance across various environments.
The Wasm linker backend processes SJSIR files to generate a Wasm binary with a JavaScript helper file. Users can enable this backend through specific linker settings in Scala.js.
Benchmark comparisons show Wasm's exceptional performance, especially in tasks with minimal or no JS-interop. For tasks like SHA512, Wasm can be up to 5.8 times faster than JS, showcasing its efficiency.
Read at Virtuslab
[
|
]