Live data from Hacker News

Show HN: ChaosTree – A zero-dependency Java tree library (AVL,RBT,B-Tree,B+Tree)

github.com

11–12 of 12 posts

Re: Show HN: ChaosTree – A zero-dependency Java tree library (AVL,RBT,B-Tree,B+Tree)

#11
post #8

Earlier quoted context omitted.

Intrusive trees are great for specialized use cases, but not for a general-purpose Java Collection. If the payload owns the left/right pointers, the same object can't cleanly participate in multiple Maps/Sets. ChaosTree keeps the tree topology separate from the domain objects, which is necessary for a NavigableMap-style collection.

You can have both! You can of course implement the non-intrusive case on top of the intrusive one. I think that opens up interesting use cases with Valhalla.

[dead]
Post reply on HN