~/lightning

SRP for Function Calls in C++

Lightningat ACCU 2024 · 2024-04-17..04-20· [c-and-cpp]
links:none on file
slides:none on file

Claims that std::packaged_task (in <future>) cleanly separates invoking work from retrieving results, shows a four-line pattern that reproduces std::async without its join-on-destruction behavior, and reveals the real pain: figuring the returned type and moving tasks because packaged_task is move-only. Demonstrates a task-composition library that returns futures from when_any/when_all-style combinators, works for building work trees, and highlights the missing shared/reenterable equivalent.

AI-written summary · about

~/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.