HACKER Q&A
📣 sanskarjethi

What is the purpose of WASM outside the browser?


I was recently going through a blog that was explaining how to use WASMtime and use WASM outside the browser.

But what is wrong with docker or a regular VM?


  👤 sinenomine Accepted Answer ✓
ISA, OS independence. WASM runs in quite unusual environments, for example on some blockchains.

👤 whb07
Limited execution privileges. A random binary can do anything in your OS, whereas the spec of WASM doesn't allow it.

ie. "run foo.exe with max 500mb ram and it can only exist/touch files in /bar"