Iterators in Go 1.23: how to use them and how fast are they?
summary
The talk explains the new iterator feature added in Go 1.23 (called range over funcs), shows how to use these iterators in Go code, and examines why they were added to the language. It presents benchmarks comparing iterator performance to channels and discusses where iterators can be useful and what motivated their inclusion.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:32What are Go iterators
- 7:39Why use iterators
- 13:37Iterator performance
- 21:02Special use cases
- 28:06Errors and resources
- 33:03Iterator pools and pipelines
- 39:06Future of Go iterators
- 44:05Q&A
related talks
53mIterators in Go 1.23: how to use them and how fast are they?
29mThe Why of Iterator Design
21mThe Loop War: Iterators vs. Traditional Loop
46mGoing Loopy: Iteration in Go
40mSqueezing Maximum Performance Out of Go
01h 05mGenerics, Reflection, and Efficient Collections
21mFunctional Go?
28mIdiomatic Go Tricks
