~/talk

How to Rangify Your Code

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

Shows how to replace loops with actual range tools: uses range-v3 and the standard library plus a company-implemented ranges::to to build containers, demonstrates a sliding-mean via the sliding view, subtracts column means using a flat span and cycle view, sums non-defectives with accumulate+filter+projections, and implements the Jefferson/Hunt seat allocation with cartesian_product and sort. Benchmarks with Google Benchmark (3 parties/7 seats, 15/700, 60/70,000) show negligible time difference between C++17 and ranges versions.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Recommended talks
  3. 2:31Libraries
  4. 4:25Rangifying
  5. 10:40Sliding mean
  6. 16:43Multiarray
  7. 23:56Filter
  8. 33:03Index Handling
  9. 40:28Complex Example
  10. 40:46Hunt Method
  11. 44:43Counting
  12. 46:38Nested Loop
  13. 50:28Sorting
  14. 53:46Countif
~/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.