~/talk

Higher order functions for ordinary C++ developers

Talkat NDC Oslo 2018 · 2018-06-11..06-15· [c-and-cpp, functional-programming]
slides:none on file

Advocates using use auto return type to return lambdas to build composable predicates (compose, select, address_matches) and shows fold-expression AND to combine many predicates; demonstrates TL::optional with TL::optional continuations (and_then / or_else) and an expected<T,E> idea for error info. Benchmarks show generated code has essentially no runtime overhead (one byte extra for optional state), warns std::function adds ABI overhead, and publishes a tiny header-only library on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 3:55Examples
  3. 12:25Compiler Explorer
  4. 20:30Expand
  5. 20:40IP address
  6. 22:44IP interface
  7. 23:38IP matress predicate
  8. 24:05IP matress composition
  9. 25:25IP interface composition
  10. 26:42Insanity
  11. 27:27Folds
  12. 29:50SelectState
  13. 30:27IfThen
  14. 30:53Action
  15. 31:15SetState
  16. 34:56OptionalT
  17. 37:36Lookup function
  18. 38:59Lookup use case
  19. 46:16Overloads
  20. 46:41Address
  21. 46:59Transform
  22. 47:30clang
  23. 48:33why bother
  24. 48:51arrange your code
  25. 49:20throw a lambda
  26. 49:56read a lambda
  27. 50:06to be solution
  28. 50:17macro lift
  29. 51:37compilation error
  30. 54:00function categories
  31. 54:56cons
  32. 56:08boost
  33. 57:15takeaway message
  34. 58:22composition names
  35. 58:36expected
~/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.