libera/#commonlisp - IRC Chatlog
Search
13:55:29
jackdaniel
(the message "truncate can't into ..." is my own showing values I pass to truncate somewhere deep inside a a program, the message below is the actual condition)
13:56:23
jackdaniel
beats me, according to my handler arguments passed to truncate are both ratios (59/8 and 447/16)
13:58:14
jackdaniel
well, I'm printing them in the same dynamic extent as the function truncate is called
14:33:16
jackdaniel
I think that you'd be better off asking the question (instead of probing first whether there is someone who'd potentially might answer)
14:46:03
NotThatRPG
I'm having trouble trying to run the `cl-async` event loop in a thread (started by `bordeaux-threads:make-thread`): according to the cl-async docs, this should be fine. But socket connections that succeed when run in the main thread fail when run in a subsidiary thread.
14:48:58
NotThatRPG
aeth: Interestingly, one of the cl-async tests -- checking a failed socket connection -- fails with a timeout error when run in the subsidiary thread (instead of a socket closed error). I see a timeout error in my threaded version, too.
14:49:54
NotThatRPG
fe[nl]ix: that's a good point. I will see if some of this code (which is riddled with global variables) could be relying on something that is not inherited. I believe that all I have to worry about is dynamic bindings, not top-level/global bindings, right?
14:50:18
NotThatRPG
Unfortunately, the logging in cl-async is not at all adequate to debugging purposes.
14:52:14
NotThatRPG
varjag: Honestly, I don't want to do event loops! It's just that cl-mqtt does, and some people I'm working with want to use MOSQUITTO.
14:58:30
NotThatRPG
Looks like if a socket connection fails with EOF, CL-MQTT doesn't properly notice, and instead just coughs up timeout errors trying to write to the EOFed socket.
14:59:08
NotThatRPG
An example of why I am not loving CL-ASYNC is that its error-handling is deeply cryptic.
14:59:09
_death
I would consider rewriting the client bits to use ordinary blocking code, maybe salvaging some of the encoding/protocol bits