3 ms·
Why is WASM so weird? Why not just thinly model modern CPUs so it can be almost transliterated?
by api 9y ago
Why is WASM so weird? Why not just thinly model modern CPUs so it can be almost transliterated?
- zenhack 9y agoOne big advantage of stack machines is that they tend to be better on code size, which very much matters when you're transferring code over the network. I expect other parts of the design make it easier to JIT; the lack of arbitrary gotos probably makes analyzing control flow easier, for example.