Write first Common Lisp programs at the REPL
8 steps · about 3 h 10 min · Beginner
- Install SBCL and Quicklisp and start a REPL (guide, The Common Lisp Cookbook, 20 min)
Gets a working Lisp environment set up on your machine.
- Load a library and run code in the REPL (guide, lisp-lang.org, 15 min)
A short walkthrough of the interactive workflow Lisp is known for.
- Tour the REPL and save code to a file (guide, Practical Common Lisp, 25 min)
Shows how to evaluate, redefine and load code incrementally.
- Define functions with optional and keyword arguments (guide, The Common Lisp Cookbook, 20 min)
Covers defun, lambda and argument lists you will use everywhere.
- Store data in lists, vectors and hash tables (guide, The Common Lisp Cookbook, 30 min)
Explains which built-in structure to choose and how to access it.
- Repeat work with loop, dolist and mapcar (guide, The Common Lisp Cookbook, 25 min)
Side-by-side iteration idioms for everyday tasks.
- Build a small CD database program (tutorial, Practical Common Lisp, 45 min)
A first complete program ties functions, lists and file saving together.
- Install libraries with Quicklisp (link, Quicklisp, 10 min)
The standard way to pull in community libraries for your programs.