Post
But an iteration node can have any # of children! So when the parent node is allocated, we don't know how big to make it. My solution: • Allocate space for a fixed (power of 2) # of children • If necessary, use the last child slot to point to an overflow node. 4/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.