WebAssembly has been causing a stir over the last year. It was voted the fifth ‘most loved’ language in Stack Overflow’s developer insights survey. WebAssembly is a compilation target, rather than a language they will use directly. This is very easily decoded, compiled and executed - giving fast and predictable performance.
Table of contents
What is WebAssembly? (and why does it exist?)So why write your own compiler?A minimal wasm moduleAn add functionBuilding a compilerThe TokenizerThe ParserThe EmitterImplementing expressionsVariableswhile loopsgraphics!ConclusionsSort: