ChaosTree
A zero-dependency Java tree library (AVL,RBT,B-Tree,B+Tree)
Details
- External ID
- 49694404
- Source
- HN
- Company
- —
- Product
- ChaosTree
- Website domain
- github.com
- Launched
- Sept. 14, 2026
- Cohort
- —
- Upvotes
- 9
- Upvotes percentile
- 0.5422647527910686
- Tags
- —
- Fetched at
- Sept. 18, 2026, 5:02 p.m.
- Updated at
- Sept. 18, 2026, 5:02 p.m.
Description
What is ChaosTree?ChaosTree is a zero-dependency Java Sorted Set/Map library built around multiple tree implementations.It provides implementations of: - AVL Tree - Red-Black Tree - B-Tree - B+TreeI have not made my custom API as it implements NavigableSet, NavigableMap, SequencedSet and SequencedMap. My Custome API are: - buildFromSorted(Iterator> it, float factor) - importFlatMatrix(Object[][] blast, float factor) - Object[][] exportFlatMatrix()I started ChaosTree because I wanted to explore how far I could learn DS structure, It started as frst release of 7 tree of Set type with Custome API, As i got engrossed into it I moved to Map, During phase of switching from Set to Map there was drastic change and knowledge upgrade where I pushed my Tree limit from jdk11+ support to jdk21+ where paid close attention to dependency-free and memory layout, allocation,JVM behavior, and real-world performance.Some of the things I experimented with: - Different node layouts and metadata footprints - CRTP/F-bounded polymorphism for tree implementations - Parent-pointer vs parentless nodes - Array-based N-ary tree nodes - B-Tree/B+Tree degree selection - JMH benchmarking and JFR profiling - Differential/randomized testing against java.util.TreeMap/TreeSetAfter this rough and tough It also passes these test:-Guava Testlib compatibility testing -jqwik property-based testing -Randomized differential testing against reference collections -White-box structural validation of tree nodes -Direct validation of B-Tree/B+Tree structural invariants -Exception and iterator-contract testing -Serialization and cloning tests -Nary Tree uses custom jqwick test of API validation as well.Tail latency behavior is not shown here because it get's truncated into a simple text which made the dat read wrong:https://chaos-vy.github.io/ChaosTree/utils/JMH-Report.html I have also ran benchmark with official JDK TreeMapUpdate to my N-ary tree.GitHub: https://github.com/Chaos-vy/ChaosTree https://chaos-vy.github.io/ChaosTree/I'd especially like feedback on the API design, implementation choices, benchmark methodology. I am currently trying to truncate useless and complex branches for performnace tuning.
Enrichment
- Theme
- low-level systems and developer tools
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- tree data structure library for java developers
- Manually corrected
- False
Could you build this?
Yes Implementing classic self-balancing trees (AVL, Red-Black) and B/B+ trees in Java complying with standard collection interfaces is algorithmic textbook code that modern LLMs can write and test reliably.
Discussion
9 comments analyzed.
Concerns raised: Requiring JDK 21 limits adoption for older JDKs
Feature requests: JDK 11 support or backport, Intrusive variant of trees
Competitors
Other products that read as similar to this one — 24 launches clear the similarity bar, closest 8 shown.
Attention rank: #12 of 25 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 314 days after the earliest competitor.
- genpark-lsm-tree-sstable-compaction-skill · github · 2026-09-28 · 7 upvotes · similarity 0.38
- Combinators in Array Languages · hn · 2026-09-21 · 11 upvotes · similarity 0.36
- Coderive · hn · 2025-12-22 · 8 upvotes · similarity 0.35
- Shree AI OS · ph · 2026-09-22 · 2 upvotes · similarity 0.35
- TreeDataGridWeb · github · 2026-09-10 · 8 upvotes · similarity 0.35
- Algorithms and Data Structures in TypeScript · hn · 2026-03-13 · 65 upvotes · similarity 0.34
- genpark-r-tree-spatial-index-bounding-box-skill · github · 2026-09-10 · 7 upvotes · similarity 0.33
- Treenix. Typed runtime for humans and agents · hn · 2026-06-15 · 5 upvotes · similarity 0.33
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.