~/talk

Building an Intuition for Composition

Talkat CppCon 2020 · 2020-09-14..09-18· [functional-programming]
name:Sy Brand
slides:none on file

Shows how to spot and expose concrete composition patterns in C++ so APIs do real work: uses std::accumulate / std::reduce and fold expressions to explain identity elements and how non‑associative minus produces different parallel results (sequential -53 vs parallel -23), builds composable orderings (lexicographic order_by), demonstrates ranges::views::transform for optionals and futures plus join/bind to avoid nested optionals, sketches parser combinators, converts sync code to async with coroutines, and maps static exceptions to an expected/either style.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:00Monoids and accumulation
  3. 10:04Monoid examples in C++
  4. 16:38Functors and transformation
  5. 21:55Monads and composition
  6. 31:10Advanced monadic patterns
  7. 40:17Conclusion and Q&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.