IRC channel logs

2020-11-28.log

back to list of logs

***sneek_ is now known as sneek
<Formbi>daviid: do you maybe know how to add something to the guile software list?
<daviid>Formbi: yes, you send an email to the author and maintainer of the list - Tantalum, sph at posteo dot eu
<Formbi>thanks
<daviid>np! what would you like to add? just curious
***catonano_ is now known as catonano
<manumanumanu>ArneBab: not umless I have the enery to write a srfi. these things are better kept outside the main distro unless it becomes standsrdised. even then I would bot be sure.
<manumanumanu>john asked me about the for loops, but those were so unportable and full of ad-hoc design decisions. I dont think I would have survived the srfi process
<manumanumanu>whereas everything in goof-loop is trivially portable except one 10 line macro.
***apteryx is now known as Guest65735
***apteryx_ is now known as apteryx
<ArneBab>manumanumanu: by that logic (only standardized), Guile would be missing lots of useful ice-9 functionality. We wouldn’t even have define*
<Formbi>hi
<Formbi>how to make a script go into a REPL if a command-line argument is passed?
<ArneBab>manumanumanu: though shipping them in Guix would already help my usecase a lot :-)
<ArneBab>Formbi: I use -i, see https://hg.sr.ht/~arnebab/dryads-wake/browse/dryads-wake.w?rev=c677727bbd2c#L6
<ArneBab>(this is a much more complex commandline that you’d need for a scheme program)
<Formbi>how to use it in a non-wisp script?
<chrislck>ubuntu 20.10 has guile-3.0.4 \o/
<Formbi>ok, I figured it out
<ArneBab>Formbi: I saw your question only now … good to know you figured it out!
<manumanumanu>ArneBab: well... in ice-9 I dont think i use much more than match and things that cannot be portably implementef anyway. open-process and such.
<manumanumanu>there are thibgs there that have been left to rot as well. gap buffers? lineio? q? poe? those would have been better outside of the main tree. had the packaging situation been better (like, day, chicken-install) these things would have been better off as guile-eggs.
<ArneBab>manumanumanu: I use pipe-open and such.
<ArneBab>manumanumanu: can you package goof-loop for Guix?
<manumanumanu>ArneBab: i will! i am planníng on releasing 0.1 soon. some small adjustments to the iterator protocol, some small error checking and then I'm done. docs and tests, of course. docs are soon done.
<manumanumanu>1.0 will surely be on guix
<ArneBab>Cool! Thank you!
***efraim is now known as efraim1
***efraim1 is now known as efraim
***efraim is now known as efraim1
***efraim1 is now known as efraim
<roelj>In Guile 2.0, how can I access the "call-with-new-thread" from C? For Guile 2.2 and later I'm doing 'scm_c_public_ref ("ice-9 threads", "call-with-new-thread");', but in Guile 2.0 it seems that this procedure is not in the "ice-9 threads" module.
<ArneBab>wingo: did your wingolog certificate expire?
<contrapunctus>o/
<contrapunctus>I'm running a command using the `system` procedure, but I'm not sure how to get the value it returns. `(receive (val) (system ...) ...)` just binds the exit code. `(receive (code val) (system ...) ...)` results in an error - `(vm-run "Wrong number of values returned to continuation (expected ~a)" (2))` 🤔
<RhodiumToad>by "value it returns", do you mean you want to capture the stdout of the invoked command?
<RhodiumToad>because if so, you're probably looking for open-pipe
<contrapunctus>RhodiumToad: ah, I see. Thanks!