~/talk

C++ MythBusters

Talkat ACCU 2022 · 2022-04-06..04-09· [c-and-cpp, software-architecture]
slides:none on file

Claims and evidence: sprintf uses the global locale and a mutex so switching to libformat gives ~3–4× speedups on macOS and ~20× on Windows in a cited case; std::regex is slow to compile and at runtime so prefer ctre for compile-time regexes; std::optional usually lets compilers optimize away overhead but hoisting can add copies so measure; std::move is just a cast, moves occur on construction/assignment; prefer the pass-by-value sink pattern for multiple arguments; tooling (clang, sanitizers, fuzzers, static analyzers) is mature.

AI-written summary · about

  1. 0:00Start
  2. 4:13The Elephant Metaphor
  3. 10:53Improv Session
  4. 16:38Printf
  5. 18:57Lib Format or Standard Format
  6. 19:56Myth 14 C plus Plus Is Not Easily Toolable
  7. 21:45Testing Frameworks
  8. 22:10Static Analyzer
  9. 26:03Regex Standard Regex Is Too Slow for Production Use
  10. 30:23Standard Regex Is Too Slow for Production Use
  11. 30:49Standard Optional
  12. 34:51Diff View
  13. 44:30Standard Move Moves
  14. 50:47Always Pass Input Arguments by Const Reference
  15. 57:09Myth 37 Make all Data Members Private
  16. 1:07:35Iterators and Ranges
  17. 1:14:01Do You Think Lifetime Annotations or a Borrower Checker Could Be Introduced into C plus plus on a Realistic Time Scale
~/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.