***apteryx_ is now known as apteryx
<rbarraud>Anyone [else] got Guile-3.0.1 running under FreeBSD 12.1 yet? <rbarraud>Anyhoo Big Thanks to the team behind the new release. <rbarraud>Snarfed my wonton soup, zzz follows shortly. <rbarraud>Came here from #SICP which y'all alre welcome to visit and hang out in :-) <daviid>str1ngs: I didn't have time yet, but I will look into this problem asap, thanks for the report , and sorry for the regression, will let you know asa have a solutin <rbarraud>What would be a suggested test suite to give guile-3.0.1 a "Jolly Good Thrashing" [Fawlty Towers ref] <dsmith>rbarraud: Did it Just Work, or did you need to adjust something? (for fbsd) <rbarraud>...which told me which packages Guile-3 depends on; Installed those. <rbarraud>And there is an additional --something-or-other parameter to ./configure which I had neglected. <rbarraud>Once the configure worked it was painless. <rbarraud>It's overwritten guile2.2 though ... probably avoidable, proably mea cupla and more RTFM'ing reqd <RhodiumToad>do you have any experience with freebsd ports? I can assist, or I can write up what you did as a port <rbarraud>I'll attempt to recover shell Hx for what I did and try to put together a sensible sequence from that. <RhodiumToad>right now there's guile1 and guile2 ports that install a "guile" binary <rbarraud>It's quite irritating that you have to remove 1.8.8 to install 2.2 <RhodiumToad>getting guile2 and guile3 to coexist should be possible, but might require calling the new binary "guile3" at least to begin with <rbarraud>consequentially IIRC LilyPond and GNU-radio (and osmocom?) have to be removed as well <rbarraud>It should IMO work more like the way Python 2.7, 3.x do <rbarraud>Exactly... that's how it should be IMO too <RhodiumToad>well, I'm trying to get that sort of thing done for Lua right now <RhodiumToad>having another windmill to tilt at probably wouldn't hurt much :-) <rbarraud>I'm a bit short of donkeys at the moment... <rbarraud>It's a bit sad how many ports have no maintainer now <roelj>Do the web modules in Guile support chunked transfers? I'd imagine write-response that takes a port which I can write chunks of data to? <chrde>in a shell script, how can I call pretty-print on some code that I receive from stdin? <sneek>Welcome back chrde, you have 1 message. <sneek>chrde, ng0 says: I feel like there's a misunderstanding, and whatever happened last year can remain where it is, in the past. If you need help with updating PyBitmessage guix definition, get in touch <ng0>Oo well please don't, I have no idea when I wrote this. <ng0>2018? 2019? Slow mode of communication :D <chrde>i want to run this script (formatter.scm) like "less some_file.scm | formatter.scm" <chrde>#!/usr/bin/env shcontent=`cat`exec guile -e main -s "$0" "'$content"!#(use-modules (ice-9 pretty-print))(define (main args) (write (pretty-print (read (cadr args)))) (newline)) <chrde>well the issue is that `args` is a string containing scheme code, and in the documentation I see examples like <chrde>(pretty print '(define ...)) <chrde>how do I go from a string to a quoted version of its content? <RhodiumToad>why have a string when you could just read from stdin, though? ***matijja is now known as irk
***irk is now known as matijja
<chrde>im fairly new to guile/scheme - not sure what is the best approach <RhodiumToad>so rather than suck stdin into a shell var, just use (read) in the scheme code - that'll read one s-expression from stdin and return it, or return an eof object at end of file <janneke>chrde: (with-input-from-string read)? <chrde>(define (main args) (write (pretty-print(read))) (newline)) <chrde>well on top of that I can build some sort of loop tile <eof> <RhodiumToad>(let loop ((s (read))) (unless (eof-object? s) (pretty-print s) (loop (read)))) <chrde>works like a charm, thank you