~/talk

What to expect from project Valhalla

Talkat jPrime 2024 · 2024-05-28..05-29· [java]
links:none on file
slides:none on file

Project Valhalla adds value classes to Java: classes without identity that the JVM may flatten into packed arrays for much better locality and less GC. A prototype and a Mark Hofmann sandbox are available (build with enable-preview), and microbenchmarks on 100M-point loops show speedups typically around 2x, sometimes 10x and occasionally much larger in idealized cases; one current build has a flattening bug. Key tradeoffs: no per-instance synchronization, null-restricted types (bang syntax), zero-default opt-in, and unresolved generics/specialization.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:47Overview of Java projects including Valhalla
  3. 2:51Primitive vs reference types in Java
  4. 5:20Performance benefits of value types
  5. 9:34Motivations behind Project Valhalla
  6. 9:58Value classes and their properties
  7. 12:50Equality comparison in value types
  8. 15:58Value type construction and storage
  9. 17:24Polymorphic equals for value types
  10. 19:52Candidates for value classes
  11. 22:01Technical differences between class types
  12. 25:33Construction sequence for value classes
  13. 27:39Null handling in value types
  14. 30:10Null restrictions and array handling
  15. 33:19Circularity and flattening limitations
  16. 34:23Default initialization of value types
  17. 36:07Atomic updates and performance guarantees
  18. 37:53Migration strategy and generics challenges
  19. 40:45Universal vs specialized generics
  20. 41:50Historical evolution of Valhalla
  21. 42:31Building and experimenting with Valhalla
  22. 43:35Benchmarking value types with Brownian motion
  23. 45:42Performance analysis and JIT optimizations
  24. 46:26Timeline and future of Valhalla
  25. 47:31Q&A and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.