Loom

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

Posts tagged “constexpr” (6)

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
Interning Pools — Strings Are Integers NowMar 09 12.0K

The moment you intern a style, comparison becomes integer equality. The moment you cache the transition between two styles, rendering becomes a hash table lookup. This is where Claude Code's renderer goes from fast to unreasonably fast.

--c++23 --interning --style-pool --transition-cache --constexpr --hash-map --claude-code
constexpr Everything — Real Algorithms Running Inside Your CompilerFeb 23 20.4K

constexpr started as a way to mark simple constants. Then it grew. And grew. Now it's an entire execution engine inside the compiler, running real algorithms with loops, branches, allocations, and exceptions.

--compile-time-cpp --constexpr --consteval --constinit --immediate-functions
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