IRC channel logs

2026-02-10.log

back to list of logs

<apteryx>how can I attach any Guile interpreter to an existing REPL socket?
<apteryx>there's 'guile --listen', but no 'guile --connect'
<mange>I don't know if you can, but you can use telnet?
<apteryx>I'll try that
<apteryx>doesn't seem to work, unless 'telnet -b /var/run/shepherd/repl' is not the way I'm supposed to use it.
<daviid>apteryx: 6.16.14 REPL Servers
<apteryx>yeah, I already have the server (the Shepherd REPL service) and I want to connect to as a client. Do I need to write it up myself?
<mange>Oh, you're attaching to a Shepherd socket? I don't think that's a Guile REPL, I think it takes Shepherd commands using its own RPC representation.
<mange>Or maybe I don't understand how this stuff works in the Shepherd any more. :)
<apteryx>if I use Geiser I can connect to it, so it's a legit Guile REPL, it seems.
<apteryx>but right now I'm attempting to test something in a headless VM and all I have there is Guile; I could probably put socat and attempt to use that, but I thought I must be missing some module that makes this trivial?
<daviid>apteryx: when i tried, i also used geiser, i don't know how to connect 'otherwise'
<apteryx>hehe, if we can't find a quick and easy way, maybe we can draft a 'guile --attach' new option
<apteryx>so far I'm getting by with emacs-no-x + emacs-geiser + emacs-geiser-guile and then M-x geiser-connect-local RET /var/run/shepherd/repl RET
<ArneBab>apteryx: I use telnet
<apteryx>which arguments do you use?
<ArneBab>guile --listen & telnet localhost 37146
<ArneBab>(you may want to change the port)
<ArneBab>apteryx: but in separate shells …
<apteryx>ah, guile --listen listens to some port; what if it's a UNIX socket file?
<apteryx>like /var/run/shepherd/repl ?
<ArneBab>apteryx: I don’t know …
<apteryx>no worries
<ArneBab>apteryx: stackoverflow says "netcat-openbsd" nc-U /.../
<chrislck>sneek: botsnack
<sneek>:)
<chrislck>:)