Recent stories
Each story's summary, with the places it was discussed.
Summaries are written by AI from the linked sources. Open the source for full context.
Java sealed classes enable exhaustive pattern matching: the compiler can verify that a switch covers every permitted subtype without a default clause.
However, adding a subtype can break consumers at compile time, and if consumers are not recompiled, the new case may instead cause a runtime MatchException. Therefore, sealed types are safer within components compiled together but risky in public APIs, where extending them can break clients and may require a major version change.
Airbnb has open-sourced Skipper, an embedded workflow engine under the Apache 2.0 license.
Java and Kotlin services can define durable multi-step workflows as classes, persist state in their existing database, pause for signals or timers, and recover through checkpoints and deterministic replay without a separate orchestration cluster. The release includes MySQL and SQLite adapters, testing utilities, an admin UI, retries, compensation, workflow evolution, and Skipper State Machine; Postgres and DynamoDB support are planned.
Modern Java garbage collectors, like ZGC and G1, decouple pause times from CPU overhead, creating operational blind spots.
OpenJDK 26 introduces the MemoryMXBean.getTotalGcCpuTime() API and -Xlog:cpu to quantify explicit GC costs. This allows engineers to measure infrastructure efficiency and make informed decisions regarding the trade-offs between memory allocation and CPU consumption.
Cloudflare WAF helps mitigate Java4Shell (CVE-2026-114938), a critical OpenJDK Base64 decoder memory-corruption flaw enabling remote code execution on affected x86-64 systems with AVX-512 VBMI.
Cloudflare’s Managed Ruleset adds six paid-plan rules for malformed Base64 in HTTP headers, paths, queries, bodies, JWTs and WebAuthn values; they log by default and can be switched to Block after review. WAF Attack Score adds complementary detection. Organizations must still patch every Java runtime and restart services; JVM flags are temporary workarounds.
G1 is the default garbage collector in all environments from JDK 27, balancing throughput and latency through region-based, generational, mostly concurrent evacuation.
It divides the heap into uniform regions for eden, survivor, old, and humongous objects, then alternates Young-Only collections with Space-Reclamation mixed collections that prioritize old regions containing the most garbage. Use -XX:+UseG1GC only when needed on older JDKs; configuration trades throughput, latency, and memory footprint rather than delivering universally better performance.
This overview compares Java and Go, examining their origins, philosophies, and technical trade-offs.
While Go focuses on minimalism, architectural efficiency for cloud-native systems, and ease of onboarding, Java offers a robust ecosystem for complex enterprise domains and long-running performance. Choosing between them depends on team seniority, project scale, and operational requirements.
Whitespace checking is complicated because Unicode defines 25 whitespace characters, runtimes apply different rules, and the set can change over time.
Java excludes several non-breaking spaces, Python recognizes 29 characters, and JavaScript differs again. Guava checks Unicode whitespace efficiently with a 32-slot perfect hash table: multiplication and a bit shift select a slot, then a character comparison prevents false matches. Its multiplier was found among collision-free alternatives.
Netflix built Quasar, an internal tool that measures library-change blast radius by linking API diffs to exact symbol references across consumer repositories.
It uses SCIP indexes to retain API definitions, references, dependency versions, and source locations, then compares commits and queries impact through Amazon Athena. Quasar supports usage analysis across JVM, Go, Python, JavaScript/TypeScript, and Rust; JVM compatibility and Protobuf tracing have narrower scope. Reports expose affected repositories, versions, call sites, and evidence quality, helping producers plan releases and migrations before merging.
Java4Shell exposed a vulnerability in the JVM’s handwritten assembly intrinsic for Base64 encoding; deployments should temporarily add `-XX:-UseBASE64Intrinsics` and upgrade to a patched VM.
The incident illustrates the risk of native code and shared dependencies, but the author argues Java’s memory safety and restricted native access reduce exposure compared with ecosystems where dependencies can freely include native code. JVM JIT compilation also delivers near-native performance, so most Java programs need no native extensions; Kotlin and others benefit similarly.
While refactoring Minecraft mod build tooling, the author created jardiff, a semantic comparison tool that normalizes JSON, disassembles class files, recursively inspects archives, and applies Myers diff.
Keeping its source in the editor enables immediate, domain-specific customization—such as ignoring class-version changes—without anticipating configuration flags or DSLs. Packaging it as a binary would freeze that flexibility.
JDK 28 will be the Reference Implementation of Java SE Platform version 28 under JSR 403.
Its main line accepts bug fixes, small enhancements, and JEPs, while GPL-licensed early-access binaries are available. Ten JEPs are currently targeted, covering Value Objects, generational Shenandoah GC, strict field initialization, a Simple JSON API, cryptographic PEM encodings, Structured Concurrency, Ahead-of-Time Code Compilation, ZGC startup and warmup, adaptive heap sizing, and macOS/x64 port deprecation.
Annote is an experimental and satirical project that transforms Java annotations into a fully functional, interpreted programming language.
While annotations were originally designed for metadata, this project utilizes reflection to execute logic defined entirely within annotation parameters, including variables, loops, conditionals, and arithmetic. The framework uses a shunting-yard algorithm for expression parsing and a stack-based approach for block management. Despite its 'cursed' nature, Annote supports advanced features like recursion, state management through class-level fields, and custom exception handling via specific annotations. It serves as a humorous yet technical exploration of the limits of the Java Reflection API and the annotation system, intentionally disregarding traditional best practices in favor of metadata-driven execution.