2026-11-26 15:37 UTC

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

11-05 18:29 (minted)⭐ origin echo-reconstructedThe original artifact is the project repository itself: its README describes a “C++11 compiler course designed for agents” and says the repo
Vishvananda (vishvananda) on github (echo) · attributed from hn.story.50381741 · published time unknown
—
11-05 17:22first on hacker news · published · lag ?Show HN: A C++ Compiler That Is Faster Than GCC and Clang
vishvananda
—
11-05 17:22amplified on hacker news 👑hn.story.50381741
vishvananda
peak 8 · 3 comments · 100% of case engagement
11-05 18:20our radar first saw it · lag ?discovery anchor: hn.story.50381741—
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

sourceobjectauthorscorecomments
🟧 hnShow HN: A C++ Compiler That Is Faster Than GCC and Clang
Retrieved article excerpt

Open 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).
vishvananda83
🟧 echo.github ⭐The original artifact is the project repository itself: its README describes a “C++11 compiler course designed for agents” and says the repoVishvananda (vishvananda)——

Interpretation history

Decision trace