IRC channel logs

2022-09-29.log

back to list of logs

<daviid>Zelphir: yes
<daviid>Zelphir: you may configure the repl printer very easily https://www.gnu.org/software/guile-cv/manual/html_node/Configuring-Guile_0027s-repl_002dprint-procedure.html
<daviid>but you need to touch (ice-9 boot-9) to there after be able to also easily configure the 'raised exception' printers
<daviid>which is not for the 'fait hearted', https://www.gnu.org/software/guile-cv/manual/html_node/Configuring-Guile_0027s-raised-exception-system.html but there is currently no other way
<daviid>Zelphir: very ironically, guile's backtrace printers do truncate their ourput by default ...
<Zelphir>OK, then I have to introduce some distinction, specifically for my struct type or have in generally print things differently. It would probably not hurt to pretty print structs in general. Hmmm. Not sure I want to go that far to be honest ^^ I think I need to consider it (After all, how often do I update Guile itself? Usually only when a new version is on Guix. So maybe my self-compiled thing would stay up to date for quite a while. Hmmm)
<Zelphir>Ah right.
<Zelphir>And sometimes that truncation for the backtrace is annoying, because it hides something :D
<daviid>noone wants to do that, and then i had to abandonn the idea to use guile to teach anythinbg to anyone (when doing math work i mean)
<Zelphir>I guess for Guile-CV it is useful, because pictures are huge arrays?
<Zelphir>I also thought maybe I can use normal Guile REPL, instead of Geiser, to not have the long lines issue.
<daviid>it is usefull for anyone who needs to work with large to very large data structures
<daviid>not just guile-cv
<daviid>Zelphir: I highly recpmmend you do the config in thoselinks, it really isn't that difficult for someeone like you
<daviid>but difficuky for the guile-cv audience iwas targeted
<Zelphir>OK that would mean though, that I do not install Guile via Guix any longer, but use a version installed in my system – Which would be OK. But would it be able to use libraries installed using Guix?
<daviid>Zelphir: youshould patch the guilepackage in guix maybe, not a guix user so i can't help much here ...
<daviid>but there are (advanced) guix users and contributors here, hopefully they can help you
<Zelphir>I think the Guix package would sooner or later be updated by Guix contributors anyway, if I got this change into standard Guile. Not sure they would accept a patch for Guile only in Guix or that would even be "practical" as they might reference the official git repository of Guile anyway, to download the source. So I guess the main task would be to get it into standard Guile. *thinking face*
<daviid>hum, i meant patch your own version, not a 'guix patch for all'
<Zelphir>Ah, then I need to look into how to make Guix channels : )
<Zelphir>Which could be useful anyway.
<daviid>i think if you know where ice-9/boot-9.scm[go] are, you may just as well 'manually' update, cimpile and install the .go, just as i do here on debian...
<daviid>*compile
<daviid>that should workfine on guix as well
<Zelphir>Ah, I am merely using Guix as package manager on "foreign distro". Should have written more precisely.
<Zelphir>Haven't looked into setting up a while Guix system.
<daviid>tha's ok, i was assuming you were running guix in a host ...
<daviid>even running guix 'in a host', you'd just need to find where those files are, update compile and install - just making sure the timestamp of the scm file 'preceeds' the timestamp of the go file
<daviid>lloda: are you using guix? can you help Zelphir maybe?
<daviid>where are the guix super heroes when we need them :)
<Zelphir>Heh, well, I can always write on the mailing list or something.
<jab>daviid: I heard you were looking for me?
<jab>just kidding. ludo is probably the one guix needs/deserves
<daviid>Zelphir: you need to find the correspnding locations, in guix, for these locations in other distro:
<daviid>$prefix/share/guile/site/3.0 and $prefix/lib/guile/3.0/site-ccache
<daviid>Zelphir: which you should be able to obtain caling guile procs iirc
<daviid>(%global-site-dir)
<daviid>and (%site-ccache-dir)
<daviid>there you are :)
<Zelphir>I will store that info for later. 1am here :)
<Zelphir>Procrastinating the action of going to bed :D
<daviid>ok, good night
<Zelphir>Good night!
<daviid>sneek: later tell Zelphir, actually, the ice-9 modules would be in $prefix/share/guile/3.0/ice-9/, and that dir, nor $prefix/share/guile/3.0 is not returned by any guile proc, you need to build the result 'manually' using what ever guix gives you for$prefix, then (string-append <guix-prefix> "guile/" (effective-version) "ice-9") - copy/update boot-9.scm, compile and install the go file in
<sneek>Okay.
<daviid>sneek: later tell Zelphir, in $prefix/lib/guile/3.0/ccache/ice-9, so whatever guix gibes you for $prefix and 3.0 being (effective-version) ... the important thing is that (%site-ccache-dir) won't retrun what yu needm this is for user installed libs go file, guile's ccache is $prefix/lib/guile/3.0/ccache
<sneek>Okay.
<daviid>sneek: those steps, to identify where guile's modules are, are very well described in the links i posted, Configuring Guile for Guile-CV, Configuring Guile’s repl-print procedure and Configuring Guile’s raised exception system - given autotool chain vars, just need to ask guix super heroes how to translate those for guix ..
<sneek>I'll keep that in mind.
<daviid>sneek: later tell Zelphir those steps, to identify where guile's modules are, are very well described in the links i posted, Configuring Guile for Guile-CV, Configuring Guile’s repl-print procedure and Configuring Guile’s raised exception system - given autotool chain vars, just need to ask guix super heroes how to translate those for guix ..
<sneek>Will do.
<daviid>hum, pkg-config vars rather
<daviid>sneek: later tell Zelphir hum, pkg-config vars rather
<sneek>Got it.
<daviid>sneek: later tell Zelphir, i found what you need for thelocation of ice-9 file, here - (%library-dir) -> Return the name of the directory where the Guile Scheme files that belong to the core Guile installation (as opposed to files from a 3rd party package) are installed.
<sneek>Got it.
<daviid>sneek: later tell Zelphir all this 'prose' because the guix super heroes were asleep or drinking and dancing at the guix's 10y anniversary :)
<sneek>Will do.
<lloda>daviid: i don't use guix
<daviid>lloda: ok
<daviid>lloda: it would be nice if you could further investigate your idea to not to have to make changes in (ice-9 boot-9) to configure the raised exception printers to truncate their output ... it is a recurrent quiz here, no so often, but the same 'drama' everytime we need to explain how to acheive this simple goal ...