I hope someone would create a tutorial which is using a toy programming language to compile to webassembly from scratch. Using existing language is too opaque to understand anything.
I don't understand why I got downvoted, it seems HN users with power to downvote just see everything is a nail they wanted to exercise their power.
Anyway, I'd probably write one when I actually implement it. I know linear memory is available but not sure whether or not having GC or mechanism that make memory safe.