Asynchronous Logging (Non-blocking I/O)
scriba-12Right now, even though your compile-time macros and level-filtering are incredibly fast, writing to an output port is still a synchronous, blocking operation. If a disk slows down or a network socket experiences latency, your application code pauses.
Feature: An asynchronous logger wrapper.
Mechanics: The logging macro pushes the log data onto a lockless thread-safe queue (or a Guile channel) and immediately returns control to the application. A dedicated background thread or actor pulls from this queue and handles the actual I/O writing.
The Guile ecosystem heavily utilizes Fibers for cooperative concurrency.
Feature: Ensure first-class citizen compatibility with guile-fibers.
Mechanics: Provide a dedicated scriba-fibers module that uses non-blocking Fiber ports or concurrent channels, guaranteeing that logging operations never block the main fiber scheduler loop.
plan (0)
time logged (0)
no time logged yet
discussion (0)
no comments yet
attachments (0)
no attachments yet
activity (0)
nothing recorded yet
versions (0)
no versions yet
