Loom

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

Posts tagged “protocols” (2)

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
Typestate Programming — When Types Remember What HappenedMar 24 14.4K

States as types. Transitions as functions that consume and produce. Grounded in linear logic — where every resource must be used exactly once — typestate turns protocol violations into compile errors.

--c++20 --type-theory --typestate --state-machines --linear-logic --protocols