Loom

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

Posts tagged “compile-time-cpp” (13)

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
Types as Values — The Core Trick of Compile-Time C++Feb 07 13.2K

In the compile-time language, types ARE the values. You pass them to functions, store them in data structures, and compute with them. This is the key insight that makes everything else click.

--compile-time-cpp --type-traits --metaprogramming --type-manipulation