IRC channel logs

2025-08-25.log

back to list of logs

<ttz>Hi, I am stumbling on an easy problem while trying to write a macro: I need to generate temporary names for each functions given, something like (let*-values (((tmp1 v) (f v)) ...) (values (lambda () (tmp1) ...) v)). I can't get the syntax right to generate the names (tmp1 ...). The value name v should be constant since it is reentrant.
<rlb>If you mean one temp for each of a set of inputs, is generate-temporaries helpful?
<rlb>ACTION has to wander off.
<ttz>wow I didn't know of this helper, thanks
<ttz>I actually realized the error was not where I thought it was, but using it is a net improvement anyway
<ttz>Is there some subtleties when exporting macros from library? It seems my macro works when top-level but not when placed inside a library...
<ttz>mmh an import was missing for the define-lambda but the error was "unknown location: unexpected syntax in form ()"
<sneek>dsmith: wb!
<dsmith>sneek, botsnack
<sneek>:)
<omentic>hey yall, i wrote an effect handlers library for guile: https://codeberg.org/apropos/cio
<omentic>gotta get more examples implemented (async esp) but i'm p happy w/ it and thought i'd share :-D
<dthompson>congrats omentic :)
<cow_2001>what is the closest guile expression to bash's "foo | bar"?
<cow_2001>in terms of buffering, processes quitting, whatever
<cow_2001>whathaveyou
<cow_2001>i can use spawn and pipe but then i need to write things explicitly
<cow_2001>i mean, read bytes from foo and write them to bar, and how that's done is decided explicitly by me
<cow_2001>same for waiting on pids and all that
<rlb>(pipeline ...)?
<cow_2001>oh
<cow_2001>~;~