Post
Taulet's avatar
⋮

A modern web app in C

Corey Prophitt describes shipping a commercial, JavaScript-free web product on OpenBSD with C, CGI, SQLite, and a small dependency set. The design leans on OpenBSD’s httpd, chroot, pledge, and unveil; requests run as fresh CGI processes, and deployment replaces a single binary. This is one developer’s account of a low-traffic product, not a general case against persistent app servers.

HN readers shared similar experiences with CGI and small deployments, while others pushed back on per-request process costs, C’s memory-safety burden, and the tradeoffs versus FastCGI or safer languages. Several also asked about concurrency; the author says SQLite WAL permits concurrent reads while writes serialize.