Suppose you've got a critical section of code, meaning only one process should execute it at a time. In the Java world, one solution is to slap synchronized on the method and call it a day. In Kotlin, we use @Synchronized to get the same effect: repeat(... (more…)
Read more »
A dual-purpose tutorial to 1) Demonstrate how to implement the Simple Query Protocol, where Java is an implementation detail; 2) Show practical examples of most of the new features since JDK 17, including Records, Sealed Types, Pattern Matching for Switch... (more…)
Read more »
picocli - Annotation-based Java command line parsing library. Usage help with ANSI colors. Autocomplete. Nested subcommands. Easily included as source to avoid adding dependencies. (more…)
Read more »
Concurrent applications, those serving multiple independent application actions simultaneously, are the bread and butter of Java server-side programming. The... (more…)
Read more »
The new JEP 434 has just seen daylight and describes the second preview of the ”Foreign Function & Memory API” (or FFM for short) which is going to be incorporated in the upcoming Java 20 release! In this article, we will take a closer look at some of... (more…)
Read more »