~/talk

Value Objects - The Next Big Thing in Java

Talkat JCON EUROPE 2025 · 2025-05-12..05-15· [java]
slides:none on file

Explains that Project Valhalla brings value classes that behave like primitives but support methods and interfaces, showing memory math: a Point object costs ~24 bytes versus two primitive ints at 8 bytes and a Valhalla-inlined Point around 8–12 bytes, claiming up to ~50% memory savings in examples with 10 points. Covers JEPs 181, 309, 334, 390, drafts 401 and 402 for null-restricted types and enhanced primitive boxing, demos via the Valhalla OpenJDK build and online JShell sandbox, prototypes work but final semantics and release timing remain unresolved.

AI-written summary · about

  1. 0:00Introduction
  2. 2:58Project Valhalla goals
  3. 7:00Primitives vs. objects
  4. 9:50Memory consumption analysis
  5. 18:16Understanding value objects
  6. 20:42Value objects benefits
  7. 25:13Null-restricted types
  8. 31:49Null-restricted value types
  9. 33:20Enhanced primitive boxing
  10. 36:51Summary and future outlook
  11. 43:04Resources and conclusion
~/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.