~/talk

Go deeper

Talkat GolangConf 2022 · 2022-05-13..05-14· [go, compilers-and-language-design]
slides:none on file

Shows exactly how Go source becomes Go assembler and machine behavior: parameters and returns move into AX/BX/CX on register-based calling (changed around Go 1.17), small structs and scalars are passed in registers, and inlining removes many calls; closures are compiled as a two-word-like context (function pointer plus captured-data) passed via DX closure pointer; defer is open-coded with per-version optimizations (notably faster since ~1.4 and redesigned around 1.11–1.17), stack-split checks and Go assembler (internal) listings are used to inspect and verify these transformations.

AI-written summary · about

  1. 0:00Introduction to Go deeper
  2. 1:09Understanding Go assembly basics
  3. 3:56Function compilation in Go
  4. 9:54Parameter passing in Go
  5. 15:18Anonymous functions and closures
  6. 20:33Variable capture in closures
  7. 26:25Defer implementation in Go
  8. 31:40Defer optimization impact
  9. 33:05Practical use of Go assembly
  10. 33:50Q&A session
~/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.