~/talk

Paths to New Numeric Types On the Java Platform

Talkat JavaOne 2026 · 2026-03-17..03-19· [java, machine-learning]
name:Joe Darcy
github:jddarcy
slides:none on file

Argues concrete paths: prototypes live in the Valhalla branch and a float16 incubator is implemented (a few thousand LOC plus ~1,000 regression tests) and shows a working JShell demo with platform intrinsics (Intel contributed). Explains operator overloading via type classes and witness objects that map operators to methods, but warns JVM bytecode has only ~50 bytecode slots free so adding each primitive like old double/float would not scale. Uses the 2p+2 property to implement float16 arithmetic and highlights FMA and string-rounding as tricky edge cases.

AI-written summary · about

  1. 0:00New numeric types in Java
  2. 1:45Adding more numeric types
  3. 3:52Project Valhalla’s role
  4. 7:40Types and numbers in Java
  5. 16:04Designing numeric types
  6. 17:28Numeric types for use cases
  7. 25:11Extensible numeric types
  8. 33:14Float16 implementation
  9. 40:18Modeling numeric types
  10. 48:26Summary and future work
~/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.