Loom

A blog engine that just works. One binary, no setup, no dependencies.

Posts tagged “compile-time” (4)

Building a Type-Safe Protocol — The Grand SynthesisMar 30 22.8K

We combine every technique from this series — algebraic types, pattern matching, phantom types, typestate, concepts, compile-time data, parametricity, linear logic, F-algebras — to build a compile-time verified protocol where violations are type errors, not runtime surprises.

--c++20 --type-theory --typestate --protocols --compile-time --capstone
Compile-Time Data — When Values Become TypesMar 26 14.4K

C++20 lets values enter the type system. This is the gateway to dependent types — Pi types, Sigma types, and the calculus of constructions. The compiler becomes a staged computation engine.

--c++20 --type-theory --constexpr --nttp --compile-time --dependent-types
A Program Is a Theory — Foundations of Type-Theoretic C++Mar 20 24.0K

Type judgments, formation rules, Curry-Howard, and the lambda cube — real type theory, made concrete in modern C++. A program is a formal system, and the compiler is its first reviewer.

--c++20 --type-theory --compile-time --design --foundations