IRC channel logs
2020-12-29.log
back to list of logs
<laikq>Ahoj! Does someone know if guile has self-documenting capabilities? I've seen `(define (...) "Documentation string!" ...)` being used, but is there a way to extract the documentation string? <surpador>laikq: you can use `,d PROC` at the repl or (procedure-documentation PROC) in code <surpador>,d is short for ,describe. Not sure if there's other ways, others might know! <surpador>The module (ice-9 ls) doesn't seem to be documented in the reference manual- is it documented anywhere yet besides the source? Looking at the code for the `ls` procedure, but I can't seem to figure out how to invoke it correctly. It seems like it gives a list of names defined in a given module, which seems like it would be really useful at the repl, but calling it as e.g. (ls '(ice-9 popen)) doesn't seem to work. <chrislck>any one knows magic to dump all available modules? <Aurora_v_kosmose>chrislck: You'd probably have to tap into whatever whatever functions & packages guile uses to search your load path. <Aurora_v_kosmose>Anyone knows what feature guile-fibers required that wasn't available in earlier versions? <RhodiumToad>rlb: isn't that kind of thing one of the examples of syntax parameters? <rlb>hah, maybe? I fixed the immediate issue, but I forgot about that. Thanks, I'll refresh. <tohoyn>just made "git pull" in guile subdirectory. the bug still exists. <leoprikler>try inserting (peek 'compute-compiler from to optimization-level warning-level opts) in system/base/compile.scm (compute-compiler) <leoprikler>should be line 251 in the release source, dunno if something changed since <leoprikler>interesting, so tree-il is resolved to a language, but bytecode is resolved to #f <leoprikler>for reference, what'd be the trace if you compiled scheme to bytecode in one go? <tohoyn>leoprikler: you mean from scheme to bytecode? <leoprikler>currently stuck at BOOTSTRAP GUILEC ice-9/psyntax-pp.go, so it'll take some time before I can experiment on my own <spk121>I wonder collectively how many days my computer has spent compiling psyntax-pp