Re:LO – simple WASM native language
by chubs on Monday May 27, 2024 @02:22AM
(#40488157)
This looks super impressive! Any chance you could explain how memory management works? Eg is it like rust in that sense? Or is it GC'ed ? Thanks
[ Parent
| on HN ]
Absolutely. The memory management is manual like in C, but with addition of defers it is actually quite good to work with.
Here is the source for the allocator: https://github.com/glebbash/LO/blob/81f96bb09e3a0b1455b32497...
It also links to where I learned how to build the "proper" allocator from scratch.