IRC channel logs
2024-10-08.log
back to list of logs
<rlb>...I haven't been following, but offhand, wrt the compilation messages, is guile unusual in printing all that by default? i.e. I thought some subset of python, perl, emacs, and/or ruby might do something similar without the noise -- though maybe they don't cache per-user (well I think emacs native compilation does now). <rlb>I also vaguely wondered about typical "log levels" and putting those messages at debug, but decided not to open that can of worms atm :) <dsmith>I think most compilers (well, unixy ones) are silent except for warnings and errors. <dsmith>Unless some verbose option is selected <dsmith>I was working with an IBM backup system (Tivoli Storage Manager), and you could write SQL queries, like which tape a certain file was on, and it would *ALWAYS* spit out a copyright notice first thing. <dsmith>Very annoying for scripting things. <dsmith>Every command had to piped through tail or something to strip it out. <mange>What's the simplest way to run a program with stdin from a string, and capturing stdout to a string? I'm looking at spawn, and I've got something working, but it seems pretty involved... I'm wondering if there's something more straightforward that I'm missing? <mange>Right, okay. That is much cleaner than what I got to with spawn. Thanks! :) I assume I'd also have to use waitpid (maybe with WNOHANG) to know when the process is finished, too? <dsmith>Depends on the command I think. That example closes the command's stdin, so it gets EOF. Then reads one line. You could instead read all the output until EOF. <dsmith>If the output will be more than a pipebuf (64K by default on Linux I think) the the command will block until that's been read. <mange>My input will definitely be <256 characters, and I expect my output to be <100, so that should be fine. <old>and whenever I modify the script and check the diff, I have something like: @@ -355,9 +355,9 @@ exec guile --no-auto-compile -e main -s "$0" "$@" <old>even though the modification is done in a procedure. Looks like git gets the wrong context here in a way <Arsen>git_config diff.elisp.xfuncname \ <Arsen> '^\([^[:space:]]*def[^[:space:]]+[[:space:]]+([^()[:space:]]+)' <Arsen>run that for your repo, and... <Arsen>obviously adjust for scheme syntax