frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://github.com/Chaos-vy/ChaosTree
2•chaos_vy•46m ago
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+Tree

I 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/TreeSet

After 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.

Comments

MiroslavPokorny•28m ago
Does this really need to be JDK 21 ?

I personally require libs that are JDK 11.

chaos_vy•4m ago
It uses sealed classes, JDK21 SequencedSet and SequencedMap implementation, Math.clamp(), and get benifit from modern JIT optimization.

Nexus – Automating Lead Qualification via AI and Social Extraction

https://nexus-hit.netlify.app
1•HarroGoerndt•17s ago•0 comments

Ask HN: How much correlation should a privacy system preserve?

1•Securelytixdev•3m ago•0 comments

GreenNeural – Real‑time carbon intensity for cloud regions (AWS, Azure, GCP)

https://greenneural.up.railway.app/
1•Joshblvck•6m ago•0 comments

Who Aligns the Aligners?

https://prestonbyrne.com/2026/09/13/aligners/
2•timr•8m ago•0 comments

Doctor Doom Shows Up to Support Seattle's Surveillance Network

https://gizmodo.com/doctor-doom-shows-up-to-support-seattles-surveillance-network-2000809919
1•rdmuser•10m ago•0 comments

Mary Beard: 'There is a deeply far-right appropriation of the classics'

https://english.elpais.com/culture/2026-07-05/mary-beard-historian-there-is-a-deeply-far-right-ap...
1•robtherobber•15m ago•0 comments

Hello, how you guys doing

2•vanshsoni0027•15m ago•2 comments

Israel accused of eliminating living conditions for Palestinians in West Bank

https://www.theguardian.com/world/ng-interactive/2026/sep/14/israel-palestinian-living-conditions...
6•hebelehubele•17m ago•1 comments

A lesson in lighting through blade runner

https://nofilmschool.com/2013/07/a-lesson-in-lighting-through-blade-runner
1•srean•17m ago•0 comments

Free Polymarket whale tracker (client-side, $0 to run)

https://polymarket-whale-cockpit.pages.dev/
1•RedFoxxie•20m ago•0 comments

Big AI sets out its terms for regulatory capture

https://www.theregister.com/ai-and-ml/2026/09/14/big-ai-sets-out-its-terms-for-regulatory-capture...
3•joebuckwilliams•21m ago•0 comments

We tasted and ranked 17 different Mango varieties to find the best one

https://aakritwrites.com/best-mango-variety/
1•aakritpatel•21m ago•0 comments

What is an agent harness really?

https://tej.as/blog/what-is-an-agent-harness
1•tejaskumar_•23m ago•0 comments

The Index Structures of Fast C++ Hash Maps

https://martin.ankerl.com/2026/09/09/hash-map-index-structures/
1•wscott•23m ago•0 comments

How Is Compression Prediction?

https://lukefleed.xyz/posts/compression/
3•aziis98•27m ago•0 comments

The "Nonexistent" Research on AI's Benefits for Education

https://www.insidehighered.com/news/tech-innovation/artificial-intelligence/2026/09/14/nonexisten...
1•furcyd•37m ago•0 comments

Pragtical 3.12 Adds an Opt-In SDL GPU Back End to a 50MB Code Editor

https://news.lavx.hu/article/pragtical-3-12-adds-an-opt-in-sdl-gpu-backend-to-a-50mb-code-editor
1•rd07•37m ago•0 comments

Show HN: Busy Door

https://joaquimrocha.com/busy-pixoo/
1•kimr•38m ago•0 comments

The Whitest Page on the Internet

https://hakluke.com/white
1•federico3i•38m ago•0 comments

Companies are making education policy

https://www.thehomescreen.org/p/companies-are-making-education-policy
1•flail•39m ago•0 comments

An Archive of Colour Gradients

https://phillips.shef.ac.uk/pub/cpt-city/
2•ashitlerferad•41m ago•0 comments

Are They Using AI?

https://aretheyusingai.vercel.app
1•blurayfin•45m ago•0 comments

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

https://github.com/Chaos-vy/ChaosTree
2•chaos_vy•46m ago•2 comments

CUDA Tile (cuTile) first working port in Java

https://github.com/beehive-lab/TornadoVM/pull/1083
1•birdculture•47m ago•0 comments

Rvvts – The RISC-V Vector Test Framework (V2)

https://github.com/ics-jku/RVVTS
1•fork-bomber•48m ago•0 comments

A Man Archiving Pirate Radio Station Kool FM

https://londonist.com/london/music/kool-fm-archives
2•rdmuser•48m ago•0 comments

Viète's Formula

https://en.wikipedia.org/wiki/Viète%27s_formula
1•vismit2000•49m ago•0 comments

Automated Capacity Testing for Kafka Consumers

https://medium.com/booking-com-development/how-we-built-automated-capacity-testing-for-kafka-cons...
1•theykk•50m ago•0 comments

XCancel service is suspended (again)

https://xcancel.com/x
2•shelfchair•50m ago•0 comments

Suno Genre Wheel

https://suno.com/labs/genre-wheel
1•hakkikonu•53m ago•0 comments