News for hackers. Stuff that matters.
Re:Talloc: The Tutorial by zschoche on Sunday December 08, 2013 @06:26AM (#6869501)
It looks like they understand memory as a tree, but in complex structures it's a graph. I couldn't found how they handle ring topologies. I guess, this stealing stuff doesn't help.
Re:Talloc: The Tutorial by JoachimSchipper on Sunday December 08, 2013 @06:35AM (#6869512)
IIRC, talloc basically doesn't handle rings. Note, however, that it's fairly easy to create a "reference to the entire ring" that cleans up some node/the entire ring when it's deallocated, or to explicitly deallocate some node of the ring.

For what it's worth, non-tree reference graphs are a lot rarer than you'd think. (Note, for instance, that Perl doesn't clean them up automatically except in a few specific cases; this is annoying, but Perl is clearly usable!)

Re:Talloc: The Tutorial by wkz on Sunday December 08, 2013 @06:44AM (#6869526)
The ownership of memory must be a tree, which makes sense to me. But you could still arrange the returned pointers in, say, a ring buffer, right?