Learning Modern Java the Playful Way
summary
A runnable image-search demo encodes images and captions with a multi‑modal model (Gina) into Elasticsearch with 1,000‑dim embeddings and a 12‑document catalog, then combines vector and filename text results using reciprocal rank fusion; modern Java refactors include records, compact source files, IO.readLine, stream gatherers for concurrent pipelines, structured concurrency with virtual threads to auto‑cancel and avoid leaks, lazy constants, and the Panama Vector API which shows roughly 2x speedups in tight numeric ops; demos mostly work with minor hiccups.
AI-written summary · about
chapters (15)
- 0:00Introduction and speakers
- 4:43Compact source files in Java 25
- 7:14Demo setup and hybrid search
- 11:07Using records for cleaner code
- 12:33Module imports in Java 25
- 13:59Simplified IO with Java 25
- 15:22Stream gatherers in Java 24
- 20:19Structured concurrency in Java 26
- 27:20Lazy constants in Java 26
- 29:48Documentation with AI and markdown
- 31:34Updating dependencies and Elasticsearch client
- 33:59Pattern matching with primitive types
- 35:04Vector API and Project Panama
- 40:20Benefits of latest Java versions
- 41:22Summary and Q&A
related talks
45mLearning modern Java the playful way
52mLearning modern Java the playful way
46mLearning modern Java the playful way
59mLearning modern Java the playful way
43mLearning modern Java the playful way
29mUnleashing the Power of Vector Search and Semantic Caching in Java
52mModern Java in Action
52mAI for Java Developers - From Buzzword to Code
