~/talk

Growing the Java Language

Talkat JVM Language Summit 2025 · 2025-08-04..08-06· [java]
slides:none on file

Proposes adding Haskell‑style type classes to Java by treating ordinary interfaces as type‑level “type classes” and declaring witness fields and methods that the compiler uses in a compile‑time proof search to assemble required behavior. Prototype exists and reifies proof trees into constants via constantdynamic reification, so the VM can inline/intrinsify. Concrete targets: exact primitive widening, value‑type operator overloading, collection literals, and default creation expressions; resolution is deliberately local to named types to keep results well‑defined.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26User and language space
  3. 4:03Guy Steele's call to action
  4. 6:13Past examples of growability
  5. 8:40Planning for future growth
  6. 10:58Conversions for new types
  7. 13:14Operator overloading
  8. 14:39Collection literals
  9. 17:05Type system limitations
  10. 18:29Limitations of interfaces
  11. 22:02Type classes as a solution
  12. 27:12Comparator and witnesses
  13. 30:19Adding indirection
  14. 33:32Type class mechanics
  15. 37:53Well-defined resolution
  16. 42:25Witness resolution details
  17. 45:59Benefits of type classes
  18. 48:20Generics and type classes
  19. 50:29Implementing growth opportunities
  20. 53:45Operator overloading details
  21. 57:08Performance and JIT
  22. 58:31Creational expressions
  23. 1:02:06Conclusion and summary
  24. 1:04:33Q&A: JVM languages
  25. 1:10:48Q&A: Babylon project
  26. 1:11:08Q&A: Resolution details
  27. 1:12:47Q&A: Implicit conversions
  28. 1:15:59Q&A: API evolution
  29. 1:19:29Q&A: Interfaces vs classes
~/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.