Re:Baby's First Garbage Collector
by unwind on Monday December 09, 2013 @06:08AM
(#6873767)
This technique is talked about in this Stack Overflow answer: http://stackoverflow.com/questions/12914917/using-pointers-t..., which also references this Slashdot interview (http://meta.slashdot.org/story/12/10/11/0030249/linus-torval...) with Linus Torvalds where he gives this as his "favorite hack".
[ Parent
| on HN ]
Re:Baby's First Garbage Collector
by munificent on Monday December 09, 2013 @11:59AM
(#6875164)
Yup, I got the idea for this from Linus. Before then, I've always done the uglier "if this is the first node then ..." special case branch instead.