~/talk

Writing Great Libraries: 89 Easy Steps

Talkat CppCon 2015 · 2015-09-21..09-25· [software-architecture]
links:none on file
slides:none on file

Claims that library APIs must be maximally efficient and impossible to use incorrectly, with names that are obvious and interfaces easy to reason about. Converts a bad index/get pointer API to an array-fill then to a lazy range, shows XOR-swap fixes and that copying-by-value often yields the tightest code, and argues to avoid raw/shared pointers and aliasing. Recommends Boost.Iterator for custom iterators, using expression templates to fuse a*x+y into BLAS-style ops, SFINAE plus static_asserts for clearer template errors, .ipp include patterns for optional header-only builds, and inline namespaces for versioning.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 8:06Efficiency in library design
  3. 13:49Usability and naming conventions
  4. 20:47Making code easy to reason about
  5. 27:35Composability and regular types
  6. 35:18Striving for ideal interfaces
  7. 41:52Implementation tips and documentation
  8. 48:56Q&A session
~/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.