~/talk

Reducers

Talkat EuroClojure 2012 · 2012-05-17..05-18· [functional-programming]
slides:none on file

Claim: make Clojure programs get faster on multi‑core machines by turning map/filter/mapcat into reduction transformers that implement a reducible protocol so collections drive reduction. Implementation uses reducers (reducer wrappers), reduce for single‑thread semantics, and fold (reduce + combine) to allow safe parallelism with a tunable partition size (default ~512). Map/filter/mapcat become collection‑ignorant, compose as reducer recipes, and demos show significant speedups versus lazy seqs while remaining compatible with sequential reduce.

AI-written summary · about

  1. 0:00Reducers introduction
  2. 3:20Functional programming history
  3. 8:41Reduce to reducers
  4. 13:58Mapping and filtering
  5. 20:15Collection-independent transforms
  6. 25:53Fold for parallelism
  7. 33:40Parallel foldable reducers
  8. 36:50Reducers performance demo
  9. 39:20Q&A on distribution
~/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.