~/talk

Monads in Modern C++

Talkat ACCU 2023 · 2023-04-19..04-22· [c-and-cpp, functional-programming]
links:none on file
links:none on file
slides:none on file

Engineering team proves monadic patterns cut boilerplate by building a C++ POC that treats pointers, find results, std::vector and std::optional monadic ops as a unified "maybe" adapter; key operations are transform + join = bind (aka and_then/flat_map) and a pipe-based API that compiles on C++17/20. Examples include doubling numeric strings, parsing with error propagation, a toy compiler (file → vector of errors) and a chess-state simulator; std::future adapter exists but async execution and schedulers remain unresolved.

AI-written summary · about

  1. 0:00Introduction
  2. 5:58What makes C
  3. 9:25What is a functor
  4. 16:23Is this the first time we have seen a functor
  5. 16:58Can we go beyond that
  6. 17:11Optional
  7. 18:06Functor
  8. 18:45F function
  9. 19:26Conditional checks
  10. 20:08Why should I care
  11. 23:22What went wrong
  12. 25:05Join
  13. 26:03Joining
  14. 26:24Helper function
  15. 27:13Formal Definition
  16. 28:00Vector Monad
  17. 29:41Vector of Files
  18. 30:05Range Join
  19. 30:47Filtering
  20. 31:13Simulations
  21. 32:34Evolve Boards
  22. 33:22Cartesian Products
  23. 35:36Other Monads
  24. 39:18Style Optional
  25. 40:25Option
  26. 40:46Expected
  27. 41:06Parsing
  28. 42:02TL Expected
  29. 42:58Ranges
  30. 43:45Future
  31. 44:29Asynchronous
  32. 44:58Two fundamental issues
  33. 45:19A continuation
  34. 46:12B continuation
  35. 46:48Possible fixes
  36. 47:30Stud Execution Framework
  37. 48:32CPlusMoradic Interface
  38. 50:02Walkthrough
  39. 58:25Type aliases
  40. 59:03Business logic
~/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.