3 ms·
I recently wrote a multithreaded web server and MVC framework in C from scratch using clang blocks and a request-based memory arena [0] and now I’d like to expa
by williamcotton 4y ago
I recently wrote a multithreaded web server and MVC framework in C from scratch using clang blocks and a request-based memory arena [0] and now I’d like to expand the endeavor into a custom compiled-to-bytecode DSL with web server and SQLite runtime.
The goal is to limit the environmental impact of serving web applications. Ideally memory usage should be less than a couple of MB for an idling server, a Docker container less than 100MB in size, and CPUs efficiently converting request paths into SQLite opcode and JSON responses.
[0] https://github.com/williamcotton/express-c https://github.com/williamcotton/express-c