architecture
posts tagged with "architecture"
Why We Wrote Our Own Markdown Parser (And When You Shouldn't)
Why Patitas exists — ReDoS, O(n) lexing, parallel parsing — and when to use markdown or mistletoe instead.
Type-Driven Responses — How Chirp Eliminates make_response()
In Chirp, the return type is the intent. Template, Fragment, Page, Stream, Suspense, EventStream — each type maps to exactly one response shape. No conditionals. No make_response().
The Vertical Stack Thesis — Why I Build Every Layer
Why I own the full stack from syntax highlighting to web framework — and how each layer multiplies the value of the layers below.
Bengal SSG — Built for Python's Free-Threaded Future
How Bengal achieves parallel page rendering and lock-free incremental builds on Python 3.14t — architecture patterns and the design decisions behind them.
Chirp — A Web Framework Built for Free-Threaded Python
How Chirp achieves thread-safe request handling with ContextVar isolation, frozen config, and double-check locking — patterns for building web frameworks on free-threaded Python.
Pounce — Thread-Based ASGI Workers on Free-Threaded Python
How Pounce runs thread-based ASGI workers on free-threaded Python with shared immutable config, per-request compressors, and automatic GIL detection — one process, N threads, no IPC.