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.
Posts tagged “loom-internals” (8)
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.
How Loom encodes routes as non-type template parameters, analyzes patterns at compile time, and generates an optimal dispatch chain with zero runtime overhead.
How Loom pre-renders every page into 6 HTTP wire variants, serves them with zero copies and zero allocations, and keeps responses under a millisecond.
A hand-written markdown-to-HTML converter in 1200 lines of C++. Two passes, zero dependencies, custom extensions, and sub-millisecond performance.
How Loom compiles typed theme definitions into CSS using pointer-to-member bindings, fold expressions, structural emitters, a full CSS DSL, and component overrides.
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.
How Loom uses phantom type tags, conditional concepts, structural enums, and token types to turn entire categories of bugs into compile errors.