IRC channel logs
2026-06-27.log
back to list of logs
<rlb>...how have I not been using ${x@Q} all the time in bash? (Have to see what version added it.) <rlb>So much more convenient than printf %q in some cases. <dsmith>ACTION looks at the bash man page.... <bremner>is there a published statement about LLM generated contributions to Guile? I didn't see one in a cursory look at the web site. <Alavi_me>I'm searching about janet and guile, They both seem to have the same purpose and philosophy. Janet is more clojure-y and more batteries included. But what are the main differences and pros/cons in you guys' opinion? I can't find much online. <ekaitz>hi! can I force guile to be single threaded? <ekaitz>i mean, i want it to only use the 100% of my CPU, not more <identity>ekaitz: i would guess you can set NPROC RLIMIT to 1 <old>ekaitz: use taskset(1) <ekaitz>i'll read that too (i've never done this before) <ekaitz>old: reading through it... I don't want guile to run in an specific processor but just using one <identity>ekaitz: if you allow it to run only on e.g. CPU 1, it should not be able to use more than 100% CPU, as it is only allowed to run on one (specific) core <ekaitz>identity: yes, but it wouldn't change the CPU, and any normal single-threaded long-running process would <ekaitz>i mean, it's not the "natural" environment <ekaitz>(i'm doing this whole thing as a performance comparison to GNU Mes) <bremner>ekaitz: depending on your OS, you may want to look at cgroups <rlb>bremner: hmm, I don't know of any right now. <rlb>I'm not sure I knew this. If you want guile to pick up ../foo.go for the invocation "guile ../foo.scm", it's "guile -C . ../foo.scm" not "guile -C .. ../foo.scm", and it won't find it otherwise. <rlb>But default, I'd expected "guile ../foo.scm" to look for foo.scm.go in the path, not ../foo.scm.go... <rlb>Is there a way to invoke ",time x" as a function from a script? <rlb>nvm, I just copied and adapted the code, though seems like it might be a nice utility function to have someday. <old>ekaitz: on linux what you want is probably mm_cid then <old>idk if it's available as of right now, but you can limit the concurrency of a memory mapping process to a number <old>so no more than X threads in your process can run in parallel, without touching the CPU masks <ekaitz>i don't know what that is either <old>it's part of the RSEQ system call and is ABI between the kernel and userspace. But you probably need a recent glibc to handle that <old>so your best bet is to use cgroup <old>and limit the load of your process <ekaitz>old: i was looking for a way to just call guile --jobs=1 or something so I could test the single thread performance