Let's talk about C++'s Abstraction Layers
summary
Proposes a concrete model that classifies C++ keywords and headers into layers and flags dangerous crossings, backed by a classification of language keywords and headers and a Clang AST + Python POC on GitHub. Demonstrates a real bug: pushing an istream into ranges (istream_view) prints 0 then 2 because ranges takes ownership — tool emits a warning like "changes abstraction from IO to ranges". Shows coroutine and sender/receiver mismatch (suspend_always/never issues) and argues for adding layer-aware static analysis to catch logic errors before runtime.
AI-written summary · about
chapters (22)
- 0:00Intro
- 0:18Who am I
- 2:23Definition
- 3:08First example
- 4:28Second example
- 8:14Nondeterministic pointer provenance
- 10:17Memory layout
- 10:58Types
- 11:44General
- 12:29Keywords
- 19:36What can we do
- 21:36Different language
- 23:01What do I propose
- 24:23My static analysis tool
- 27:13Core routines
- 28:52Handle run
- 29:50Limitations
- 32:17Classification
- 34:30Recap
- 35:27Python Script Tool
- 39:20Standard abstractions
- 41:55Type Trace
