<sneek>I've been running for 6 days ***dsmith is now known as dsmith_
***dsmith_ is now known as dsmith
<sneek>This system has been up 6 weeks, 21 hours, 55 minutes ***dsmith is now known as dsmith_
<sneek>This system has been up 6 weeks, 22 hours, 1 minute <sneek>I've been running for 52 seconds ***dsmith_ is now known as dsmith
<sneek>I've been running for one minute and 3 seconds <unknown_lamer>dsmith: so I guess adding multi-server support to sneek *really* would have been a waste of time ha <dsmith>unknown_lamer: Heh. Yeah. Gone gone gone. *unknown_lamer is getting old now <dsmith>Ya. #guile had about 12 users then <dsmith>Not sure why ! commands are not working from my work nick <sneek>Remember, the S in IoT is for Security <sneek>rotty was last seen in #guix 3 months ago, saying: hmm, this is qemu (via libvirt/virt-manager). ***sneek_ is now known as sneek
***amirouche is now known as amirouche`
***amirouche` is now known as amirouche
***apteryx_ is now known as apteryx
<sneek>This system has been up 6 weeks, 1 day, 14 hours, 3 minutes <sneek>I've been running for 16 hours <apapsch>Hi, what is the recommended way to copy from port to port? I have a input port from (pipeline) result and want to write to a file. Currently I (get-bytevector-n!) in 8KB chunks and then (put-bytevector) to the output port, though it seems rather verbose <leoprikler>that is indeed what you're supposed to do unless you somehow want line-based stuff <apapsch>alright, thanks :-) i think i'll go with get-bytevector-n without the !, seems a bit easier to use. guile docs don't mention that it returns an eof-object, while the r6rs doc says so. is it a docs issue or does the impl differ from r6rs? <dsmith-work>apapsch: If you are willing to go linux-specific, sendfile and copy_file_range move data around without copying to userland. <apapsch>dsmith-work: thanks, but that's going even deeper into the weeds :-) i'll make a mental note for the optimization on a rainy day <dsmith-work>Guile does have sendfile. Often used in web servers. copy_file_range is new to me. Looks very interesting. <apapsch>indeed interesting. though it requires a count parameter, which I can't know beforehand (the input port returns the xz output from the pipeline) <wingo>miscompilation bug has me delving in the guts of "match" :/ <wingo>(use-modules (srfi srfi-9) (ice-9 match)) <wingo> (($ <pair> (x ...) (x ...)) <wingo>what do you think (test (make-pair '(1 2 3) '(1 2 3 4))) does *dsmith-work really needs to lean match <wingo>run as (test '((1 2 3) (1 2 3 4))) <wingo>am i misunderstanding something???? <wingo>i thought the two "x"'s in the pattern would unify <wingo>consider (match-lambda ((x . x) x) (_ #f)). returns false unless a pair and car and cdr are equal? <wingo>but (match-lambda (((x ...) (x ...)) x) (_ #f)) -- should return false unless a 2-element list and first and second elements are the same list <wingo>but not the case apparently?? <manumanumanu>Maybe I should continue my work to port Trivia from CL... <wingo>does the same as guile you mean? <manumanumanu>racket match fails: (match x ((list (list x ...) (list x ...)) x)) <wingo>right i think we use foof's match so it would make sense that chibi & guile's behavior has the same bug <wingo>this causes a miscompilation, as you might well imagine :/ <manumanumanu>I thought you thought this was a result of a miscompilation, which is why I compared to chibi. <wingo>seems to be an artifact of the optimizations for (p ...) -- match.upstream.scm:512 <wingo>because ((x . _) (x . _)) does correctly unify x <wingo>manumanumanu: because the compiler uses match, it actually causes a miscompilation :) <manumanumanu>That is better than "We have a miscompilation. it manifests itself in (ice-9 match)", though...