IRC channel logs

2020-03-10.log

back to list of logs

<chrislck>sneek:botsnack
<chrislck>:(
<wleslie>needs more space
<wleslie>sneek: botsnack
<sneek>:)
***apteryx_ is now known as apteryx
<rbarraud>Howdy
<rbarraud>Anyone [else] got Guile-3.0.1 running under FreeBSD 12.1 yet?
<rbarraud>Looks like I have.
<rbarraud>Anyhoo Big Thanks to the team behind the new release.
<rbarraud>:-)
<rbarraud>I'm in NZ BTW
<rbarraud>Getting lateish down here...
<rbarraud>And the nights are lengthening...
<rbarraud>Snarfed my wonton soup, zzz follows shortly.
<rbarraud>[Modulo ADHD-related insomnia :-/ ]
<rbarraud>Who's awake and who's where, I wonder?
<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]
<rbarraud>?
<rbarraud>Off to logbot page to catch up a bit.
<dsmith>rbarraud: Did it Just Work, or did you need to adjust something? (for fbsd)
<rbarraud>dsmith: I had to RTFM ;-)
<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
<rbarraud>:-)
<RhodiumToad>do you have any experience with freebsd ports? I can assist, or I can write up what you did as a port
<rbarraud>Not as such
<rbarraud>I'd consider trying though.
<rbarraud>Not tonight ;-)
<rbarraud>0135 NZDT here (UTC+1300)
<rbarraud>Kewl - thanks for the offer.
<rbarraud>I'll attempt to recover shell Hx for what I did and try to put together a sensible sequence from that.
<rbarraud>...tomorrow :-)
<RhodiumToad>right now there's guile1 and guile2 ports that install a "guile" binary
<rbarraud>Cheers, I'm off to (overdue) Zzz's
<rbarraud>Yup
<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>from ports or pkg
<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
<rbarraud>Kewl
<rbarraud>The alt is 'Version Heck' ;-)
<RhodiumToad>having another windmill to tilt at probably wouldn't hurt much :-)
<rbarraud>I'm a bit short of donkeys at the moment...
<rbarraud>...but not asses ;-)
<rbarraud>It's a bit sad how many ports have no maintainer now
<rbarraud>Anyhoo better Zzzz
<rbarraud>Catch you soonish again
<rbarraud>Cheerzzz
<dsmith-work>Hey Hi Howdy, Guilers
<nerdypepper>o/
<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>oh that's bad formatted
<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>maybe (with-input-from-string str read) ?
<RhodiumToad>or better, (call-with-input-string str read)
<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))
<RhodiumToad>that'll read just one s-expr
<chrde>well on top of that I can build some sort of loop tile <eof>
<chrde>right? Thanks RhodiumToad
<RhodiumToad>(let loop ((s (read))) (unless (eof-object? s) (pretty-print s) (loop (read))))
<RhodiumToad>or something of that ilk
<chrde>works like a charm, thank you
<rbarraud>Hey catonano
<rbarraud>:-)
<rbarraud>Nice to see you again :-)