~/talk

What’s really going on under the hood? The hidden life of method calls.

slides:none on file

Walks through concrete mechanics: x64 Microsoft calling convention puts first arguments in RCX/RDX and return in RAX, large structs become implicit references and the compiler adds a hidden return buffer argument; instance methods get a hidden this and generics add a generic context hidden arg, variadic methods get a VAC cookie. Shows unsafe function‑pointer demos that prove these rewrites, explains tiered JIT (tier0 then background tier1 after ~30 calls), and measures interface dispatch: monomorphic ~25% slower, polymorphic ~80% slower (~1 ns per call).

AI-written summary · about

  1. 0:00Method calls complexity
  2. 1:26Functions and methods
  3. 2:30Assembly-level calls
  4. 4:58Calling conventions
  5. 7:27Caller vs callee registers
  6. 9:30Structs/classes in arguments
  7. 13:43Return values and buffers
  8. 16:16Hidden instance references
  9. 17:18Generics and hidden args
  10. 19:47Variadic functions safety
  11. 23:54Function pointer abuse
  12. 29:33Variadic functions deep dive
  13. 32:22JIT compilation
  14. 36:55Virtual calls
  15. 38:59Interface calls
  16. 43:13Inlining optimizations
  17. 45:03Stack frames
  18. 49:57Conclusion
~/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.