IRC channel logs

2026-05-15.log

back to list of logs

<ArneBab>still unexpectedly broken: (equal? a b c) ⇒ wrong number of arguments.
<ArneBab>(apply = (list 3 3)) -- (apply equal? (list 3 3)) works.
<ArneBab>redefining with set! ⇒ (define birch-h/m 3)(set! birch-h/m 3.74) ⇒ error: value failed to match.
<ArneBab>(use-modules (srfi srfi-1)) ;; fails -- isn’t that pure scheme?
<ArneBab>Cannot map a record-type accessor over a list of records.
<kestrelwx>o/
<dthompson>ArneBab: srfi-1 is pure scheme in the latest guile release. I have loaded it from the hoot repl many times while testing.
<ArneBab>dthompson: how did you load it?
<ArneBab>(use-modules (srfi srfi-1)) throws an error here: https://www.draketo.de/software/programming-scheme
<ArneBab>(in the REPL)
<dthompson>ah okay, well that would be because you probably don't have srfi-1 built into your binary
<dthompson>in a development setup, libraries not in the binary would be loaded from disk but that wouldn't be the case on your web page here
<ArneBab>How can I add it? (I just use hoot compile --bundle -fruntime-modules -o repl.wasm repl.scm )
<dthompson>ArneBab: Add (srfi srfi-1) to the imports somewhere in your program
<dthompson>when the runtime modules feature is enabled, no tree shaking is performed so all included modules get compiled in their entirety and are available for use with the interpreter
<ArneBab>dthompson: worked! Thank you!
<ArneBab>⇒ one step further towards full online REPL support of the book.
<ArneBab>maybe I should just add the curly-infix reader example from srfi-105 as preprocessor. That would get most examples working.