Post
My favourite part is that by using a power of two size, I can: • Use `popcnt` to detect when it's time to grow (when only 1 bit is set) • Use `clz` (count leading zeros) to know how many overflow nodes there are. 5/x
0 reposts2 likes
Oh and of course…if this kind of madness seems appealing to you, you should definitely check out our book, WebAssembly from the Ground Up. The macroassembler shown above is based on the library we construct in the book.
wasmgroundup.comWebAssembly from the Ground UpA book about WebAssembly — learn Wasm by building a simple compiler in JavaScript.