Hello! Thought some people here might be interested in my most recent blog post — Reflections on writing a book. It's about some of the things Mariano Guerra and I learned in over the 2.5 year it took us to write our book (💬 #share-your-work@2025-03-10)
[March 10th, 2025 6:13 AM] mariano: After two and a half years of work with <@U01DWJSAF2B>, we are happy to announce the release of <https://wasmgroundup.com/|WebAssembly from the Ground Up>, a book that teaches you about WebAssembly 1.0 by building a simple compiler in JavaScript with https://ohmjs.org/|Ohm/JS.
Here’s a 25% discount code you can use:
FOCWASM25
We decided to do a “digital first” book to take advantage of interactivity and “explorable explanations”, and learned a couple of things along the way.
We also decided that all the code should be in the book and that it should run if you copy and paste the snippets as you read.
To achieve this we had to create most of the tooling around the book ourselves:
• The server that handles authentication and access to the book • The script that extracts the snippets from the original source code and generates: ◦ The snippets you can copy to clipboard. ◦ The “Copy up to here” code segments. ◦ The checkpoints and chapter modules in the code repo, accessible through stackblitz. ◦ The emit library, a standalone library to emit WebAssembly 1.0 binary modules. • The early access feedback system using embedded https://hypothes.is/ • PDF generation (puppeteer, pdftk, imagemagick, poppler). • A tool to generate code snippet ranges for “highlight on text hover”. We plan on writing about some of our takeaways in the coming weeks, but that will have to wait. :sweat_smile:
Let us know if you have any questions!