~/talk

Aliasing: Risks, Opportunities and Techniques

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [c-and-cpp]
links:none on file
slides:none on file

Aliasing in C++ causes both correctness failures and big slowdowns: overlapping arguments break a naive in-place min/max and a concat example, a simple byte-by-byte loop copy clobbers data while memmove and some library calls survive but std::copy is undefined for overlaps, compilers (GCC/Clang/Intel) disagree on behaviors, and a microbenchmark shows taking a coefficient by const& incurs a 32× slowdown versus by-value. Remedies shown include strong typedefs, copying defensively or runtime disjoint checks, and using memmove or documented-safe STL patterns.

AI-written summary · about

  1. 0:00Introduction to aliasing
  2. 1:48Understanding aliasing
  3. 5:28Examples of aliasing pitfalls
  4. 10:40Buffer and STL aliasing issues
  5. 14:00STL algorithms and aliasing
  6. 18:31Performance impact of aliasing
  7. 24:13Compiler, language, and standards
  8. 30:01Strict aliasing and types
  9. 36:11Best practices and strategies
  10. 42:08Future proposals
  11. 46:26Unions, variants, and summary
~/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.