| It's also valuable for running code written in <random language> to be executed in <another random language>. Write a library in Rust and compile it to WASM, theoretically any language with WASM bindings could run it. This could really make niche languages more easily adopted if their execution environment supported libraries in WASM. Imagine using Java's JDBC from something like Nim. Nim could take advantage of a 30 year old mature and fast database access framework without haveing to envest that ime and effort themselves. Or even something more modern like the polars dataframe library. |
https://hacks.mozilla.org/2021/12/webassembly-and-back-again...