C++

Zero-cost abstractions for performance-critical systems, databases, game engines, and ML inference.

C++ is the language of zero-cost abstractions for performance-critical systems: databases, game engines, and ML inference, where the work has to be fast and the abstraction must not cost anything at runtime. That promise is why the heaviest software on earth is still C++. It is also why generated C++ is so hard to review: the abstraction that costs nothing at runtime can cost everything in readability, and the bug hides behind three layers of templates that all look reasonable on their own.

What the site covers. DuckDB is an analytical database built in C++, designed to answer heavy queries inside a single process instead of a server farm. llama.cpp runs large language models on ordinary hardware, built on C and C++. Both are performance stories with the same moral: the fastest code is the code that does less work, not the code with the cleverest abstraction. When the site writes about evals, about measuring what AI output actually does instead of admiring it, that discipline applies double to C++.

What to watch out for. Generated C++ mixes styles without noticing: raw pointers next to smart pointers, ownership that changes hands mid-function, lifetimes that hold only in the demo. Build warnings are review flags, not noise, and a generated file that produces a wall of warnings is telling you something. Performance claims need measurement, not vibes: profile the generated code before believing it is fast, because the abstraction that was supposed to be free often is not. And like C, the memory rules are yours to enforce. Tests, sanitizers, and a human reading the ownership story are not optional extras here.

Further reading on this site. The essay on AI writing the code and who maintains it argues that generation made writing code nearly free while doing nothing to the cost of owning it, and ownership is hardest exactly where C++ abstractions hide it. The checklist for reviewing AI-generated pull requests gives the ten-minute pass for generated diffs, including the mixed-style files C++ agents produce. And the guide to evals for AI-generated UI makes the measurement point general: evaluate what users actually experience, not what the code claims, and profile performance claims instead of believing them.

An abstraction budget for generated C++. Every abstraction in C++ should earn its place, and generated code rarely asks that question. Templates, inheritance, and clever metaprogramming all look productive in a diff and cost real reading time later, especially when the next engineer has to trace a bug through three layers that each seemed reasonable alone. A useful discipline is an abstraction budget: for each layer, state what it buys, in performance, in safety, or in clarity, and remove the ones that buy nothing. The fastest C++ on this site's project list does less work, not more clever work, and the same rule applies to generated code. If an abstraction cannot justify itself in one sentence, it is decoration, and decoration in performance-critical code is debt.

Projects built with C++

AI Engineering

llama.cpp logollama.cpp

LLM inference in plain C/C++, run capable models on everyday hardware.

llama.cpp made large language models runnable on a laptop CPU with no GPU, no framework, no cluster. The quantization formats it pioneered (GGUF) became the de facto standard for local inference.

C++C
Developer Tools

DuckDB logoDuckDB

An in-process SQL OLAP database, SQLite for analytics.

DuckDB brings columnar analytical queries into the process: no server, no setup, just fast SQL over Parquet and CSV files. It made the 'small data' analytics stack boring in the best way.

C++