Library
Writing
Most of what I write is about the engineering behind Beyou, published on its docs site in English and Portuguese. Experiments of my own live here, and open as a book.
Latest
Counting with threads, from Java 8 to 27
Four threads add to one shared counter. I wrote that counter seven ways, ran it on every JDK from 8 to 27, measured it with JMH, and then moved it onto virtual threads. count++ loses updates on all of them, and the order of the safe counters never moved. Virtual threads changed the most, and synchronized got slower under heavy contention on 25 and 27.
Open the book 20 pages, about 23 min