|
|
|
|
|
by matei_radu
1535 days ago
|
|
(one of the authors of Spin here.) Your intuition is mostly correct.
Before anything, I strongly suggest you read this article on server-side WebAssembly — https://hacks.mozilla.org/2019/11/announcing-the-bytecode-al... In short, when compiling to Wasm, you are building a binary that is agnostic of the operating system and CPU architecture it is going to run on, so it can be executed in lots of very different places (microcontrollers, Raspbery Pis, in the cloud).
You can also use several VERY different programming languages, and interoperate between them (write a component in Rust, import it in a new component in JavaScript, and use those two from C# — this is an example for how the component model will (hopefully soon) enable cross-langauge interop in WebAssembly). Among other benefits, the compact binary format (which makes it easy to distribute modules), the isolation sandbox, common compilation target. Hope this is helpful! |
|