~/talk

Just in time Compilation Isn’t Magic

Talkat Devnexus 2024 · 2024-04-09..04-11· [compilers-and-language-design]
links:none on file
slides:none on file

Just-in-time compilation is explained with concrete thresholds and effects: warm runs go ~35,000 ns then C1 after ~70 iterations gives ~16,000 ns and a later C2 after ~15,000 invocations or 100,000 loop iterations hits ~5,500 ns; a stray global variable prevents dead-code elimination and turns a real workload into zero-time benchmarking. Tools named: javap, Java Flight Recorder, Java Microbenchmark Harness, JITWatch. Key techniques: intrinsics (~100), SSA and global value numbering, aggressive inlining (up to nine calls deep) that creates the real optimization opportunities.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Magic vs optimizing compilers
  3. 4:37What JIT compiles
  4. 11:03Constant folding basics
  5. 14:58Pattern matching limits
  6. 16:46Composing optimizations
  7. 19:12Constant propagation
  8. 21:23Intrinsics magic
  9. 24:40Code elimination
  10. 27:29Loop optimizations
  11. 32:10Static single assignment
  12. 38:58Volatile and synchronized
  13. 43:17Interprocedural optimization
  14. 48:00Optimization is hard
  15. 50:08Tools and measuring
  16. 50:32Q&A
~/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.