~/talk

Generic Go to Go: Dictionary-Passing, Monomorphisation, and Hybrid

Talkat OOPSLA 2022 · 2022-12-05..12-10· [go, compilers-and-language-design]
links:none on file
links:none on file
name:Lynn High
links:none on file
slides:none on file

Proposes a new dictionary-passing translation for Go generics that is type-, error- and value-preserving and proven correct by a novel bisimulation up to dictionary resolution; implements it as dict and Eurasia and benchmarks five translators (Go 1.18, two monomorphisers, dict, erasure). Monomorphisation produces exponential code growth and very slow compilation; dict and erasure scale polynomially, yield smaller binaries on real programs but often slower execution than monomorphised output, and mono shows the worst compile-time cost.

AI-written summary · about

  1. 0:00Generic Go introduction
  2. 2:07Featherweight Go basics
  3. 5:38Dictionary passing overview
  4. 8:49Correctness proof
  5. 9:54Evaluation setup
  6. 13:29Benchmark results
  7. 13:50Conclusion
  8. 14:56Q&A: receiver subtyping
  9. 17:30Q&A: performance slowdowns
  10. 18:59Q&A: unsafe.Pointer for dicts
  11. 20:04Q&A: interface dicts vs performance
  12. 21:50Q&A: compiler optimizations
  13. 22:36Q&A: real-world generics
~/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.