~/talk

Revisiting Dynamic Dispatch for Modern Architectures

Talkat VMIL 2023 · on Monday, 2023-10-23· [compilers-and-language-design]
links:none on file
slides:none on file

Proposes a flat dispatch hash table per class that stores compiled code pointers for every selector actually sent to that class, compiling a found method for the target class on first miss so future dispatches go direct. Collisions go to a lightweight disambiguator and tables grow by rehashing; updates use compare-and-swap so no global locks on multicore. Trades memory for speed, aims for performance near static vtable dispatch while enabling aggressive inlining and larger compilation units for better optimization.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Why revisit now
  3. 2:40Inline caching challenges
  4. 3:23Smalltalk message dispatch
  5. 5:33Control structure optimizations
  6. 8:08Global and inline caching
  7. 9:14Java vs Smalltalk dispatch
  8. 11:04Flat dispatch for Smalltalk
  9. 13:09On-demand method compiling
  10. 14:57Hash collision handling
  11. 15:42Aggressive inlining
  12. 17:06Code generation in Zag Smalltalk
  13. 17:47Conclusions and future
  14. 18:33Q&A
~/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.