For a project I'm considering, I took a few hours to see if I could write a working garbage collector.
This is a very bare-bones copying GC, written without any reference to How To Do It Properly (just my knowledge of how a copying GC works, but I believe it is mostly cleanly written other than (a) the hardcoded pointer comparisons for object
(
Read more... )
Comments 5
Have you seen Darius Bacon's ichbins? The garbage collector is around lines 300-350.
https://github.com/darius/ichbins/blob/master/ichbins.scm
I'd like to be able to write this sort of stuff, but I don't have a sufficiently fuzzy / stressful / realistic test suite to really trust anything that I write. Did you create a test suite as well, or is the "hello world" test case everything?
Reply
Haven't heard of ichbins; might take a look later.
Reply
Reply
Reply
Leave a comment