Valhalla is coming
summary
Project Valhalla adds inline classes and specialized generics to Java, removing object identity to cut allocation and indirection overhead and enable arrays-of-values. Migration uses generated reference projection types (.ref/.val) so old bytecode keeps working while code can be rewritten for performance. Inline instances throw no monitors (synchronization illegal), boxing becomes a well‑defined value→reference conversion, and lambdas are being migrated to value representations with experiments showing no slowdowns so far. Field‑layout rewrites landed (JDK 15) to unlock real memory/CPU wins.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 3:37Project Valhalla goals
- 7:57Valhalla timeline and release plans
- 8:39Theoretical challenges of identity
- 25:43Inline types implementation
- 36:06Inline type hierarchy and constraints
- 49:37Reference projections and conversions
- 51:40Default values for inline types
- 52:21Performance and memory optimization
- 1:03:45Primitive types and Valhalla
- 1:10:02Q&A and discussion
