ls lib/java/
Java
OpenJDK's collections and sorts.
- draft How Java's HashMap works: buckets, treeification and hash spreadingWhat OpenJDK 27's HashMap does with a key: a power-of-two array of buckets, one XOR to spread the hash, chains that turn into red-black trees past eight nodes, doubling that keeps chain order, and why a map of Integer keys iterates in the same order on every run.
- draft Why Java sorts ints and objects differentlyArrays.sort(int[]) runs a dual-pivot quicksort with insertion-sort, run-merging and heap-sort fallbacks, while Arrays.sort(Object[]) and List.sort run TimSort: what each does in OpenJDK 27, why stability decides which one you get, and what the difference costs.