Hacker News new | ask | show | jobs
by chaos_vy 83 days ago
It uses sealed classes, JDK21 SequencedSet and SequencedMap implementation, Math.clamp(), and get benifit from modern JIT optimization.
1 comments

That not much to jump all the way to jdk21.

Math.clamp is literally 2 / 3 lines.

The Tree Supports JEP431(Sequenced Collection) and my whole node structure is based on pattern match and sealed classes.