What is Nostr?
Nicolas Martyanoff /
npub17vs…jc6l
2024-02-17 11:31:18

Nicolas Martyanoff on Nostr: An unexpected problem with event-based IO in #CommonLisp is that it breaks the ...

An unexpected problem with event-based IO in #CommonLisp is that it breaks the condition/restart system. E.g. you upload a file using HTTP and a non-blocking client. The state machine to handle the flow (send request, read HTTP 100 response, send body, read reponse, execute callback) is running in the IO thread. If anything signals a condition, it has to be handled in the IO thread, completely decorrelated from the code that initiated the HTTP request.

Extrapolate that to a server running multiple complex IO flows in parallel. This is really not good, the language just does not match the problem.
Author Public Key
npub17vstmkjpd25e72hqjjwu54krhav2nq2unhnm49g268a9drdzhqtqjmjc6l