Baby's first wasm compiler

from blog Scattered Thoughts, | ↗ original
(This is part of a series on the design of a language. See the list of posts here.) I made a compiler from a toy language to wasm. The code quality is very much plan-to-throw-one-away. I'm just trying to get a feel for the amount of effort involved in a non-optimizing compiler. The toy language is mostly unsurprising. It has number, strings, maps (hashtables) and first-class functions,...