Skip to content
0:00 / 0:00

#projectvalhalla#valueclasses#jvm

Valhalla - Where Are We? #JVMLS

Java

276K subscribers • 15 videos on Hallway

YouTube
  • Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.
  • Presented by Brian Goetz, Java Language Architect
  • Made by the vendor. The company whose product it covers made or sponsored it.

Advanced. Deep dive for people who know the field.

33K views2 years ago2 recommendations

Systems programmingProgramming languagesJava and the JVMCompilers and interpretersPerformance and optimization

Brian Goetz explains the design and current state of Project Valhalla, focusing on value classes, null-restricted types, and memory layout optimizations.

Presented by *Brian Goetz* - Java Language Architect (Java Platform Group - Oracle) during the *JVM* *Language* *Summit* (August 2024 - Santa Clara, CA). _*Project Valhalla* wants to heal the rift in #Java's type system between classes and primitives by introducing value classes, which "code like a class, work like an int" and offer a flat and dense memory layout. Java's epic refactor, as it has been dubbed, has been going on for 10 years but is now entering the home stretch. At #JVMLS 2024, Java Language Architect Brian Goetz explained the proposed solution: value classes (already available in an EA build), null-restricted types, beefed up definite assignment analysis, and strict initialization._ *Chapters* Executive Summary Brief History Value Classes ⟪~⟫ Object Identity Null-Restricted Types ⟪~⟫ Nullability Strict Initialization The Cascade of Simplification Serialization Flattening & Tearing Values Mopping up Make sure to check the youtube.com/playlist?list=PLX8CzqL3ArzUEYnTa6KYORRbP3nhsK0L1 playlist. *Resources* • Project Valhalla ➤ openjdk.org/projects/valhalla/ • Value Classes and Objects (Preview) ➤ openjdk.org/jeps/401 • Valhalla Early-Access Builds Implementing Value Classes and Objects ➤ jdk.java.net/valhalla/ • Enhanced Primitive Boxing (Preview) ➤ openjdk.org/jeps/402 • Draft JEP - Null-Restricted Value Class Types (Preview) ➤ bugs.openjdk.org/browse/JDK-8316779 • Draft JEP - Null-Restricted and Nullable Types (Preview) ➤ bugs.openjdk.org/browse/JDK-8303099 • The Saga of the Parametric VM ➤ cr.openjdk.org/~jrose/values/parametric-vm.pdf • OpenJDK ➤ openjdk.org • Inside Java ➤ inside.java/tag/valhalla • Dev.Java ➤ dev.java • JVMLS ➤ openjdk.org/projects/mlvm/jvmlangsummit/ *Tags:* #OpenJDK #Valhalla #Performance

Why it's here

2 people recommend this

What people say. Recommended as the definitive update on the design and implementation progress of Project Valhalla.

u/Ethesenin r/scala • Recommends

On “Updates About Project Leyden, Loom, and Valhalla”

A video from the JVM Language Summit talking about the state of Valhalla has now been published: link to this video

williewilluson Lobsters • Recommends

Valhalla - Where Are We? (JVMLS 2024) A summary of the state of the long-running Valhalla project to give Java value types. It seems the design has coalesced enough to start releasing early implementations to users to try.