3 ms·
I like the idea of using it to provide a "safe" execution environment for untrusted C++. I imagine bochs or other similar user-mode emulation could also work, b
by reanimus 6y ago
I like the idea of using it to provide a "safe" execution environment for untrusted C++. I imagine bochs or other similar user-mode emulation could also work, but this benefits from being smaller and thus having less of an attack surface (theoretically).
It's also just neat!
- pavlov 6y agoWhy not WebAssembly for a C++ sandbox?
- reanimus 6y agoI've seen some similar stuff with that too, yeah! Stuff like https://github.com/WAVM/WAVM https://github.com/WAVM/WAVM is really cool, though I imagine this may be lighter (no LLVM dep)? You could also do something like a full system VM using a chip simulation like this, too.
- Matthias247 6y agoThe best comparison would just be running any other VM (like qemu, firecracker, etc). WASM is different and higher level, because it's not bare-metal anymore.
- reanimus 6y ago> WASM is different and higher level, because it's not bare-metal anymore. Possibly, though one could conceivably write a chip that uses WASM as its assembly, no? :)