~/talk

Java Next - From Amber to Loom, from Panama to Valhalla

Talkat Jfokus 2022 · 2022-05-02..05-04· [java, compilers-and-language-design]
slides:none on file

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

  1. 0:00Start
  2. 14:59Vector API Properties: clear and concise API (given the requirements) • platform agnostic • reliable run-time compilation and performance * graceful degradation
  3. 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
  4. 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
  5. 40:49Synchronous Align application's unit of concurrency (request) with Java's unit of concurrency (thread)
  6. 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
  7. 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
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.