~/talk

The Hidden Dynamic Life of Java

Talkat Voxxed Days Zürich 2024 · on Thursday, 2024-03-07· [java, compilers-and-language-design]
links:none on file
slides:none on file

Java increasingly emits invokedynamic into class files so decisions happen at runtime instead of compile time. Examples: string concatenation emits a bootstrap call that links a faster concat implementation for two object operands, pattern matching for switch builds a runtime chain that returns an int jump index, and lambdas use a bootstrap method to produce a method handle and act as a lambda factory that generates the functional instance on first use.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52JVM’s original design
  3. 3:20Dynamic languages on JVM
  4. 5:29How invokeDynamic works
  5. 9:48Java compiler and invokeDynamic
  6. 10:09String concatenation with invokeDynamic
  7. 12:20Pattern matching in switch
  8. 13:46Lambdas and invokeDynamic
  9. 15:59Runtime decisions benefits
  10. 17:25Further reading
~/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.