Loom

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

Posts tagged “templates” (7)

Phantom Types — Making the Compiler See What Isn't ThereMar 23 13.2K

A phantom type parameter exists only in the type system — it carries no data, occupies no memory, and vanishes in the binary. Parametricity guarantees it works. Representation independence makes it free.

--c++20 --type-theory --phantom-types --templates --zero-cost --parametricity
Compile-Time Routing — Zero-Overhead DispatchDec 19 9.6K

How Loom encodes routes as non-type template parameters, analyzes patterns at compile time, and generates an optimal dispatch chain with zero runtime overhead.

--loom-internals --c++20 --routing --constexpr --templates
The DOM DSL and Component System — HTML as C++ ExpressionsNov 21 12.0K

How Loom turns HTML generation into composable C++ expressions with a fold-based DOM builder, control flow primitives, and a JSX-like component system with theme-overridable slots.

--loom-internals --c++20 --dsl --templates --components