Hello, world
Hello, world
Welcome to the blog. This entire site is served by a custom HTTP/1.1 server written in Zig — the runtime hot path does zero allocations per request.
What's here
- A tiny Mustache-flavoured templating
engine for the site chrome.
- A linear-time Markdown renderer that handles the subset blog posts
actually use.
- An io_uring-backed multi-worker server underneath it all.
pub fn main() !void {
try app.init();
try app.listen("127.0.0.1:8080");
}
Pre-rendered pages mean the request handler is one slug lookup away from a []const u8 it can hand straight to the response.
More posts soon.