Getting started with Guile and Guile-Studio

Is there a guide anywhere for using Guile in an IDE? I’ve successfully used DrRacket but Guile-Studio has me totally stumped and there doesn’t appear to be any documentation for it.

After typing in (display “Hello World), how do I go about running the program?

I don’t have any personal experience with Guile Studio to share but my understanding is that it’s an opinionated Emacs setup. Other than that all I know is that the creator hasn’t been very active in the community for awhile.

If you’re comfortable with Emacs already or are otherwise fine with learning it, the must-have extension for Guile development is Geiser. For editing any kind of Lisp I also recommend paredit and rainbow-delimiters.

Emacs is by far the most fully featured editor for Guile, but it has a steeper learning curve than most other editors. Outside of Emacs, the next best editor for Guile is VSCode. @tsyesika has been chipping away at an extension called Guile Scheme Enhanced that you could try.

The simplest possible thing to do is take the editor you are currently using, write some Scheme code, save it, and then run guile your-file.scm from the command line.

2 Likes

Just to add, there’s a recommended setup in the docs Setup for hacking on Goblins (Spritely Goblins) . I’ve been playing around with it for a little while now and it’s an absolute joy to work in, but I used Emacs extensively up until 10 years ago and retain a lot of the muscle memory.

If you’re coming from a vi variant evil mode ( GitHub - emacs-evil/evil: The extensible vi layer for Emacs. · GitHub ) should make Emacs feel very familiar, although I don’t know how well it plays with any of the relevant extensions.

2 Likes