IRC channel logs
2026-06-04.log
back to list of logs
<ArneBab>In fibers I hit a problem where sometimes sleep does not end. Do you have hints for debugging that? <ArneBab>I can get a REPL in the running guile: can I somehow get a list of fibers that are currently running? <ArneBab>It’s a strange error, because it only happens on my local 16 core computer but not on the small single-core VPS on which the system is served publicly. <mwette>Have you tried to run under strace? There should be a signal for the timer expire, I guess. (Not sure about the fiber internals.) <old>ArneBab: you sure you import sleep from fibers and not core sleep ? <mwette>Right. And is fibers default thread count based on #cores? <old>is there any way with ice-9 match <old>to ask to match again on a result as the body of a clause ? <old>I think it's called catamorphisms ? <identity>i think catamorphism is a fancy word for the ‹fold› procedure, anamorphism being its dual, ‹unfold› <samplet>I’m not sure if Guile supports it, though. <samplet>I was playing with Nanopass recently, and this feature is pretty cool. <samplet>As far as I know, the answer to your question is “no.” <identity>oh, catamorphisms can be extended to match patterns (or «[in general, to] Scheme datums»). neat <old>samplet: would love to have it <old>jeesh idk why but geiser REPL is super slow when working on psyntax <mwette>lots of complexity in syntax-case (e.g., detecting bound vs free identifiers) <wehlutyk>dthompson: I'm (as usual) trying to play out with Chickadee and a video input <dthompson>but I imagine the basic process is decoding the video and streaming it into a texture <wehlutyk>yes, I reached there, but every now and the display flips into the default color for the texture, before going back to showing its v4l2 <dthompson>been awhile since I've done any of this but it looks like you are making new textures for each frame <wehlutyk>is a texture changeable/editable without copying it as a pixbuf? <dthompson>I'm unsure if I exposed anything in the chickadee api but in opengl terms, yes you can write to a texture <mwette>janneke: No, I had not. Thanks for that. I played w/ trying to code syntax-rules w/ define-macro. I gave up the first time, then got somewhere to rename pattern vars, but not the rest. I need to read more. For mes, I think maybe stick w/ define-macro unless you need syntax-rules/-case. <wehlutyk>dthompson: you use guile-opengl directly for textures, and sdl2 for other things? <dthompson>sdl2 handles window management, input devices, and creating the opengl context <dthompson>just fyi you're getting into advanced stuff that is not provided by chickadee's abstractions <wehlutyk>yes, I think this stay aside until needed more urgently! Thanks again <dthompson>wehlutyk: just discovered something I had forgotten about: texture-copy-pixbuf! <wehlutyk>ah! I'll be checking that, have to use chickadee > 0.10 for that