IRC channel logs

2023-11-29.log

back to list of logs

<graywolf>I am reading the HACKING file, in particular regarding (add-hook 'before-save-hook 'delete-trailing-whitespace). For filesys.c it introduces fair amount of changes. How should that be handled? Inside one patch with my change? Two patch series (my change + whitespace cleanup)? Separate patch send separately? Or just not touch it?
<sneek>Welcome back dsmith
<lloda>i actually toggle that off when i edit guile files bc otherwise most of the patch is whitespace trimming. There's a lot of trailing whitespace in guile unfortunately
<lloda>i'd be happy to remove it all in a single patch, but it would be annoying for anyone who git blames
<jpoiret>lloda: i believe there's something you can put in a git repo to ignore some commits when blaming
<jpoiret>although itd have to be configured manually for each checkout unfortunately iiuc
<graywolf>lloda: Actually git blame supports -w flag, so I do not seen any potential for annyances there...
<cow_2001>dark mode GNU Guile gnu is spooky! :D http://0x0.st/HxPJ.webp http://0x0.st/HxPy.webp
<morenonatural>hey, y'all, is there a function to copy the content of one port to another?
<morenonatural>is (put-bytevector some-out-port (get-bytevector-all some-in-port)) The Way?
<samplet>That will do it, but it puts the whole contents of the port in memory.
<samplet>Another option is to loop reading and writing in chunks.
<samplet>Here’s an example of the latter from Guix: https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/utils.scm#n1048
<morenonatural>samplet, oh, I see... thanks
<morenonatural>I had the idea there was a different kind of abstraction, but seems there isn't
<morenonatural>kinda like ostream_iterator in c++
<morenonatural> https://en.cppreference.com/w/cpp/iterator/ostream_iterator
<morenonatural>in which you don't write a line to copy, but rather state objects (that will do the copy)
<morenonatural>(not judging or requesting, btw... just feeling like I'm about to do a non-standard lib for my own tastes)
<dsmith>sneek, botsnack
<sneek>:)
<dsmith>!uptime
<sneek>I've been serving for 21 days
<sneek>This system has been up 34 weeks, 4 days, 3 hours, 43 minutes
<apteryx>srfi 178 sent to guile-devel