~/talk

The Miracle of Generators

Talkat GOTO Chicago 2016 · 2016-05-23..05-26· [javascript]
github:ttbodil
slides:none on file

Explains how ES2015 generator functions and the iterator protocol produce lazy infinite streams (example: an infinity generator) and how yield is bidirectional so a generator can receive values back. Builds a small run(iterator) driver that awaits Promises and returns a Promise of the final result, demonstrates fetching a text file with fetch(). Shows a generalized fetch-as-generator helper, composes take/map over infinite iterables, and integrates a Maybe-like wrapper to avoid undefined — the demos run successfully.

AI-written summary · about

  1. 0:00Start
  2. 0:12Javascript
  3. 3:12Iterators
  4. 29:25Xml Http Request
~/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.