A Erlang style pure Scheme Webserver and further
5 hours ago
- #web-server
- #actor-model
- #chezscheme
- A web server called Igropyr built with Pure Chez Scheme, using Erlang-style actors and a libuv event loop. It features self-healing crashes, hot-swappable code, structured fault protocols, and processes that handle dialogues.
- Key features include supervised worker pools that recover from crashes, hot replacement of handlers or routes without downtime, and structured fault communication to clients with keep-alive connections for retries.
- Conversation processes manage multi-request dialogues as green processes, with local state like open database transactions. Death guarantees rollback, and clients receive 'gone' status for definite server state.
- Infrastructure includes a preemptive scheduler, pure message passing with no shared state, non-blocking I/O, and bundled libraries for HTTP, WebSocket, databases, and more. Inspired by Node.js, Erlang/OTP, and Scheme continuations.