Agent-focused C++ compiler course pairs self-hosting reference implementation with performance claims
state: seedheat: mediumuncertainty: mediumrelevance: highagent-built-compiler self-hosting compiler-performanceVishvananda
What is this?
Vishvananda’s cppgm-extended is a 35-assignment C++11 compiler course designed for coding agents, paired with a high-performance reference compiler. The project’s GitHub README describes its assignments, reference implementation, benchmark links and limitations; Vishvananda’s Show HN post says the scaffold was developed over six months and that one agent run reached self-hosting for under $500 in API tokens. The README also links to the separate cppgm-assignments export for taking the course. The reported performance advantage is the developer’s claim, not independent validation in the supplied evidence: a secondary source says the 4× figure concerns compile speed, while generated-code speed is roughly at parity. The compiler has stated limitations, including a C++11 baseline, constrained platform support, no bundled standard library and possible bugs.
Why it matters
This is a concrete experiment in using coding agents to work through a staged, technically demanding software project—not just generate isolated code. If the course and harness reliably let agents make progress toward a self-hosting compiler at the reported token cost, that could broaden who can explore compiler construction and make sustained agent-led engineering more practical. The performance figures are promising but developer-reported, and the project’s own caveats limit what the compiler’s current results imply.
Current assessment
New: Vishvananda announced cppgm-extended on Show HN on Nov. 6, 2026. The linked repository describes a C++11 compiler course with 35 cumulative assignments, from preprocessing through native code, optimization and self-hosting, plus a reference implementation. The author reports one agent run achieved self-hosting for less than $500 in API tokens; this is an attributed project claim, not independently established by the supplied sources. The author also claims the reference compiler compiles C++ 4× faster than GCC and Clang. A secondary account says that refers to compile speed and that generated-code speed is roughly at parity; the repository links benchmark methodology and reports but those results are not independently assessed here. The project says C++11 is its baseline, other dialect support is partial, targets are limited, no standard library is bundled, and bugs or poor code generation may occur. Significance lies in the course-and-harness approach to sustained agent work on a complex systems task, and its possible value as a teaching or experimentation scaffold. Evidence does not establish broad agent reliability, general compiler superiority, or production readiness.
Measured heat
now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 502h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion
How the heat travelled
pace: p54 vs 1845 stories at the 336h mark (now 502h old) — ahead of biscotti-selfhosted-imessage-agent (1.1x), behind aivideosugc-ai-ad-generation (0.9x)
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Show HN: A C++ Compiler That Is Faster Than GCC and ClangRetrieved article excerptOpen article · Retrieved 2026-11-05T18:22:04.939272+00:00 # cppgm-extended
[Tests](https://github.com/vishvananda/cppgm-extended/actions/workflows/tests.yml)
A C++11 compiler course designed for agents, with 35 cumulative assignments from
preprocessing to native code, optimization and self-hosting. This repository
contains a high-performance reference implementation in `dev/`; `pa1/` through
`pa35/` hold the handouts, tests and wrappers.
For how the reference compiler was built and its performance results, read
[How I Built a Compiler That Is Faster Than GCC and Clang](https://medium.com/@vishvananda/how-i-built-a-compiler-that-is-faster-than-gcc-and-clang-4c8c1d4818fa).
To take the course, start with
[cppgm-assignments](https://github.com/vishvananda/cppgm-assignments), the export
containing scaffolds, handouts, tests and downloadable reference tools.
The export's references are generated from this compiler.
## Compiler Performance (Higher is Better)
| **vs GCC** | **EPYC** | **Intel Xeon** |
| --- | --- | --- |
| `-O0` compile speed | [epyc `-O0` compile speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel `-O0` compile speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
| `-O0` generated code speed | [epyc `-O0` generated code speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel `-O0` generated code speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
| `-O3` compile speed | [epyc `-O3` compile speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel `-O3` compile speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
| `-O3` generated code speed | [epyc `-O3` generated code speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel `-O3` generated code speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
| Building `cppgm++` | [epyc Building `cppgm++`](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel Building `cppgm++`](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
| Self-built compiler speed | [epyc Self-built compiler speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel Self-built compiler speed](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
| `-O3` timed programs | [epyc O3 timed programs](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel O3 timed programs](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
| Measured commit | [epyc Measured commit](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) | [intel Measured commit](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) |
See [benchmark methodology](https://github.com/vishvananda/cppgm-extended/blob/main/benchmarks/public/README.md) for how the numbers are calculated.
Detailed compile timings: [EPYC](https://github.com/vishvananda/cppgm-extended/blob/benchmark-badges/epyc/report.md)
and [Intel Xeon](https://github.com/vishvananda/cppgm-extended/blob/benchmark-badges/intel/report.md).
## Caveats
- C++11 is the baseline; other dialects have only partial extension support.
- Targets are Linux x86-64 and optional Intel macOS; other architectures are unsupported.
- General inline assembly is unsupported; a few GNU forms are recognized.
- No C++ standard library is bundled; use a host-installed library.
- The compiler may contain bugs.
- Code generation may be poor for unfamiliar program shapes.
## Build and validate
The course target is Linux x86-64. Install a C++11 host compiler, GNU make,
Bash, Perl and Python 3; later checks also use binutils and a debugger.
```
make CXX=g++ CPPGM_HOST_CXX=g++
make test-pa8
make test-report
make inception
```
Intel macOS support and its optional checks are described in
[the macOS guide](https://github.com/vishvananda/cppgm-extended/blob/main/docs/intel-macos.md).
See [ROADMAP.md](https://github.com/vishvananda/cppgm-extended/blob/main/ROADMAP.md) for the assignment sequence,
[AGENTS.md](https://github.com/vishvananda/cppgm-extended/blob/main/AGENTS.md) for contributor instructions, and
[TESTING\_AND\_REFERENCES.md](https://github.com/vishvananda/cppgm-extended/blob/main/TESTING_AND_REFERENCES.md) for validation and
reference policy. Personal experiments go in `student.tests/`.
## Origins and license
The original C++ Grandmaster Certification course supplied early assignment
material, tests and starter code. The cppgm-extended authors have substantially
revised, combined, renumbered and extended that material into this independent
35-assignment course. Today's handouts, harnesses and reference implementation
describe this version; current PA numbers do not identify original CPPGM lessons.
Copyright 2026 The cppgm-extended Authors. Project-maintained code and materials
use the Apache License 2.0; inherited material retains its original notices.
See [LICENSE](https://github.com/vishvananda/cppgm-extended/blob/main/LICENSE), [NOTICE](https://github.com/vishvananda/cppgm-extended/blob/main/NOTICE) and [AUTHORS](https://github.com/vishvananda/cppgm-extended/blob/main/AUTHORS).
The project also explores sustained agent-assisted compiler development. Its
background is in the blog series beginning with
[I Spent 2 Billion Tokens Writing a C++ Compiler So You Don't Have To](https://medium.com/@vishvananda/i-spent-2-billion-tokens-writing-a-c-compiler-so-you-dont-have-to-d3e4eec4781e). | vishvananda | 8 | 3 |
| 🟧 echo.github ⭐ | The original artifact is the project repository itself: its README describes a “C++11 compiler course designed for agents” and says the repo | Vishvananda (vishvananda) | — | — |
Interpretation history
2026-11-06T04:21:17Z
audience grounding: high — This is a concrete experiment in using coding agents to work through a staged, technically demanding software project—not just generate isolated code. If the course and harness reliably let agents make progress toward a self-hosting compiler at the reported token cost, that could broaden who can explore compiler construction and make sustained agent-led engineering more practical. The performance figures are promising but developer-reported, and the project’s own caveats limit what the compiler’s current results imply.
Decision trace
- 11-09 00:24review_screenjev screen: no material development (noul=0.17)
- 11-06 15:21groundThis is a concrete experiment in using coding agents to work through a staged, technically demanding software project—not just generate isolated code. If the course and harness reliably let agents mak
- 11-06 05:29attention_candidatecreate
- 11-06 05:29promote_anchororigin walk conf 0.87
- 11-06 05:28createThe repository and course are available now, while the striking development and speed claims remain maintainer-reported and need independent validation.