Per your request, please find enclosed…a new blog post!
A WebAssembly interpreter (Part 1)
→ https://wasmgroundup.com/blog/wasm-vm-part-1/
We build up a simple interpreter from scratch, in JavaScript, for a small subset of Wasm instructions (arithmetic and comparison).
![Diagram showing WebAssembly interpreter execution with title 'A WebAssembly interpreter' by Mariano Guerra from WebAssembly from the Ground Up. Shows two diagrams, representing the before and after state of a Wasm VM.
The instruction sequence is: i32.const 3, i32.const 2, i32.mul, i32.const 4.
On the before side, the stack shows [3, 2], and the next instruction is i32.mul.
On the after side, the stack shows [6], and the next instruction is i32.const 4.](https://media.hachyderm.io/media_attachments/files/115/582/347/428/725/630/original/4d6b8c45666eff2a.png)