Start Guile shell script that listens on a port for REPL client

Guile, while running a program, can listen to a port for a REPL client, like a Swank server on SBCL.

Here's how to connect from Geiser to a running Guile script.

Start the Guile shell-script

This is how to start a Guile script:

#!/usr/local/bin/guile3 \
-e main --listen -s
!#
(use-modules (...))
...

Note the the first line starts with #! and third starts with !#.

The first line contains the name of the Guile executable and the path to it. This example is from FreeBSD.

Guile listens default to port 37146.

Connect Geiser to the port

In Emacs, run:

M-x geiser-connect

This will prompt of a host, with localhost as default, and a port with 37146 as default.

This gives a REPL in the running Guile script.

Have fun!

Tags:

⇽ Enhanced Motif Window Manager on FreeBSD Books and some interesting pages I read in June 2026 ⇾


Webrings

netizen-ring-button

<<- random ->>


100% made with ♥ by a human — no cookies, no trackers.
Proud member of the 250kb.club, the no-JS.club, the Blogroll.Club, and the Bukmark.Club.
Don’t let a billionaire’s algorithm control what you read — use an RSS feed reader.