~/talk

The Imperatives Must Go!

Talkat Meeting C++ 2022 · 2022-11-17..11-19· [frontend-architecture]
slides:none on file

Claims that functional ideas from Haskell are already embedded in modern C++, demonstrates concrete code patterns: lifting/fmap over std::optional and std::vector, composing projections for sort/find, a quick Haskell quicksort for contrast. Uses C++17/20 features, references Bjorn’s lift library and TartanLlama optional implementations, highlights monadic extensions (std::optional/std::expected) and ranges are lazy but views have reference semantics. Warns about accidental copies and performance pitfalls; slides and survey links provided.

AI-written summary · about

  1. 0:00Introduction
  2. 2:31Functional programming overview
  3. 7:57Imperative vs functional
  4. 11:09History of functional
  5. 15:46Functional in mainstream
  6. 17:53QuickSort styles
  7. 20:02Unix pipeline solution
  8. 22:51Learning functional patterns
  9. 24:16Higher-order functions
  10. 29:40Type constructors in C++
  11. 34:00Lifting with optional
  12. 38:57Lifting functions with vectors
  13. 43:57Transformation pipelines with fmap
  14. 46:49Monadic C++23 error handling
  15. 49:20Declarative style in C++
  16. 51:30Value design in legacy
  17. 53:16Ranges and functional
  18. 55:28String splitting with ranges
  19. 57:59Closing remarks
  20. 58:42Q&A: Debugging
  21. 1:00:25Q&A: Performance
~/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.