~/talk

Lazy and Proud: How I Failed to Standardize lazy_counted_iterator

Talkat Core C++ 2023 · 2023-06-05..06-07· [c-and-cpp, open-source]
links:none on file
slides:none on file

Proposal P2406 aims to fix a concrete bug: mainstream implementations of counted_iterator unconditionally increment the wrapped iterator after decrementing the count, which causes infinite loops with filtered ranges and loses one element with input iterators (observed while generating 11 truncatable primes). The paper implements a new lazy_counted_iterator that skips the final increment, goes through five revisions and SG9 review, but the committee rejects replacing counted_iterator; the new adapter idea wins instead.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:22What are C++20 ranges
  3. 7:09Project Euler problem and bug discovery
  4. 10:25Standardization process overview
  5. 13:39WG21 and ISO standardization
  6. 17:55First paper submission and issues
  7. 20:51Lazy counted iterator idea emerges
  8. 23:00Revision one and design challenges
  9. 25:13SG9 discussions and alternatives
  10. 27:27ABI break and final revisions
  11. 29:42Solution and standardization outcome
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.