~/talk

What's Behind Generics in Go

TalkinRussianat GolangConf 2023 · 2023-11-27..11-28· [go]
links:none on file
slides:none on file

Explains the design and implementation choices behind Go generics: why Go uses the [T any] syntax, how Go generics differ from other languages’ generics, and internal concepts like “gc shape” that underpin their behavior and performance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:27Speaker intro
  3. 1:11What is polymorphism
  4. 3:14Polymorphic types
  5. 4:45Parametric polymorphism
  6. 6:29Ad-hoc polymorphism in Go
  7. 7:11Boxing in Go 1.18
  8. 8:16Monomorphization in Go
  9. 9:39GCShape concept
  10. 12:05Non-monomorphic functions
  11. 14:13Performance impact of GCShape
  12. 15:37Generic vs interface benchmarks
  13. 17:02Generics hype
  14. 18:04Q&A: Monomorphization
  15. 19:27Q&A: Pointer types
  16. 20:31Q&A: Comparable types
  17. 22:20Q&A: VS Code example
  18. 23:03Q&A: Go generics future
  19. 24:47Q&A: Why Go for theory
  20. 26:11Q&A: Comparable types deep dive
  21. 26:54Q&A: Generics development
  22. 27:15Closing
~/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.