Operator Overloading with Type Classes [AtA] Inside Java Podcast 68
Java
0:00 / 0:00
Operator Overloading with Type Classes [AtA] Inside Java Podcast 68
19 718 просмотров · 2 недели назад
Java
274 тыс. подписчиков
19 718 просмотров · 2 недели назад
OpenJDK's Project Valhalla is improving Java's support for custom numerical types. That goes beyond value types and also encompasses explorations into operator support. While Java is extremely unlikely to ever allow arbitrary operator definitions, it may well support limited operator overloading, so custom value types could be added or multiplied with plus or multiplication signs instead of annoying method calls.
In this "Ask the Architects" episode of the Inside Java Podcast, recorded during JavaOne 2026, Nicolai Parlog talks to Joe Darcy, Valhalla committer in the Java Platform Group at Oracle.
"Ask the Architects" is our podcast show, where we talk to experts in OpenJDK about their work on the Java language, API, and runtime.
~~~ Links ~~~
JDK 28 EA (with value types): https://jdk.java.net/28
Joe's talk at JavaOne 2026: • Paths to New Numeric Types On the Java Pla...
Joe's talk about `strictfp` at JVMLS: • Forward to the Past: The Case for Uniforml...
JEP 306: Restore Always-Strict Floating-Point Semantics: https://openjdk.org/jeps/306
Make sure to check https://inside.java/podcast for more episodes and the • JavaOne 2026 playlist.
~~~ Chapters ~~~
0:00 Intro
1:25 What is a Number?
5:10 Type Classes
9:37 Groups and Other Math
13:14 Floating Point Numbers
16:35 Type Class Mechanics & Performance
26:07 Lumping vs Splitting Operations
33:28 Neutral Elements
35:54 Next Steps
Tags: #Java #OpenJDK #Valhalla #Arithmetik