~/talk

What happens to your code when you don't look?

Talkat Heapcon 2024 · 2024-11-07..11-08· [compilers-and-language-design]
links:none on file
slides:none on file

Shows that HotSpot’s C1/C2 JIT and Rust/GCC-style AOT compilers actually reorder and replace code: using Compiler Explorer and JITWatch reveals a virtual call that becomes inlined when polymorphism drops from three implementations to two, escape analysis that eliminates heap allocations so GC allocations fall to near zero and a benchmark speeds up roughly 5x, and perf counters that expose cache-line and branch-prediction penalties when accessing shuffled arrays. Tools: Compiler Explorer, JITWatch, perf.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:31How compilers transform code
  3. 8:57JIT optimizations in Java
  4. 13:40Escape analysis and heap allocation
  5. 20:50CPU cache effects on performance
  6. 27:18Branch prediction in modern CPUs
  7. 31:12Compiler optimizations and correctness
  8. 33:22Summary and closing remarks
~/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.