News for hackers. Stuff that matters.
Re:Reading a Programmer's Guide to Common Lisp by susam on Thursday February 22, 2024 @09:01AM (#39467166)
Are you using the CL REPL directly on a terminal emulator? I do not type expressions directly into the REPL often. I do sometimes but not often. Instead I send expressions right from the editor to the REPL. The REPL itself is available as a separate buffer in the editor. How this is done depends on the editor/IDE. Some examples:

• With Emacs + SLIME, we can type C-M-x (evaluate current top-level form) or C-x C-e (evaluate the expression before the cursor).

• With Vim + Slimv, it is ,e and ,d respectively.

• Yet another popular option is Vim + Vlime in which case the key sequences are \ss and \st instead.

I have written two guides to explain how to create such a development environment from scratch and get started with such a setup:

• https://github.com/susam/emacs4cl

• https://susam.net/lisp-in-vim.html

There are commercial implementation + IDEs too which according to many people provide even better integrated development experience. The most popular among them is perhaps LispWorks. I use Emacs + SLIME myself.

Re:Reading a Programmer's Guide to Common Lisp by ryan-duve on Thursday February 22, 2024 @09:07AM (#39467247)
Yes, I was directly typing in the REPL. I think Slimv may have been the thing I'm missing. When I'm back to my laptop I will give it a shot. Thanks!
Re:Reading a Programmer's Guide to Common Lisp by lispm on Thursday February 22, 2024 @09:43AM (#39467785)
I would type into a REPL, but not in a terminal. Typically one would run a REPL inside an editor or something similar. The tool to run a REPL is usually called a "Listener" in Lisp. For example I would use GNU Emacs, call SLIME and use a SLIME REPL.

Lisp development in a terminal, without an editor, is not so helpful.

Re:Reading a Programmer's Guide to Common Lisp by ryan-duve on Thursday February 29, 2024 @09:20PM (#39557812)
It's been a week so I can't edit my other response to this, but yes, Slimv was what I was missing. I read your second link and followed the instructions and am now able to actually learn this language. Thank you for sharing.

For anyone else that knows Vim but can't seem to get a good CL environment going, read https://susam.net/lisp-in-vim.html