~/talk

Practical Functional Programming in C++

Talkat CppCon 2014 · on Tuesday, 2014-09-09· at 09:00· Pascal· [c-and-cpp, software-architecture]
slides:none on file

Argues that functional techniques are practical in modern C++ by showing actual code: uses std::function and C++11 lambdas to store callbacks in a MUD‑style trigger list, composes callables with std::bind and placeholders to reorder and fix arguments, implements an asio echo server with nested lambdas, and builds async pipelines with futures, .then continuation chaining, when_all and a parallel transform_reduce (and mentions HPX and C++ AMP kernels). Examples compile and run, expose lifetime pitfalls (dangling refs, move-only captures) and debugging limits.

AI-written summary · about

  1. 0:00Start
  2. 0:49Introduction
  3. 3:32Overview
  4. 4:53The Callable Concept
  5. 7:29The Joys of Function Pointers
  6. 9:16Lambda Expressions
  7. 9:48Polymorphic Function Wrapper
  8. 13:12Example: V-Tables in MUDs
  9. 14:29Higher-Order Functions
  10. 15:01Crafting Functions
  11. 15:40Forwarding Call Wrapper
  12. 16:54Binding Parameters
  13. 18:25Lambda Closures
  14. 19:01Dangling References
  15. 19:43Binding Member Functions
  16. 20:58Echo Server w/ Asio + Lambdas
  17. 23:24Something (Pseudo)Random
  18. 25:24Calling Functions
  19. 26:46A Parallel Algebra
  20. 30:54Forming Dependencies
  21. 32:161D Heat Equation
~/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.