~/talk

A Short Life span - For A Regular Mess

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [c-and-cpp]
slides:none on file

Argues that std::span arrives from the GSL to replace pointer+length pairs but ends up a non-owning borrow type with surprising semantics: copy is shallow copy, element comparison was removed, so span is semi‑regular not regular. Notes practical tool support: clang 7+ implements span, GCC STL lags, Chromium and Christian Brindle implementations exist, and Visual Studio’s C++ Core Guidelines checkers warn about pointer arithmetic. Concludes span’s design reduces bugs in some cases but creates new surprises for API design.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:19Fundamentals of programming
  3. 6:58The role of mathematics in code
  4. 12:23Principles of STL and concepts
  5. 16:54Concepts and naming conventions
  6. 20:16Ordering and equality
  7. 22:15Regular and semi-regular types
  8. 25:48String view analysis
  9. 31:31Deep dive into span
  10. 39:32Span design challenges
  11. 48:23Practical implementation issues
  12. 51:42Conclusion and call to action
~/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.