Java Next - From Amber to Loom, from Panama to Valhalla
summary
Amber shows a concrete proposal for string templates with pluggable template policies that can return parsed SQL or JSON objects (preview aimed at JDK 19/20). Panama delivers a Vector API for SIMD and a foreign memory and function API (FFM preview in JDK 19) for safer off‑heap access and JNI replacement. Valhalla promises value types and primitive classes plus universal/specialized generics to remove boxing. Loom provides virtual threads (create millions cheaply via carrier threads) and enables structured concurrency.
AI-written summary · about
chapters (7)
- 0:00Start
- 14:59Vector API Properties: clear and concise API (given the requirements) • platform agnostic • reliable run-time compilation and performance * graceful degradation
- 30:49Project Valhalla Value and primitive types plus universal and specialized generics: fewer trade-offs between design and performance . no more manual specializations better performance • can express design more clearly
- 34:27Continuous Improvements Performance dynamic CDS archives (JEP 350) • default CDS archives 2 (JEP 341) . continuous improvements in all garbage collectors Security context specific deserialization filters (JEP 415) • Edwards-Curve Digital Signature Algorithm (JEP 339) • ongoing enhancements Sean Mullan's blog
- 40:49Synchronous Align application's unit of concurrency (request) with Java's unit of concurrency (thread)
- 44:41Virtual Thread Example Remember the hypothetical request 1. interpret request 2. query database (blocks) 3. process data for response In a virtual thread: • runtime submits task to carrier thread pool
- 48:57Structured Concurrency Structured programming • prescribes single entry point and clearly defined exit points • influenced languages and runtimes Simlarly, structured concurrency prescribes: When the flow of execution splits into multiple concurrent Nows, they rejoin in the some code block
related talks
46mJava Next - From Amber to Loom, from Panama to Valhalla
45mJava Next - from Amber to Loom, from Panama to Valhalla
47mJava Next - From Amber to Loom, from Panama to Valhalla
50mJava Next - From Amber to Loom, from Panama to Valhalla
57mJava Next - From Amber to Valhalla, from Loom to Leyden, from Babylon to Panama
01h 00mAmber, Loom, Valhalla
42mJava, Today and Tomorrow
21mJVM Language Summit 2023 Keynote
