~/talk

What Can C++ Learn About Thread Safety From Other Languages?

Talkat C++Online 2025 · 2025-02-26..02-28· [c-and-cpp, concurrency]
links:none on file
slides:none on file

Prototype safe concurrency library implements Rust/Swift-style send/sync concepts with heavy use of C++ type traits and experiments in reflection and metaclass code generation, demonstrating a working proof-of-concept for constrained thread arguments and synchronized_value wrappers but finding many escape hatches (capturing lambdas, leaked addresses, nested pointers). Experiments show actors via C++26 senders + coroutines and copy‑on‑write metaclasses are feasible; runtime checks with TSAN or an extrinsic storage scope checker give practical detection today, but full safety needs borrow‑checker style lifetimes.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:11Thread safety importance
  3. 7:26Thread safety in other languages
  4. 8:49Sync and send concepts
  5. 12:03Implementing send in C++
  6. 16:17Implementing sync in C++
  7. 22:23Limitations of current C++ approach
  8. 25:39Solving nested pointers with reflection
  9. 28:46Metaclasses for thread safety
  10. 34:05Swift-style automatic reference counting
  11. 36:30Swift structs and copy-on-write
  12. 41:51Review of sync and send
  13. 45:31Actors in C++ with metaclasses
  14. 51:09Runtime checks with T-San
  15. 59:00Data race detection in standard library
  16. 1:00:04Future outlook for C++ thread safety
  17. 1:02:34Q&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.