***nalaginrut_ is now known as nalaginrut
<nalaginrut>I can't believe that nowadays we still use TCL in dejagnu, why not a Guile unit test framework? <roelj>I have the following `(div ,(vlist-for-each (lambda (pair) `(div ...)) my-vlist-items)). (vlist-length my-vlist-items) returns 2. But only one <div> is created eventually. <davexunit>*-for-each procedures iterate over the collection for side-effects <roelj>davexunit: That's what I'm trying to do (I think), I want to have it insert the `(div ...) part into the existing quasiquote. <roelj>Oh.. I could use vlist-map instead to have it return the values in a new vlist. <davexunit>neither of those approaches will have the desired result <davexunit>the `(div ...) in your example will not appear in the resulting list <davexunit>it's returned from that lambda, but discarded because vlist-for-each doesn't care what that procedure returns <davexunit>which is also not desirable because sxml->xml and other sxml procedures don't know what to do with that. <roelj>So, then wrap the resulting vlist in vlist->list, and you get a list, which is something sxml->xml can deal with..? <davexunit>I'm sure there's also vlist-fold that you can use to just make a list to begin with <roelj>I'm not sure how that would look like, but I'll experiment some more. <paroneayea>davexunit: so in addition to trying to find what's causing the --listen bug in guile 2.2, I'm wondering if, since 8sync supports nonblocking ports anyway, rather than using the polling coop-repl-server I should just run the repl server inside my own event loop <davexunit>you could check, in a non-blocking way, if there's anything to read from the port <paroneayea>davexunit: hm, maybe a problem is that the code switches what the (current-module) is <davexunit>paroneayea: I have no idea if that's a problem or not, so just trying it out sounds good :) <roelj>How can I (open-input-pipe ...) but then instead read from (current-error-port)? <roelj>How can I then read the output of a command that sends it to stderr? <civodul>open-input-pipe uses 'sh -c command', so you could do (open-input-pipe "command 2>&1") i think <roelj>civodul: Heh, good enough :)