~/talk

Nth pack element... - A case study

Talkat Meeting C++ 2022 · 2022-11-17..11-19· [frontend-architecture]
links:none on file
slides:none on file

Varied C++ techniques for extracting the nth element are implemented and benchmarked (recursion, overloads, fold/IVFE, C++20 concepts, mp11, preprocessor generation, Clang/Circle extensions, proposed p1858). The measurement uses metabench across GCC 12 and Clang 15 and shows recursion is slow, concept/expansion and mp11 compile fast for moderate sizes, preprocessor hits limits, and Circle is flat and dominates large packs. Code and slides are provided and the benchmarks consistently favor compiler-level or language-feature solutions.

AI-written summary · about

  1. 0:00Talk overview
  2. 1:42Nth element motivation
  3. 5:35Current C++ tuple access
  4. 10:30Future C++ proposals
  5. 13:26Nth element requirements
  6. 16:55Recursive nth element
  7. 21:33Recursive with concepts
  8. 25:09Immediately invoked function expression
  9. 28:41Concept-based expansion
  10. 31:53MP11 library solution
  11. 35:30Preprocessor solution
  12. 39:50Anonymous struct inheritance
  13. 42:02Circle extension
  14. 43:49Circle compiler
  15. 45:15P1858 proposal
  16. 46:22Nth element in std::tuple
  17. 47:30Zero-based tuple access
  18. 48:32Circle vs std::tuple
  19. 49:14Tuple with C++20 ranges
  20. 51:03Benchmark compilation
  21. 53:10Benchmark small tuples
  22. 53:55Benchmark large tuples
  23. 55:23Circle vs compilers
  24. 57:10Compiler comparison
  25. 58:12Performance languages
  26. 59:14Recommendations outlook
~/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.