Get the latest tech news

WASM is not quite a stack machine


Everyone knows Wasm is a stack machine. Wikipedia says so, the official Wasm design specification says so, you get it. I thought so too. That is, until I started writing Wasm code – not compiling for Wasm, but writing the instructions by hand. And I found out that there exists a major difference between Wasm and all other stack-based languages, that makes this claim misleading.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of wasm

wasm

Photo of stack machine

stack machine

Related news:

News photo

Lumina – a statically typed web-native language for JavaScript and WASM

News photo

Show HN: TurboQuant-WASM – Google's vector quantization in the browser

News photo

Ohm's Peg-to-WASM Compiler