Loom

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

Posts tagged “compositor” (2)

Putting It All Together — The Full PipelineMar 25 27.6K

Twelve posts of theory. Now we build. A complete, compilable, interactive terminal renderer — style interning, 8-byte cells, cell-level diffing, transition cache, synchronized output, threaded compositor. Copy it. Compile it. Resize your terminal. Watch zero flicker.

--c++23 --full-pipeline --demo --terminal-rendering --compositor --double-buffering --claude-code
Thread Safety — The CompositorMar 23 8.4K

The spinner thread and the main thread both want stdout. They can't have it. The Compositor is the bouncer: one lock, one writer, zero corruption. Plus the self-pipe trick, mutable regions, and why the mutex must cover the write() syscall.

--c++23 --compositor --mutex --thread-safety --signal-handling --self-pipe --claude-code