Learning modern Java the playful way
summary
Demo project indexes 12 images with a multimodal encoder (Gina) into Elasticsearch and runs a working hybrid vector+text search combined by reciprocal rank fusion, returning related results (apple, plums, orange) from both text and 1K‑dim embeddings. Code examples show compact source files, records, JEP 511 module imports, mapConcurrent with virtual threads for parallel processing, and preview structured task scope to simplify cancellations (joins cancel peers). Vector API microbenchmarks on an Apple M1 show notable speedups for some kernels; a few demos need live fixes but ultimately run.
AI-written summary · about
chapters (13)
- 0:00Introduction and context
- 3:12Staying current with Java
- 5:37Compact source files
- 7:55Hybrid search demo
- 12:54Using records
- 14:30Module imports and simple IO
- 16:59Stream gatherers
- 21:16Structured concurrency
- 29:06Lazy constants
- 31:22Documentation and updates
- 35:25Pattern matching
- 36:52Vector API performance
- 42:33Final thoughts and feedback
