Hacker News new | ask | show | jobs
by api 3035 days ago
Why is WASM so weird? Why not just thinly model modern CPUs so it can be almost transliterated?
1 comments

One 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.