~/talk

Enumberable's Ugly Cousin

Talkat Ancient City Ruby 2016 · 2016-04-06..04-08· [ruby]
slides:none on file

Explains that Enumerator wraps method calls and can be reimplemented to_enum with Fiber to provide external iteration like next, demonstrates turning Ruby methods into generator-like enumerators for paginated APIs and web crawlers, shows how to produce infinite sequences and use the built-in lazy enumerator pipeline to avoid eager evaluation, and describes building montrose, a recurrence gem that yields recurring timestamps on demand and works in production for generating endless event sequences without blowing memory.

AI-written summary · about

  1. 0:00Start
  2. 7:56Replace Nested Loop
  3. 20:22Recap
  4. 23:08Binary Tree
  5. 24:15Infinite Sequences
  6. 24:50Iterate Function
  7. 26:41Eager and Lazy
  8. 27:34Recurrence Recurring Events
~/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.