by CyberRabbi · 5y ago · 0 comments
You don’t need webassembly to run C++ on the server side.
You don’t need webassembly to run Rust on the server side.
Etc.
Node was necessary because you need node (or compatible) to run JavaScript on the server side.
To quote a Docker cofounder:
> If WASM+WASI existed in 2008, we wouldn't have needed to created Docker. That's how important it is. Webassembly on the server is the future of computing. A standardized system interface was the missing link. Let's hope WASI is up to the task!
[1] https://twitter.com/solomonstre/status/1111004913222324225?s...
(unless you want to use some hacky c++ to js transpiler)
Typically client and server play different roles and require different builds anyway.
The point is to allow JavaScript to be able to use excellent C++/Rust code in a sandboxed environment when it makes sense.
Embedding SQLite is a perfect example.
That seems useful for the client side but you don’t need webassembly to do that on the server-side. E.g. https://github.com/mapbox/node-sqlite3