~/talk

Building an Intuition for Composition

Talkat Meeting C++ 2020 · 2020-11-12..11-14· [frontend-architecture]
name:Sy Brand
slides:none on file

Explains how concrete C++ features let composition be explicit: uses std::accumulate/std::reduce and fold expressions to show folds and parallelism (demonstrates nonassociative minus giving -53 vs -23), builds a map‑merger word‑count monoid for distributed reduce, composes orderings with operator|, treats std::optional and std::future as functors, introduces bind/and_then for joins, shows coroutines for async and a static‑exceptions/expected style for error propagation, and argues exposing monoid/functor/monad APIs yields clearer, parallelizable code.

AI-written summary · about

  1. 0:00Start
  2. 6:59Fold expressions
  3. 41:37Monad Laws
  4. 46:43Static Exceptions
~/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.