Topic
Everything filed under Java, newest first.
RSS · JSON · All topics
A short explainer of the 'I can't believe it can sort' algorithm from Stanley P. Y. Fung's paper: a deceptively simple O(n^2) nested-loop swap sort, with pseudocode and a Java implementation.
1 min · 256 words
Building Java ME Apps with Modern Tooling
ROllerozxa walks through building Java ME (J2ME) apps for old feature phones with modern tooling: OpenJDK 8, MicroEmulator stub JARs for the CLDC 1.1 and MIDP 2.0 APIs, compiling with javac, packaging the JAR, preverifying with ProGuard, getting it onto a phone, and the platform's limitations.
7 min · 1,668 words
Java's new AOT cache feature is in a rough state
Christopher Schnick of XPipe details the pitfalls of shipping the JDK's new ahead-of-time (AOT) cache in a real desktop application distributed to users: how training runs and cache creation work, conditions under which the cache is silently ignored, JVM crashes caused by CPU feature mismatches between build and user machines, and the build scripts XPipe now uses to roll it out safely.
22 min · 5,011 words
Paul Tyma remembers his 30-year friendship with tech writer and broadcaster Bob Cringely, from a 1996 phone call praising his Java book that led to building the Pronto magazine-delivery system, through years of startup-idea emails, a visit to Sun Microsystems over a C# column, and a VH1 geek interview, reflecting that Cringely's true gift was on camera.
7 min · 1,668 words
Spring AI Modular RAG and TypeSafe Jev: Retrieve More, Keep Only What Answers
Christian Tzolov walks through Spring AI modular RAG plus TypeSafe Jev: rewrite/expand the query before retrieval, then keep only chunks that actually answer—contrasting naive QuestionAnswerAdvisor RAG with a live demo pipeline.
6 min · 1,487 words
Eddie Aftandilian ships SafeRE 1.0, a linear-time Java regex library built with agents: differential testing vs the JDK, ReDoS resistance by construction, and performance that now beats JDK and RE2/J on Rebar workloads.
5 min · 1,062 words
Java sealed classes and exhaustive pattern matching
Neil Madden explains that exhaustive switch pattern matching over Java sealed types makes adding a new subtype a breaking change, and that consumers which aren't recompiled only fail at runtime. He argues sealed types used across module or API boundaries can introduce new ways to break code, citing the PEM-encoding JEP preview.
3 min · 642 words
Full Haskell-like Type Class resolution in Java
Gabriel Garcia re-implements Haskell-style type classes in pure Java: using reflection and generics to parse static types, unify them, and automatically resolve instance witnesses, then extends the approach to higher-kinded types, context instances and overlapping instances, with worked examples like Show, Monoid, Traversable and Monad.
32 min · 7,285 words