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.
<ArneBab>(it’s about https://dryads-wake.1w6.org/terras-heritage/ )
<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> https://srfi.schemers.org/srfi-241/srfi-241.html
<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>Hello all!
<janneke>mwette: have you seen samplet's bootstrappable syntax-case -- https://git.ngyro.com/popsyntax/?
<wehlutyk>dthompson: I'm (as usual) trying to play out with Chickadee and a video input
<wehlutyk>has anybody else tried this?
<dthompson>I haven't
<dthompson>but I imagine the basic process is decoding the video and streaming it into a texture
<dthompson>how to sync up the audio and stuff? no idea
<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
<wehlutyk>are there any obvious problems here? https://gitlab.com/wehlutyk/eadt/-/blob/paper-no-class/tryouts/image-exploration.scm?ref_type=heads
<dthompson>been awhile since I've done any of this but it looks like you are making new textures for each frame
<dthompson>no way that's going to work well
<wehlutyk>ah
<wehlutyk>yes
<wehlutyk>is a texture changeable/editable without copying it as a pixbuf?
<wehlutyk>exporting it I mean I guess
<dthompson>I'm unsure if I exposed anything in the chickadee api but in opengl terms, yes you can write to a texture
<wehlutyk>right, I guess https://git.dthompson.us/guile-sdl2/commit/?id=575fcf39a1de850785fb16b25854da7629f2b048 gives it
<dthompson>that's different
<dthompson>chickadee doesn't use sdl2's texture api
<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>yes
<dthompson>sdl2 handles window management, input devices, and creating the opengl context
<wehlutyk>(y)
<wehlutyk>dthompson: so maybe https://wikis.khronos.org/opengl/Buffer_Object_Streaming ?
<dthompson>no that's for buffers, not texture
<dthompson> https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexSubImage2D.xhtml
<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!
<dthompson>that does a glTextureSubImage2D
<wehlutyk>ah! I'll be checking that, have to use chickadee > 0.10 for that
<wehlutyk>thanks!