@spiralganglion Are you aiming to write it at the WAT level or a hex editor? :o
@spiralganglion Hell yeah. Excited to see what you make with it. Back when WASM was still just coming out after ASM.js I did a deep dive to figure out how to do basic things like loops and if statements with WAT. I hadn't done any ASM before so it was a bit of a mindfuck.
@mauve @spiralganglion FWIW, WebAssembly from the Ground Up is very byte-level focused. I'm partway through and I can't remember seeing any WAT.
I'm also porting the examples to Haskell. I wanted to get @marianoguerra and/or @dubroy's approval before open sourcing that.
I also thought about mentioning the "ground up" connotation, but 🤷♂️🙃
@j3rn @mauve @spiralganglion @marianoguerra That's correct, we don't cover .wat in the book.
That said, the code you emit with the "assember" library we create in the book ends up looking a heck of a lot like wat, with a slightly different structure.
I'd argue that if you complete the book *and* know Lisp/sexps, you basically know wat.
@j3rn
And we'd love to see the example ported to Haskell! The code in the book is MIT-licensed, so in principle you don't need our approval anyways 😉
…but if you're in the Discord, maybe start a discussion in the # share-your-work channel (which I just created)?
We've discussed putting together a list of peoples' languages/ports that people have created based on the book.
@dubroy Sure thing! I'll clean it up and share it after work ☺️
@mauve Both, at least a tiny bit, but I'm especially interested in WAT.