~/talk

Monadic Operations in C++23

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [rust]
links:none on file
slides:none on file

Concrete examples show how C++20/23 turns nested loops and error flags into composable pipelines using std::views::transform and std::views::join, and how error handling swaps to std::optional or std::expected to carry failures. Live pitfalls include dangling references from lazy views, overload-resolution gotchas solved with lambdas, and when to return containers vs views. Benchmarks across compilers expose variable performance tradeoffs; slides and a compiler error cheat sheet on GitHub provide reproducible code and fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 3:14Talk goals
  3. 4:36Functors: transforming values
  4. 8:25Functors rules
  5. 10:09Ranges views as functors
  6. 14:03Ranges views pitfalls
  7. 15:48Functors with callables
  8. 19:01Monads: unwrapping structures
  9. 22:33Monadic pipelines vs loops
  10. 24:36Pure functions and safety
  11. 29:11Error handling with optional
  12. 37:21Error reporting with expected
  13. 40:08Monadic style with optional
  14. 42:33Monads limitations
  15. 43:16Debugging monad errors
  16. 45:44Debugging monadic pipelines
  17. 46:25Performance of monadic code
  18. 47:30Advantages and disadvantages of monads
  19. 48:15Further resources
  20. 49:20Recap of patterns
  21. 51:25Q&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.