IRC channel logs

2026-01-01.log

back to list of logs

<dsmith>sneek, botsnack
<sneek>:)
<dsmith>!uptime
<sneek>I've been faithfully serving for 2 months
<sneek>This system has been up 11 weeks, 6 days, 2 minutes
<mwette>sneek: botsnack
<sneek>:)
<sneek>mwette: Greetings :)
<mwette>sneek: botsnack
<sneek>:)
<lechner>Hi, (call-with-input-file "file-name" read) only reads the first sexp. How may read all, please?
<identity>lechner: keep calling read until eof
<mwette>lechner: get-string-all from (ice-9 textual-ports)
<mwette>oops: sorry sexps not text
<mwette>I have used what identity suggested.
<rlb>if you need the result "in order", reverse! after looping is a touch more efficient; something like this (untested): https://paste.debian.net/hidden/6839f9d1
<lechner>rlb / identity / mwette / beautiful, and thanks! also, happy new year!
<rlb>In clj you could also write (take-while not-eof (repeatedly #(read port eof)), though you need to define your own eof singleton there, and that's lazy. I don't know offhand if we have something similar in the srfis (e.g. streams or something).
<rlb>I'd just write the loop in guile, unless I really needed "more".
<lechner>Hi, should pretty-print emit multi-line strings instead of \n inside strings?
<identity>lechner: multi-line strings, \n is by no means pretty
<mwette>you could try truncated-print `,use (ice-9 pretty-print) ,d truncated-print'
<mwette>if you don't care about the strings
<lechner>actually, in the REPL it looks like my original, just not when I craft my own executable
<lechner>Hi, how may I tell pretty-print about my Emacs local variables, please?
<lechner>Also, pretty-print really does not produce multi-line strings, does it?
<mwette>guile texinfo does not seem to have anything to produce info files. Is the info file format published somewhere? I could not find it, and the emacs formatter is 'obsolete'.
<dsmith>mwette, You probably want makeinfo
<mwette>dsmith: yep, but I'm toying with idea of no install dependencies (besides guile)
<mwette>I will probably end up creating a separate -doc package.
<mwette>Something will pull in latex. On guix texlivetexmf is a 4 GB package.