~/talk

Tug-of-Code: The battle for efficient iteration in Go

Talkat GoLab 2025 · 2025-10-05..10-07· [go]
name:Alex Rios
links:none on file
slides:none on file

Explains how Go now lets code range over function with exactly three allowed function signatures and shows concrete APIs: a generic sec type (one-value) and a two-value seek two variant, plus push vs pull iterator patterns and when to prefer each. Presents a simple gen10 example, adapter use cases (zip, map, chain) and a public benchmark iterating 100k items that drops memory from ~3 MB to under 1 MB. Warns about extra allocations, chaining costs, and recommends benchmarking.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:10Why iterators matter in Go
  3. 3:38Iteration recap in Go
  4. 7:56Range over functions explained
  5. 10:05Implementing range over functions
  6. 13:21Naming the sequence type
  7. 14:47Seek two for key-value pairs
  8. 15:51Understanding yield in iterators
  9. 17:59Push vs pull iteration models
  10. 21:36When to use pull iterators
  11. 22:41Iterators in standard library
  12. 24:06Performance benefits of iterators
  13. 25:32Iterators performance caveats
  14. 26:37Anti-patterns to avoid
  15. 27:40Final thoughts on iterators
  16. 29:50Go's simplicity vs complexity
  17. 30:32Q&A session begins
~/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.