~/talk

Serial and parallel pipelines in modern C++

Talkat CppNorth 2025 · 2025-07-21..07-23· [c-and-cpp, concurrency]
links:none on file
slides:none on file

Builds a custom pipeline framework that uses std::expected as the node interface, composes with std::ranges style pipe syntax, and handles heterogeneous errors via std::variant. Serial pipelines pass expected results; the parallel version spawns one thread per node and communicates with synchronized queues that use a nested-expected sentinel to stop threads. Benchmarks show mixed results—some workloads slow down, but a larger data-parallel experiment yields about a fourfold speedup. Code and slides are published on the linked GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 2:02Pipelines and functional programming
  3. 3:31What is a pipeline?
  4. 5:15Pipelines in Unix history
  5. 8:26Pipe operator in C++
  6. 10:36Simple pipeline implementation
  7. 12:44Handling different interfaces
  8. 15:18Error handling with std::expected
  9. 20:26Example with std::expected
  10. 24:23Building a serial pipeline
  11. 26:29Vector normalization pipeline
  12. 28:17Loading and processing vectors
  13. 36:19Parallel pipelines introduction
  14. 37:22Serial vs parallel pipelines
  15. 38:29Parallel pipeline implementation
  16. 44:34Synchronized queues
  17. 48:13Performance comparison
  18. 53:44Conclusions and recommendations
  19. 1:02:55Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.