~/talk

Functional C++

Talkat Build Stuff 2016 · 2016-11-16..11-18· [c-and-cpp, functional-programming]
slides:none on file

Argues that applying functional techniques to modern C++ yields clearer, safer, testable code without losing runtime performance: uses std::function and lambdas, const qualifiers, rvalue references and move semantics for zero-copy value semantics, and selective caching to fix perf hotspots. Demonstrates channels built from mutex/condition_variable, futures/async, a pipes-and-filters FizzBuzz and Friday-13 generator, and an actor-style phonebook; warns that naive shared_ptr chains cause recursive destructors (stack overflow for thousands of nodes) and recommends persistent data structures and channels and actors for scalable concurrency.

AI-written summary · about

  1. 0:00Introduction to functional C++
  2. 7:10Functional abstraction with lambdas
  3. 16:16Pure functions and referential transparency
  4. 24:40Immutable data structures in C++
  5. 37:21Concurrency and functional programming
  6. 45:51Channels and actor model
  7. 1:00:34Conclusion 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.