IRC channel logs

2018-05-13.log

back to list of logs

***Raimondii is now known as Raimondi
<jorgesumle>How can I install guile-commonmark in Debian?
<rain1>hi
<jorgesumle>hi
<mwette>greetings
<mwette>I'm reading throught the manual section on CPS today.
<dadinn>hi all
<dadinn>quick question about getopt-long. Is there a way to print usage help from the grammar/spec?
<dadinn>I mean some builtin function which generates it easily
<dadinn>and maybe given some optional defaults map...
<dadinn>... yeah, saying this, I would actually rather expect the defaults given at the grammar/spec, instead as an extra arg to option-ref :/
<mwette>getopt-long is deprecated in favor of srfi-37
<mwette>but that does not provide help spec like python argparse does :(
<mwette>if that is what you are looking for
<dadinn>argh, getopts-long is more declarative, and I prefer that...
<dadinn>but why does it have to throw an error for extra properties! :(
<dadinn>i could have easily added 'description' and 'default' properties, then use it to generate the usage help... this insanity!
<dadinn>I am sure getopt-long was written by a C or ML/Haskell developer :P
<dadinn>sunday evening flame war, start! :D
<dadinn>but really, why would someone write a library, in a language aimed for extensibility, and make it imposible to extend :'(
<rain1>dadinn, it sounds like you have a really good idea for how to improve this library
<rain1>I see no reason why guile would not accept this change (making it extensible)
<dadinn>rain1: is it the github ice9 repo i should submit a pr to?
<rain1>im not really sure, guile contains a copy of ice9 too
<rain1>maybe just building a proof of concept and bringing it up on the ML for discussion could be a good start
<mwette>I submitted changes for getopt-long and got the idea it may be frozen. I wanted it to accept some arguments repeatdly. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21698
<dadinn>what is this srfi-37 btw?
<mwette>dadinn: https://srfi.schemers.org/srfi-37/srfi-37.html
<mwette>or look at .../share/guile/2.2/scripts/compile.scm for example
<dadinn>mwette: couldn't find examples how srfi-37 works. how come it doesn't use spec/grammar?
<dadinn>this args-fold thing is not for my taste.
<dadinn>so i suppose the final conclusion is ice9 won't accept changes, and i can take it as is or leave it.
<manumanumanu>My libsodium wrapper (still a wip) is finally online: https://bitbucket.org/bjoli/guile-libsodium/
<manumanumanu>good night!
<louishaemmerle>can I access the stack manually when an error is thrown?
<louishaemmerle>I am writing a unit testing framework, so I would like to have that kind of access
<louishaemmerle>I discovered https://www.gnu.org/software/guile/manual/html_node/Throw-Handlers.html but it doesn't tell me how to access the stack
<louishaemmerle>never mind, I found the docs
<dadinn>how do i enable srfi features? use-modules don't seem to work
<dadinn>`fold` is only available in srfi-1 and it is not built-in, but use-modules not work either :(
<hugo>dadin: (use-modules (srfi srfi-1))
<hugo>dadinn ^
<dadinn>hugo: thx
<hugo>no problem