~/talk

Generators Will Free Your Mind

Talkat PyData Berlin 2014 · 2014-07-25..07-27· [python]
slides:none on file

Claims that generators remove API-mode assumptions and avoid needless work with lazy streams. Demos show a 50-line meeting scheduler, a trading-query case where a list-returning API blows memory on millions of trades and a generator fixes it, and a Fibonacci example composed with itertools.islice and generator expressions to select values. Techniques include composing streams, co-routines send() for ordered callbacks, and a greedy coin algorithm built from chained generators. Notes caveat that generators can be slower but let slow parts be swapped for C extensions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:39Meet the speaker
  3. 6:15Programming as engineering
  4. 10:47Functional programming
  5. 17:24Generators and why they matter
  6. 22:18Generators free you
  7. 30:23Simplifying APIs
  8. 37:46Generators in practice
  9. 42:20Q&A
~/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.