It would have been nice to include a list of the types of changes that a modern malloc would make to this basic structure to make it faster or fix bugs.
It would have been nice to include a list of the types of changes that a modern malloc would make to this basic structure to make it faster or fix bugs.
https://journal.stuffwithstuff.com/2013/12/08/babys-first-ga...
As someone who really enjoys reinventing the wheel for fun, the final words are something of a mantra for me:
> Let me stress here that while this collector is simple, it isn’t a toy.
> There are a ton of optimizations you can build on top of this—in GCs and programming languages, optimization is 90% of the effort—but the core code here is a legitimate real GC.
> It’s very similar to the collectors that were in Ruby and Lua until recently.
> You can ship production code that uses something exactly like this.
> Now go build something awesome!