~/talk

Real-time Safety — Guaranteed by the Compiler!

Talkat Meeting C++ 2025 · 2025-11-06..11-08· [security]
slides:none on file

Claim: compile-time guarantees for real-time safety via Clang 20 Function Effect Analysis plus the runtime checker RealtimeSanitizer. Demonstrations show marking functions as non-blocking attribute or non-allocating, transitive enforcement, and compiler inference for headers/templates. Reality checks: third‑party libraries need ignored-wrappers or redeclarations and realtime sanitizer catches lied‑about libs. Practical build: Squarehead refactors an audio pipeline toward harder real‑time, implements a custom non-blocking_function to avoid std::function type‑erasure allocations, and reports the approach works in CI and on hardware.

AI-written summary · about

  1. 0:00Real-time safety intro
  2. 1:04Who writes real-time code
  3. 2:25Defining real-time code
  4. 4:33Real-time vs performance
  5. 5:57Avoiding real-time hazards
  6. 8:07Function effect analysis
  7. 12:23Performance annotations
  8. 15:11Non-allocating compile checks
  9. 17:17Function effects transitivity
  10. 20:06Exceptions and allocations
  11. 22:55Inheritance stricter guarantees
  12. 24:42Non-blocking hierarchy
  13. 26:32Why non-blocking everywhere
  14. 28:04Noexcept vs real-time safety
  15. 30:30Compiler lessons learned
  16. 32:37Conditional compilation
  17. 34:01Third-party code warnings
  18. 37:31Real-time sanitizer
  19. 39:17Lambdas in real-time
  20. 43:10Callbacks and templates
  21. 46:23std::function pitfalls
  22. 50:18Non-blocking wrapper
  23. 52:42Templatize non-blocking
  24. 54:07Real-time code tips
  25. 57:17Summary
  26. 57:37Q&A
~/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.