~/talk

How to Implement the C++ Standard Library (Part 2): An Excursion into libc++

slides:none on file

Live demo implements ranges::fold_right inside libc++ by adding tests, a new header, CMake entry and a function object; uses LLVM/Clang checkout, CMake, ninja + lit to build and run tests. Encounters and fixes real bugs (missing const on operator(), return-type deduction, iterator decrement loop), shows why std::invoke is needed, discusses symbol visibility/hidden-ABI macros, and notes the surprising numeric behavior of left vs right folds with subtraction. Core implementation compiles and most tests pass, but full test coverage remains unfinished.

AI-written summary · about

  1. 0:00Implementing C++ Standard Library
  2. 1:15libc++ contributions start
  3. 6:41libc++ in VS Code
  4. 17:31libc++ namespace and headers
  5. 23:41Fold right in libc++
  6. 29:19CMake build libC++
  7. 31:32Run lit tests debug
  8. 43:01Symbol hiding and ABI
  9. 58:29Summary
~/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.