~/talk

Lambda: A Peek Under The Hood

Talkat JAX London 2012 · 2012-10-16..10-17· [java, compilers-and-language-design]
slides:none on file

Describes how Java 8 implements lambdas by emitting a recipe at compile time and using invokedynamic plus the LambdaMetafactory at runtime to choose strategies (runtime-generated class, wrapper, or method-handle proxy). Non‑capturing lambdas get cached and show ~4× single‑thread and ~20× multi‑thread throughput improvements; capturing lambdas have capture costs comparable to inner classes (~160 instances/µs on a test server). Serialization records the recipe and reconstitutes lambdas across VMs.

AI-written summary · about

  1. 0:00Introduction to Lambda
  2. 4:26Why Java needed lambdas
  3. 7:11Lambda representation challenges
  4. 13:29Inner classes vs method handles
  5. 20:28InvokeDynamic for flexibility
  6. 27:29Lambda implementation with InvokeDynamic
  7. 35:10Lambda performance and optimizations
  8. 41:32Future VM optimizations
  9. 46:03Serialization challenges
  10. 49:08Summary and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.