Loom

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

~/  20 posts

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
Using Loom as a Project Documentation PlatformJan 22 6.0K

Loom isn't just for blogs. Its series, tags, pages, and navigation make it a capable project documentation platform — and it's already serving its own docs.

--feature --architecture
SEO Out of the BoxJan 06 1.2K

Canonical URLs, Open Graph, Twitter Cards, JSON-LD, RSS, sitemap — all generated automatically.

--feature
Content Loading — From Filesystem and Git to Typed Site DataJan 02 16.8K

How Loom loads blog content from the local filesystem or a remote git repository using the same interface, parses frontmatter and config without dependencies, extracts image dimensions from raw PNG and JPEG bytes, and derives metadata from git history.

--loom-internals --c++20 --content --parsing --git
The HTTP Server — An Epoll Event Loop in 400 LinesDec 26 13.2K

How Loom serves HTTP with a single-threaded epoll event loop, zero-copy request parsing via string_view, pre-serialized wire responses, and a dual write path that avoids allocations on the hot path.

--loom-internals --c++20 --http --networking --epoll
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 Theme Compiler — From ThemeDef to CSSNov 28 10.8K

How Loom compiles typed theme definitions into CSS using pointer-to-member bindings, fold expressions, structural emitters, a full CSS DSL, and component overrides.

--loom-internals --c++20 --themes --css --dsl
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