Write first Common Lisp programs at the REPL

8 steps · about 3 h 10 min · Beginner

  1. 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.

  2. 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.

  3. Tour the REPL and save code to a file (guide, Practical Common Lisp, 25 min)

    Shows how to evaluate, redefine and load code incrementally.

  4. Define functions with optional and keyword arguments (guide, The Common Lisp Cookbook, 20 min)

    Covers defun, lambda and argument lists you will use everywhere.

  5. 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.

  6. Repeat work with loop, dolist and mapcar (guide, The Common Lisp Cookbook, 25 min)

    Side-by-side iteration idioms for everyday tasks.

  7. Build a small CD database program (tutorial, Practical Common Lisp, 45 min)

    A first complete program ties functions, lists and file saving together.

  8. Install libraries with Quicklisp (link, Quicklisp, 10 min)

    The standard way to pull in community libraries for your programs.