IRC channel logs

2021-01-23.log

back to list of logs

***catonano_ is now known as catonano
<rlb>wingo: correct to assume the excise-ltdl branch shouldn't pass all tests yet?
<rlb>wingo: also perhaps expected, but my ~/.guile readline setup crashes
<rlb>file: No such file or directory"
<rlb>
<rlb>oops
<rlb>In procedure dlopen: file "guile-readline.so", message "guile-readline.so: cannot open shared object
<rlb>file: No such file or directory
***apteryx is now known as Guest53393
***apteryx_ is now known as apteryx
***X-Scale` is now known as X-Scale
***amiloradovsky1 is now known as amiloradovsky
<fnstudio>hi! i need to serialise some data in and out of a guile script; i'm aware there's a guile-json module that i could use but i was wandering if there's any more scheme-y way of doing this, eg with s-expressions?
<rlb>Sure, maybe? If you can just read and write?
<rlb>i.e. that'll produce/consume s-expressions.
<rlb>consume/produce, rather :)
<fnstudio>cool, i'll give that a try, thanks rlb
<mwette>I think you need to reduce to literals. e.g., records won't work I think
<rlb>Yeah, though if your domain is restricted enough, suppose you might set-record-type-printer!, and then traverse the input on read to rebuild them...
<leoprikler>real pro hack: extend the read syntax to read your records :)
<rlb>...read-hash-extend
<leoprikler>but assuming you get everything down to lists, it's just read and write/pretty-print
<rlb>Any idea if our pretty-printer is decent wrt performance? The clojure one *expensive* (or was).
<rlb>(last time I noticed)
<leoprikler>I wouldn't call it a million times per second, but if you just need to write to a file now and then it should be fine.
<leoprikler>pretty-printing is an expensive operation by definition
<fnstudio>leoprikler: yes, i'm not worried about performances in this particular case but i'd still like to do it in a good way; in other words, i'm looking for what in python would be a dump to json
<leoprikler>I think write is closer if python json dumps don't do formatting.
<fnstudio>leoprikler: excellent, thanks
<leoprikler>I'm just suggesting pretty-print in case you want people to be able to meaningfully edit your dumps.
<fnstudio>i see, makes sense, yes it'd be a good nice-to-have
***metro is now known as metreo
***nckx[2] is now known as nckx
<Sven_vB>hi :)
<Sven_vB>in https://www.gnu.org/software/guile/docs/faq/guile-faq.html Q5 code example there's (req #&amp;key foo bar), should that "amp;" be there?