# RustLisp 0.1.68 manual: the Common Lisp teaching subset on the compiled machine

RustLisp is an interpreter for a subset of Common Lisp, written entirely in safe
Rust: a Lisp large enough to work through introductory Common Lisp texts, write
small text-processing programs and explore the condition system, in one
executable with no installation.

**This is a test build, not a crates.io release.** Version 0.1.68 is the
teaching subset of `v0.1.65-teaching` on the compiled machine, the only
evaluator ([The compiled machine](#the-compiled-machine)). It includes a
sandbox (`rustlisp --sandbox`), `rustlisp-mcp` for coding agents (chapter 2),
and `DESCRIBE` for argument lists. The tree-walking interpreter is gone
(ADR 0070). The commit is in `README.txt` beside this manual; chapter 9
describes how it was tested. The archive also holds `LICENSE-MIT`,
`LICENSE-APACHE` and `NOTICE`.

It is **not** a conforming Common Lisp. This manual says how to use it and
defines exactly what is in scope. Where the manual and a Common Lisp textbook
disagree about what a form does here, the manual is right.

Contents:

1. [Installing](#1-installing)
2. [Running](#2-running)
3. [A first session](#3-a-first-session)
4. [What is implemented](#4-what-is-implemented)
5. [Differences from standard Common Lisp](#5-differences-from-standard-common-lisp)
6. [What is not implemented](#6-what-is-not-implemented)
7. [Limits](#7-limits)
8. [Extensions](#8-extensions)
9. [How this build was tested](#9-how-this-build-was-tested)
10. [Appendix: every defined name](#appendix-every-defined-name)

## 1. Installing

There is no installer. Each archive holds three executables, a short README,
this manual (`manual.md`), `LICENSE-MIT`, `LICENSE-APACHE`, `NOTICE`,
`rustlisp-symbols.json`, a list of every defined name for editors, and
`rl-test/`, a test framework for your own programs
([Testing your programs](#testing-your-programs)):

| Platform | Archive | Contents |
|---|---|---|
| Linux x86_64 | `rustlisp-0.1.68-linux-x86_64.tar.gz` | `rustlisp`, `rustlisp-mcp`, `wizard-game` |
| Windows x86_64 | `rustlisp-0.1.68-windows-x86_64.zip` | `rustlisp.exe`, `rustlisp-mcp.exe`, `wizard-game.exe` |
| macOS arm64 (Apple silicon) | `rustlisp-0.1.68-macos-arm64.tar.gz` | `rustlisp`, `rustlisp-mcp`, `wizard-game` |
| macOS x86_64 (Intel), macOS 12 or later | `rustlisp-0.1.68-macos-x86_64.tar.gz` | `rustlisp`, `rustlisp-mcp`, `wizard-game` |

The archives are GitHub Actions build artifacts of the project's private
repository, kept for 30 days. Each archive has a `.sha256` file beside it for
checking the download. Unpack
the archive anywhere and run the executable from a terminal. To run it by name
from any directory, put its folder on your `PATH`.

Platform notes:

- **Linux.** The executables are dynamically linked against glibc and need
  glibc 2.34 or newer (Ubuntu 22.04, Debian 12, Fedora 35 or later).
- **Windows.** The executables are not signed. Windows SmartScreen may warn when
  you first run a downloaded copy; choose "More info", then "Run anyway".
- **macOS.** The executables are not signed or notarized. Use the `arm64`
  archive on Apple silicon and the `x86_64` archive on an Intel Mac (macOS 12
  Monterey or later; `uname -m` prints which you have). Gatekeeper blocks
  downloaded copies until you remove the quarantine mark:
  `xattr -d com.apple.quarantine rustlisp rustlisp-mcp wizard-game`.

`wizard-game` is a complete text adventure written in this Lisp and embedded in
its own executable. It shows what a packaged program looks like and needs
nothing else to run. Type `help` for its commands.

## 2. Running

```text
rustlisp                         start the interactive prompt (the REPL)
rustlisp --load FILE             load a source file, then start the REPL
rustlisp -e EXPRESSION           evaluate one expression, print its values, exit
rustlisp --script FILE [ARG...]  run a file as a program
rustlisp --quiet ...             no start-up banner
rustlisp --level LEVEL ...       load less of the language (see below)
rustlisp --sandbox ...           run untrusted code (see below)
rustlisp --version | --help
rustlisp-mcp [OPTIONS]           a sandboxed interpreter for coding agents (see below)
```

### The REPL

The prompt shows the current package, `CL-USER>` to begin with. Type a form and
press Enter. Every value the form returns is printed, one per line. A form may
span several lines; the prompt changes to `..` until the form is complete.

```text
CL-USER> (+ 1 2)
3
CL-USER> (defun square (x)
..         (* x x))
SQUARE
CL-USER> (floor 7 2)
3
1
CL-USER> (car 1)
; type error: expected list, got 1
CL-USER>
```

An error prints a line beginning with `;` and returns you to the prompt. There
is no debugger and no restart menu; nothing is lost and you can carry on.
End the session with `(quit)`, or with Ctrl-D on Linux and macOS and Ctrl-Z
then Enter on Windows. Ctrl-D in the middle of an unfinished form discards
that form.

### Loading files

`(load "program.lisp")` evaluates a file's forms in order. You can edit the
file and load it again without restarting; redefinitions replace the old ones.
An error while loading reports the file, line and column of the top-level form
that failed. A missing or unreadable file is an ordinary error that
`HANDLER-CASE` can catch.

### Scripts

`rustlisp --script FILE` runs a file without a prompt or banner and without
printing results. Standard input belongs to the program. Arguments after the
file name are available as a list of strings in `*COMMAND-LINE-ARGUMENTS*`.
The exit status is 0 on success, 1 after an uncaught error (reported on
standard error), or the code passed to `(rustlisp-exit :code N)`. On Linux and
macOS a script may begin with `#!/usr/bin/env -S rustlisp --script`.

```lisp
;; greet.lisp
(format t "hello ~a~%" (car *command-line-arguments*))
```

```text
$ rustlisp --script greet.lisp world
hello world
```

### Testing your programs

The `rl-test` folder holds RL-TEST, a small test framework in the style of
FiveAM, the most widely used Common Lisp test framework. It is written in
portable Common Lisp, so the same tests run in RustLisp and in SBCL. Its guide,
`rl-test/testing.md`, covers writing tests, test-driven development at the
REPL, and how it fits with building a program bottom-up.

```lisp
;; my-tests.lisp, next to the rl-test folder
(rustlisp-load-relative "rl-test/rl-test.lisp")
(defpackage :my-tests (:use :cl :rl-test))
(in-package :my-tests)

(def-suite* arithmetic)
(test adding (is (= 4 (+ 2 2))))

(run-and-exit 'arithmetic)    ; exit status 0 if every check passed, 1 if not
```

`rustlisp --script rl-test/rl-test-tests.lisp` runs the framework's own tests.

### Running untrusted code

`--sandbox` runs a program that must not reach outside the interpreter: it
cannot open, delete or list files, run programs, read environment variables or
`LOAD` other files. Such a call is an ordinary error,
`NAME: denied by the sandbox`, which the program can catch. It can still read
standard input, print, and end itself with `(quit)`. The files named with
`--script` and `--load` are loaded as usual.

Three limits stop a program that runs too long or too large:

| Option | Limit | Default with `--sandbox` |
|---|---|---|
| `--timeout SECONDS` | wall-clock time | 10 |
| `--max-heap SIZE` | memory in use, approximately: bytes, or a number with `K`, `M` or `G` | `256M` |
| `--fuel N` | number of function calls and loop turns | no limit |

They also work without `--sandbox`; `none` turns one off. A script, or `-e`
with its `--load` files, has one allowance for the whole run; in the REPL each
form you type has its own, so the prompt never times out. A program cannot
catch a limit: it stops, and a script or `-e` ends with status **3** and a
line such as `resource limit reached: fuel`. In the REPL you get the line and
the prompt back.

```text
$ rustlisp --sandbox --timeout 2 -e '(loop)'
resource limit reached: deadline
$ echo $?
3
```

### Using RustLisp from coding agents

`rustlisp-mcp` is a server for the Model Context Protocol, the way coding
agents such as Claude Code connect to tools. It gives the agent one RustLisp
session that keeps its definitions between calls, with the sandbox and limits
above applied to every call. Its tools are `eval` (run some code; the result
has the values, the printed output and any error), `reset` (start afresh) and,
when started with `--root DIR`, `load_file` (load a file from under `DIR`).
Each call has 5 seconds and 100 million units of fuel unless the server is
started with other `--timeout-ms` and `--fuel` values, and the session has a
256 MB heap (`--max-heap`). `rustlisp-mcp --help` lists the options.

To add it to Claude Code, with `rustlisp-mcp` on your `PATH`:

```text
claude mcp add rustlisp -- rustlisp-mcp --root ~/lisp
```

Other agents take the same command in their MCP settings. The server reads
requests on standard input and answers on standard output; it is not meant to
be run by hand.

### Levels

The language is built in layers written in Lisp on top of a small kernel.
`--level` (or the environment variable `RUSTLISP_LEVEL`) chooses how many load:

| Level | What you get |
|---|---|
| `kernel` | Special operators and built-in functions only |
| `core` | Adds control macros, `SETF`, iteration, lists, sequences, streams, packages |
| `classic` | Adds `CASE`, `TYPEP`, `DESTRUCTURING-BIND`, `DEFSTRUCT`, list and set functions, `TRACE`, the extended `LOOP` |
| `standard` | Adds `DEFINE-CONDITION`, `WARN`, `RESTART-CASE`, `ASSERT`, `CHECK-TYPE` and the rest of the condition system |
| `extended` | Adds generic functions (`DEFGENERIC`, `DEFMETHOD`) and `PRINT-OBJECT`: everything in this manual. The default. |

Use `extended` unless you want to see the language being built up.

### Environment variables

| Variable | Effect |
|---|---|
| `RUSTLISP_LEVEL` | As `--level` |
| `RUSTLISP_DEEP_RECURSION=0` | Use the small recursion limit (see [Limits](#7-limits)) |
| `RUSTLISP_DIAGNOSTICS=1` | Add a short call trail to error reports |

### The compiled machine

RustLisp compiles each top-level form into instructions for an internal
machine and runs those. Programs run much faster than the earlier
tree-walking interpreter. Measured on this build:

| Program | Interpreted | Compiled machine |
|---|---|---|
| A loop doing simple arithmetic, per iteration | 6.9 µs | 0.18 µs (39 times faster) |
| A call of a recursive function such as `fib` | 3.1 µs | 0.22 µs (14 times faster) |
| Building a 100-element list with `CONS` | 534 µs | 35 µs (15 times faster) |
| A mixed program using extended `LOOP`, lists and arithmetic | 9.6 s | 1.25 s (7.7 times faster) |

(Linux x86_64. Apple silicon is two to three times faster in absolute terms.)

The compiled machine is the only evaluator. Where it behaves differently from
the earlier interpreter, the difference is one that standard Common Lisp
allows for compiled code, and SBCL behaves the same way:

- **Tail calls do not use up the stack.** A function whose last action is to
  call a function (itself or another) can loop for ever. Recursion that is not
  a tail call can nest about 100,000 deep (the interpreter: about 1,800).
  There is no limit on running time, so an endless loop runs until you stop
  the program with Ctrl-C, which ends the whole session.
- **Macros are expanded when a form is compiled.** Redefining a macro does not
  change functions defined earlier with the old definition; define macros
  before the functions that use them, and reload those functions after
  changing a macro.
- **Definitions inside another form take effect when they run.** In
  `(let () (defmacro m () 1) (m))` the use of `M` was compiled before `M`
  became a macro, so it is a call of an undefined function. A `DEFVAR` inside a
  form does not make bindings earlier in that form special. At top level, and
  in separate top-level forms, everything works as usual.
- **A `MACROLET` expander sees only the global environment** and outer local
  macros, not local variables or functions around it (the standard leaves
  that undefined).
- **An error in the syntax of a form inside a function** is reported when that
  part of the function runs, not when the function is defined.

## 3. A first session

```lisp
;; Numbers are exact where they can be.
(/ 1 3)                       ; => 1/3
(expt 2 100)                  ; => 1267650600228229401496703205376
(sqrt 2)                      ; => 1.4142135623730951

;; Lists and higher-order functions.
(mapcar (lambda (x) (* x x)) '(1 2 3))        ; => (1 4 9)
(remove-if-not #'evenp '(1 2 3 4))            ; => (2 4)
(loop for i from 1 to 5 collect (* i i))      ; => (1 4 9 16 25)

;; Strings and formatted output.
(format nil "~a scored ~,1f%" "Ada" 92.456)   ; => "Ada scored 92.5%"
(string-upcase "abc")                         ; => "ABC"

;; Structures and hash tables.
(defstruct point x y)
(let ((p (make-point :x 1 :y 2)))
  (setf (point-x p) 10)
  p)                                          ; => #S(POINT :X 10 :Y 2)

(let ((table (make-hash-table :test 'equal)))
  (setf (gethash "one" table) 1)
  (gethash "one" table))                      ; => 1 and T

;; Conditions: define, signal, handle, restart.
(define-condition low-fuel (error)
  ((level :initarg :level :reader fuel-level)))

(handler-case (error 'low-fuel :level 3)
  (low-fuel (c) (fuel-level c)))              ; => 3

(restart-case
    (handler-bind ((error (lambda (c) (invoke-restart 'use-zero))))
      (+ 1 (error "bad input")))
  (use-zero () 0))                            ; => 0

;; Files.
(with-open-file (out "notes.txt" :direction :output :if-exists :supersede)
  (format out "first line~%"))
(with-open-file (in "notes.txt")
  (read-line in))                             ; => "first line"
```

## 4. What is implemented

The appendix lists every defined name. This chapter describes the areas.

**Evaluation and control.** Lexical and special variables (`DEFVAR`,
`DEFPARAMETER`, `DEFCONSTANT`, local `(declare (special ...))`, `PROGV`).
`LET`, `LET*`, `SETQ`, `PSETQ`, `IF`, `WHEN`, `UNLESS`, `COND`, `CASE`,
`TYPECASE` and their `E`/`C` variants, `AND`, `OR`, `PROGN`, `PROG1`, `PROG2`.
`BLOCK`/`RETURN-FROM`, `CATCH`/`THROW`, `TAGBODY`/`GO`, `UNWIND-PROTECT`.
Iteration with `DO`, `DO*`, `DOLIST`, `DOTIMES`, `PROG`, the simple `LOOP` and
most of the extended `LOOP`.

**Functions.** `DEFUN`, `LAMBDA`, `FLET`, `LABELS`, closures, `FUNCALL`,
`APPLY`. Lambda lists take `&OPTIONAL`, `&REST`, `&KEY`, `&ALLOW-OTHER-KEYS`
and `&AUX`, with defaults and supplied-p variables. Multiple values:
`VALUES`, `MULTIPLE-VALUE-BIND`, `-LIST`, `-CALL`, `-PROG1`, `-SETQ`,
`NTH-VALUE`.

**Macros.** `DEFMACRO` and `MACROLET` with `&WHOLE`, `&BODY`, `&OPTIONAL`,
`&KEY`, `&REST`, `&ENVIRONMENT`, dotted lambda lists and nested destructuring
patterns such as `((var list &optional result) &body body)`; backquote with
`,` `,@` and `,.`; `MACROEXPAND`, `MACROEXPAND-1` and `MACRO-FUNCTION`, which
see local macros through an `&ENVIRONMENT` argument; `SYMBOL-MACROLET` and
`DEFINE-SYMBOL-MACRO`; `GENSYM`. `DESTRUCTURING-BIND` handles nested patterns.

**Generalized places.** `SETF` on variables, `CAR`, `CDR`, `FIRST` to
`TENTH`, `REST`, the composed accessors from `CAAR` to `CDDDDR`, `NTH`, `ELT`,
`AREF`, `SVREF`, `SUBSEQ` (lists and vectors), `GETHASH`, `GETF`, `GET`,
`SYMBOL-VALUE`, `SYMBOL-FUNCTION`, `SYMBOL-PLIST`, `FILL-POINTER`, structure
accessors and macro forms that expand to these. `PUSH`, `POP`, `PUSHNEW`, `INCF`, `DECF`,
`ROTATEF`, `SHIFTF`, `PSETF`, `REMF`. New places with `DEFSETF`,
`DEFINE-SETF-EXPANDER` and setf functions, `(defun (setf name) (new-value
...) ...)`.

**Numbers.** Integers of any size, exact ratios, and double-precision floats.
The usual arithmetic, comparison, rounding (`FLOOR`, `CEILING`, `TRUNCATE`,
`ROUND`, `MOD`, `REM`), `GCD`, `LCM`, `EXPT`, `SQRT`, `ISQRT`, `EXP`, `LOG`,
trigonometry, bit operations (`LOGAND`, `LOGIOR`, `LOGXOR`, `LOGNOT`, `ASH`),
`BOOLE`, `RATIONALIZE`, `FFLOOR` and the other float-rounding functions,
`RANDOM` and random states. Integers can be read in radix 2, 8 and 16 with
`#b`, `#o` and `#x`, in any radix with `#nR`, and under `*READ-BASE*`.

**Characters, strings and symbols.** Unicode characters and strings; case
conversion, trimming, comparison (`STRING=`, `STRING<`, `STRING-EQUAL`,
`STRING-LESSP` and the rest), `PARSE-INTEGER`, `CONCATENATE`, `COERCE`.
Symbols, keywords, uninterned symbols and property lists.

**Lists and sequences.** The list library (`APPEND`, `REVERSE`, `ASSOC`,
`MEMBER`, `SUBST`, set operations, mapping functions and so on) and a sequence
library that works on lists, strings and vectors: `FIND`, `POSITION`, `COUNT`,
`REMOVE`, `SUBSTITUTE`, `REMOVE-DUPLICATES`, `SEARCH`, `MISMATCH`, `MAP`,
`REDUCE`, `EVERY`, `SOME`, `SORT`, `STABLE-SORT`, `MERGE`, `SUBSEQ`, `FILL`,
`REPLACE`, with the standard `:START`, `:END`, `:KEY`, `:TEST`, `:FROM-END`
and `:COUNT` keywords.

**Vectors and hash tables.** One-dimensional arrays, with fill pointers and
`VECTOR-PUSH-EXTEND`. Hash tables with `EQ`, `EQL`, `EQUAL` or `EQUALP` tests,
`GETHASH`, `REMHASH`, `MAPHASH`, `CLRHASH`.

**Structures.** `DEFSTRUCT` with slot defaults, `:CONSTRUCTOR`, `:COPIER`,
`:PREDICATE`, `:CONC-NAME`, `:INCLUDE`, `:PRINT-FUNCTION`, `:PRINT-OBJECT`,
and list-backed structures with `(:TYPE LIST)`. Structures print and read as
`#S(...)` unless a `PRINT-OBJECT` method says otherwise.

**Generic functions.** `DEFGENERIC` and `DEFMETHOD` over structures,
built-in types (`NUMBER`, `INTEGER`, `STRING`, `LIST`, `SYMBOL` and so on),
condition classes and `(EQL value)`, with dispatch on every required
argument, `:BEFORE`, `:AFTER` and `:AROUND` methods, `CALL-NEXT-METHOD` and
`NEXT-METHOD-P`. `PRINT-OBJECT` methods on structures and conditions are used
by every printing function and the REPL. There are no classes of their own
(`DEFCLASS`, `MAKE-INSTANCE`); see chapter 6.

**Conditions and restarts.** (A syntax error from `READ` is a `READER-ERROR`,
including an unfinished form at the end of a string.) `ERROR`, `CERROR`, `WARN`, `SIGNAL`,
`HANDLER-CASE`, `HANDLER-BIND`, `IGNORE-ERRORS`, `ASSERT`, `CHECK-TYPE`,
`DEFINE-CONDITION` with slots, inheritance and `:REPORT`, `MAKE-CONDITION`.
`RESTART-CASE`, `RESTART-BIND`, `WITH-SIMPLE-RESTART`, `INVOKE-RESTART`,
`COMPUTE-RESTARTS`, `FIND-RESTART` and the standard restart functions
(`ABORT`, `CONTINUE`, `USE-VALUE`, `STORE-VALUE`, `MUFFLE-WARNING`). Errors
raised by built-in functions (wrong types, wrong argument counts, unbound
variables, undefined functions, arithmetic, stream and reader errors) are
conditions of the standard types and can be handled.

**Input and output.** `FORMAT` with `~A ~S ~D ~B ~O ~X ~R ~F ~E ~G ~$ ~C ~P
~% ~& ~~ ~T ~* ~{ ~} ~^ ~[ ~] ~( ~)`. `PRINT`, `PRIN1`, `PRINC`, `WRITE`,
`TERPRI`, `FRESH-LINE` and the `-TO-STRING` functions, honouring
`*PRINT-BASE*`, `*PRINT-RADIX*`, `*PRINT-CASE*`, `*PRINT-LENGTH*`,
`*PRINT-LEVEL*`, `*PRINT-CIRCLE*` (with `#1=` labels, which the reader also
reads) and `*PRINT-GENSYM*`; `PRINT-UNREADABLE-OBJECT`. `READ`, `READ-LINE`,
`READ-CHAR`, `PEEK-CHAR`, `UNREAD-CHAR`, `READ-FROM-STRING`. Text files with
`OPEN`, `CLOSE` and `WITH-OPEN-FILE`; string streams with
`WITH-OUTPUT-TO-STRING` and `WITH-INPUT-FROM-STRING`. `PROBE-FILE` and
`DELETE-FILE`. The seven standard stream variables exist.

**Packages.** `DEFPACKAGE`, `IN-PACKAGE`, `EXPORT`, `IMPORT`, `USE-PACKAGE`,
`SHADOW`, `INTERN`, `FIND-SYMBOL`, the `DO-SYMBOLS` family and
`pkg:name` / `pkg::name` syntax.

**Development aids.** `TRACE`, `UNTRACE`, `TIME`, `DESCRIBE` (which shows a
function's or macro's argument list, built-ins included), `APROPOS`,
`DOCUMENTATION` (for your own definitions' documentation strings),
`MACROEXPAND`. The archives also hold `rustlisp-symbols.json`: every defined
name with its kind and argument list, for editors to offer completion and
argument hints.

## 5. Differences from standard Common Lisp

Things that exist but behave differently from the standard. A program written
for another Lisp may need changes here.

- **There is no compiler you can call.** Every top-level form is compiled to
  an internal machine as it is evaluated (chapter 2), but `COMPILE` and
  `COMPILE-FILE` are absent. `EVAL-WHEN` evaluates its body when
  `:EXECUTE` or `:LOAD-TOPLEVEL` is listed and returns `NIL` otherwise.
- **There is no debugger.** An unhandled error ends the current evaluation and
  prints a message. Restarts work when your program invokes them; the REPL
  does not offer them.
- **Printing has no pretty printer.** `*PRINT-PRETTY*`, `*PRINT-ESCAPE*` and
  `*PRINT-READABLY*` exist but are not read; the other printer variables work
  (chapter 4). Without `*PRINT-CIRCLE*`, circular structure is shown with
  `...`, not with `#1=` labels.
- **`PRIN1`, `PRINT`, `PRINC`, `WRITE` and the `-TO-STRING` functions refuse
  to print an incomplete object.** Something nested more than 256 levels deep,
  or with more than a million elements, is an error from these functions,
  so saved data is never silently cut short. `FORMAT` and the REPL cut such
  output off with `...` instead.
- **`FORMAT` directives not listed in chapter 4 are refused**, with a message
  naming the directive. This includes `~?`, `~<`, `~>`, `~/`, `~W` and `~_`.
- **The reader has no readtable.** There are no user-defined reader macros.
  Supported `#` syntax is `#'`, `#\`, `#(`, `#:`, `#x`, `#b`, `#o`, `#nR`,
  `#n=`, `#n#`, `#|...|#`, `#+`, `#-`, `#.` and `#S`. Symbols are folded to upper case; `|...|` and
  backslash escapes in symbols work.
- **All floats are double precision.** `1.0`, `1.0f0` and `1.0d0` read as the
  same type, and `TYPE-OF` reports `DOUBLE-FLOAT`. Floats that would be
  infinite or not-a-number are errors.
- **Strings cannot be modified in place.** There is no `(setf (char ...))` or
  `(setf (aref string ...))`, and `(setf (subseq ...))` works on lists and
  vectors only. `NSTRING-UPCASE` and its relatives, and `SORT`
  on a string, return a new string and leave their argument alone.
- **`SORT` on a list returns a new list** and leaves its argument intact. The
  standard permits destroying the argument, so correct programs are
  unaffected.
- **`OPEN` is for text.** Directions are `:INPUT` and `:OUTPUT`. An existing
  output file is not overwritten unless you say `:IF-EXISTS :SUPERSEDE` (or
  `:APPEND`). File names are strings; there are no pathname objects.
- **`LOAD` takes a file name string** and resolves it against the current
  directory.
- **Declarations are accepted and mostly ignored.** `SPECIAL` has its standard
  meaning; `TYPE` (also written `(fixnum x)`), `IGNORE`, `OPTIMIZE` and the
  rest have no effect. `THE`
  returns its value unchecked.
- **Built-in names cannot be redefined.** `DEFUN`, `FLET` or `LABELS` on a
  special operator or a built-in function such as `CAR` or `MAPCAR` is an
  error (`protected core name`). Standard functions that are themselves
  written in Lisp can be redefined, with the usual risks.
- **`DOCUMENTATION` returns `NIL` for built-in functions.** Only documentation
  strings from your own definitions are kept.
- **Extended `LOOP`** supports the common clauses (`for`/`as` in its numeric,
  list, vector, `=`/`then` and hash-table forms, `with`, `repeat`, `while`,
  `until`, `collect`, `append`, `nconc`, `sum`, `count`, `maximize`,
  `minimize`, `always`, `never`, `thereis`, `when`/`if`/`unless`, `do`,
  `return`, `named`, `initially`, `finally`). `for ... and ...` steps one
  after the other instead of in parallel, and `loop-finish` is absent.
- **Deep recursion is limited.** See [Limits](#7-limits). Tail calls do not
  use up the stack (chapter 2), but recursion that is not a tail call stops at
  about 100,000 levels, so write long loops with `LOOP`, `DO` or `DOLIST`.

## 6. What is not implemented

If your program needs one of these, it will not run here unchanged.

| Area | Absent |
|---|---|
| Object system | Classes and the rest of CLOS: `DEFCLASS`, `MAKE-INSTANCE`, `SLOT-VALUE`, `CLASS-OF`, `FIND-METHOD`, method combinations other than the standard one, the metaobject protocol (generic functions exist, chapter 4) |
| Compilation | `COMPILE`, `COMPILE-FILE`, `DISASSEMBLE`, compiler macros, `PROVIDE`, `REQUIRE` |
| Numbers | Complex numbers, float decoding (`DECODE-FLOAT` and relatives), hyperbolic functions, byte specifiers (`BYTE`, `LDB`, `DPB`) |
| Arrays | Multi-dimensional arrays, bit vectors, specialised element types, `MAKE-SEQUENCE` |
| Types | `DEFTYPE`; `TYPEP` and `SUBTYPEP` know the built-in types, structures and conditions |
| Macros | `DEFINE-MODIFY-MACRO`, `SPECIAL-OPERATOR-P`, compiler macros, `*MACROEXPAND-HOOK*` |
| Reader and printer | Readtables and reader macros, the pretty printer, `*PRINT-PRETTY*` and `*PRINT-READABLY*` (present but ignored) |
| Streams and files | Binary streams (`READ-BYTE`, `WRITE-BYTE`), `:DIRECTION :IO`, `FILE-POSITION`, `READ-SEQUENCE`, `LISTEN`, broadcast, synonym, echo and concatenated streams, pathnames, `DIRECTORY`, `RENAME-FILE` |
| Interaction | A debugger, `BREAK`, `STEP`, `INSPECT`, `ED`, `DRIBBLE`, `ROOM` |
| Packages | `UNINTERN`, `DELETE-PACKAGE`, package locks |

Anything else not in the appendix is also absent. Calling an absent function
gives `undefined function: NAME`.

## 7. Limits

These are safeguards of this implementation, not rules of the language.

| Limit | Value |
|---|---|
| Recursion depth | About 100,000 nested calls; tail calls are not counted. Beyond that the error is `control stack exhausted`, and the session continues. |
| Recursion through a built-in that calls your function (`MAPCAR`, `FUNCALL` of a function made by `EVAL`, ...) | About 5,000 levels; about 38 with `RUSTLISP_DEEP_RECURSION=0` |
| Nesting of data the reader accepts | 256 levels |
| Arguments in one call, parameters in one lambda list | 65,536 |
| Vector length, hash-table entries | 16,777,216 |
| One string from `MAKE-STRING`, one line from `READ-LINE` | 64 MB, 16 MB |
| Size of an exact integer or ratio | 1,048,576 bits |
| Consecutive expansions of one macro form | 256 |

Speed: expect several million simple operations per second on the compiled
machine (chapter 2). That is ample for exercises and small tools, and still
slow for heavy computation.

Memory is reclaimed automatically by a garbage collector.

## 8. Extensions

Names beginning `RUSTLISP-` are not Common Lisp. These are the ones meant for
programs:

| Function | Purpose |
|---|---|
| `(quit)` | Leave with status 0 |
| `(rustlisp-exit :code n)` | Leave with status `n` (0 to 255); pending `UNWIND-PROTECT` cleanups run first |
| `*command-line-arguments*` | The script's arguments, a list of strings |
| `(rustlisp-getenv "NAME")` | An environment variable's value, or `NIL` |
| `(rustlisp-run-program "prog" '("arg" ...) :timeout seconds)` | Run a program; returns its standard output, exit status and standard error as three values |
| `(rustlisp-directory-entries "dir")` | The names in a directory |
| `(rustlisp-unix-time)`, `(rustlisp-monotonic-microseconds)`, `(rustlisp-sleep seconds)` | Clock and delay |
| `(rustlisp-load-relative "file.lisp")` | Load a file relative to the file being loaded |
| `(rustlisp-source-directory)`, `(rustlisp-absolute-path p)`, `(rustlisp-path-join a b)` | File-name helpers (strings in, strings out) |
| `(rustlisp-write-stderr string)`, `(rustlisp-write-bytes "file" list-of-bytes)` | Write to standard error; write a file of raw bytes |
| `(rustlisp-function-info 'name)` | Whether a name is a function, macro, built-in or special operator, and its argument list |
| `(rustlisp-publish-file "staged" "final")` | Move a finished file into place without overwriting an existing one |

These are the only `RUSTLISP-` names visible in your packages. The standard
macros also use internal helpers whose names begin `RUSTLISP-`; they live in
`COMMON-LISP` but are not exported, so defining a function of the same name
in your own package cannot break them (ADR 0069).

## 9. How this build was tested

The interpreter in this build is that of commit `d2cdfc3` (version 0.1.68,
merged as `6b9e8f4`): the compiled machine is the only evaluator (ADR 0070).
There is no tree-walking interpreter and no fallback. Later documentation
on this branch (this chapter, the licence files) does not change the
interpreter.

- **Linux x86_64**, the project's pre-commit check (BROAD) on `d2cdfc3`: all
  21 steps passed. Debug and release default suites each ran 2,299 tests;
  the example programs were compared with SBCL. The release suite also ran
  under the stress, stress-every and threshold-1 collector modes (Layer 0
  core, then classic, then the rest of the binaries). Debug collector tests
  ran under stress-every.
- **macOS arm64** (Apple silicon), the project's widest check (EXHAUSTIVE)
  on `d2cdfc3`: all 35 steps passed (about two hours). Debug and release
  suites ran under default, manual, threshold, stress, stress-every,
  threshold-1 and threshold-16. Example-program comparison on that run did
  not use SBCL. The tree-walker configurations no longer exist.
- **Linux and Windows x86_64**, GitHub native default-GC exhaustive
  (`scope=native`) on `d2cdfc3`: all debug and release shards passed
  ([run 44991057457](https://github.com/nigel-me/rustlisp/actions/runs/44991057457)).
- **Wizard artifacts** on the same commit: native `wizard-game` builds
  passed on Linux x86_64, Windows x86_64 and macOS arm64
  ([run 44991057430](https://github.com/nigel-me/rustlisp/actions/runs/44991057430)).
- **All four package platforms**: the archive builder checks each binary's
  format (and, for macOS, the oldest macOS version it asks for) and runs a
  smoke test natively before packaging it, including a million-deep tail
  recursion, `--sandbox` denying the environment, `rustlisp-mcp` answering
  the protocol handshake, keeping definitions, stopping a call at a limit
  and ending at end of input, and `rustlisp-symbols.json` written by the
  binary being packaged. After packaging it unpacks the archive in another
  directory and runs the binaries from there, including RL-TEST's own tests.
- **RL-TEST** (`rl-test/`): its own tests (65 checks) passed on Linux x86_64
  in the release build, in the debug build, and in SBCL 2.6.9. A test file
  written for it ran under FiveAM (the 2024-10-12 release) in SBCL with only
  the changes `rl-test/testing.md` describes.
- **macOS Intel**: the Intel package of 0.1.67, built the same way, ran
  `rustlisp` and the Wizard game on a 2015 MacBook Pro with macOS 12.7.6, and
  `rustlisp-mcp` answered tool calls there when driven by hand. This build's
  Intel package is checked by the smoke test on the GitHub Intel runner, not
  by repeating that hardware session.

Not covered:

- **The full suite on macOS Intel.** The Intel package is the smoke test
  above, not EXHAUSTIVE.
- **`rustlisp-mcp` with real coding agents**, beyond a first try. The tests
  drive it with scripted protocol messages. A 0.1.68 package was used by hand
  from the opencode agent without `--root` (so only `eval` and `reset` are
  offered), and its fuel limit stopped an endless `(loop)`. `load_file` with
  `--root`, and other agents such as Claude Code, have not been tried.
- **Comparison with other Lisps** beyond the example programs. Selected
  behaviours are compared with SBCL by the developers; there is no conformance
  test suite result to report.

Report a problem with the smallest program that shows it, the output you got,
the output you expected, and the output of `rustlisp --version`.

## Appendix: every defined name

This list was generated from the interpreter itself for this build, by
walking the external symbols of the `COMMON-LISP` package. If a standard name
is not here, it is not implemented. A name being here does not mean every
standard option of it is supported; the chapters above give the limits.

### Special operators and built-in defining forms (32)

`BLOCK` `CATCH` `DEFINE-SETF-EXPANDER` `DEFMACRO` `DEFPARAMETER` `DEFSETF` `DEFUN` `DEFVAR` `FLET`
`FUNCTION` `GO` `HANDLER-BIND` `HANDLER-CASE` `IF` `LABELS` `LET` `LET*` `LOOP` `MACROLET`
`MULTIPLE-VALUE-BIND` `MULTIPLE-VALUE-CALL` `MULTIPLE-VALUE-PROG1` `PROGN` `PROGV` `QUOTE`
`RESTART-BIND` `RETURN-FROM` `SETQ` `SYMBOL-MACROLET` `TAGBODY` `THROW` `UNWIND-PROTECT`

### Macros (65)

`AND` `ASSERT` `CASE` `CCASE` `CHECK-TYPE` `COND` `CTYPECASE` `DECF` `DECLAIM` `DEFCONSTANT`
`DEFGENERIC` `DEFINE-CONDITION` `DEFINE-SYMBOL-MACRO` `DEFMETHOD` `DEFPACKAGE` `DEFSTRUCT`
`DESTRUCTURING-BIND` `DO` `DO*` `DO-ALL-SYMBOLS` `DO-EXTERNAL-SYMBOLS` `DO-SYMBOLS` `DOLIST`
`DOTIMES` `ECASE` `ETYPECASE` `EVAL-WHEN` `IGNORE-ERRORS` `IN-PACKAGE` `INCF` `LAMBDA`
`LOAD-TIME-VALUE` `LOCALLY` `MULTIPLE-VALUE-LIST` `MULTIPLE-VALUE-SETQ` `NTH-VALUE` `OR` `POP`
`PRINT-UNREADABLE-OBJECT` `PROG` `PROG*` `PROG1` `PROG2` `PSETF` `PSETQ` `PUSH` `PUSHNEW` `REMF`
`RESTART-CASE` `RETURN` `ROTATEF` `SETF` `SHIFTF` `THE` `TIME` `TRACE` `TYPECASE` `UNLESS` `UNTRACE`
`WHEN` `WITH-CONDITION-RESTARTS` `WITH-INPUT-FROM-STRING` `WITH-OPEN-FILE` `WITH-OUTPUT-TO-STRING`
`WITH-SIMPLE-RESTART`

### Functions (453)

`*` `+` `-` `/` `/=` `1+` `1-` `<` `<=` `=` `>` `>=` `ABORT` `ABS` `ACONS` `ACOS` `ADJOIN`
`ADJUST-ARRAY` `ADJUSTABLE-ARRAY-P` `ALPHA-CHAR-P` `ALPHANUMERICP` `APPEND` `APPLY` `APROPOS`
`APROPOS-LIST` `AREF` `ARITHMETIC-ERROR-OPERANDS` `ARITHMETIC-ERROR-OPERATION` `ARRAY-DIMENSION`
`ARRAY-DIMENSIONS` `ARRAY-HAS-FILL-POINTER-P` `ARRAY-RANK` `ARRAY-TOTAL-SIZE` `ARRAYP` `ASH` `ASIN`
`ASSOC` `ASSOC-IF` `ASSOC-IF-NOT` `ATAN` `ATOM` `BOOLE` `BOTH-CASE-P` `BOUNDP` `BUTLAST` `CAAAAR`
`CAAADR` `CAAAR` `CAADAR` `CAADDR` `CAADR` `CAAR` `CADAAR` `CADADR` `CADAR` `CADDAR` `CADDDR`
`CADDR` `CADR` `CAR` `CDAAAR` `CDAADR` `CDAAR` `CDADAR` `CDADDR` `CDADR` `CDAR` `CDDAAR` `CDDADR`
`CDDAR` `CDDDAR` `CDDDDR` `CDDDR` `CDDR` `CDR` `CEILING` `CELL-ERROR-NAME` `CERROR` `CHAR`
`CHAR-CODE` `CHAR-DOWNCASE` `CHAR-EQUAL` `CHAR-GREATERP` `CHAR-INT` `CHAR-LESSP` `CHAR-NAME`
`CHAR-NOT-EQUAL` `CHAR-NOT-GREATERP` `CHAR-NOT-LESSP` `CHAR-UPCASE` `CHAR/=` `CHAR<` `CHAR<=`
`CHAR=` `CHAR>` `CHAR>=` `CHARACTERP` `CLOSE` `CLRHASH` `CODE-CHAR` `COERCE` `COMPLEMENT`
`COMPUTE-RESTARTS` `CONCATENATE` `CONS` `CONSP` `CONSTANTLY` `CONSTANTP` `CONTINUE` `COPY-ALIST`
`COPY-LIST` `COPY-RUSTLISP-GENERIC` `COPY-RUSTLISP-METHOD` `COPY-SEQ` `COPY-TREE` `COS` `COUNT`
`COUNT-IF` `COUNT-IF-NOT` `DECODE-UNIVERSAL-TIME` `DELETE` `DELETE-DUPLICATES` `DELETE-FILE`
`DELETE-IF` `DELETE-IF-NOT` `DENOMINATOR` `DESCRIBE` `DIGIT-CHAR` `DIGIT-CHAR-P` `DOCUMENTATION`
`EIGHTH` `ELT` `ENCODE-UNIVERSAL-TIME` `ENDP` `ENSURE-DIRECTORIES-EXIST` `EQ` `EQL` `EQUAL` `EQUALP`
`ERROR` `EVAL` `EVENP` `EVERY` `EXP` `EXPORT` `EXPT` `FBOUNDP` `FCEILING` `FDEFINITION` `FFLOOR`
`FIFTH` `FILL` `FILL-POINTER` `FIND` `FIND-ALL-SYMBOLS` `FIND-IF` `FIND-IF-NOT` `FIND-PACKAGE`
`FIND-RESTART` `FIND-SYMBOL` `FINISH-OUTPUT` `FIRST` `FLOAT` `FLOATP` `FLOOR` `FMAKUNBOUND`
`FORCE-OUTPUT` `FORMAT` `FOURTH` `FRESH-LINE` `FROUND` `FTRUNCATE` `FUNCALL`
`FUNCTION-LAMBDA-EXPRESSION` `FUNCTIONP` `GCD` `GENSYM` `GENTEMP` `GET` `GET-DECODED-TIME`
`GET-INTERNAL-REAL-TIME` `GET-INTERNAL-RUN-TIME` `GET-OUTPUT-STREAM-STRING` `GET-PROPERTIES`
`GET-SETF-EXPANSION` `GET-UNIVERSAL-TIME` `GETF` `GETHASH` `GRAPHIC-CHAR-P` `HASH-TABLE-COUNT`
`HASH-TABLE-P` `HASH-TABLE-TEST` `IDENTITY` `IMPORT` `INPUT-STREAM-P` `INTEGER-LENGTH` `INTEGERP`
`INTERN` `INTERSECTION` `INVOKE-RESTART` `INVOKE-RESTART-INTERACTIVELY` `ISQRT` `KEYWORDP` `LAST`
`LCM` `LDIFF` `LENGTH` `LISP-IMPLEMENTATION-TYPE` `LISP-IMPLEMENTATION-VERSION` `LIST` `LIST*`
`LIST-ALL-PACKAGES` `LIST-LENGTH` `LISTP` `LOAD` `LOG` `LOGAND` `LOGANDC1` `LOGANDC2` `LOGBITP`
`LOGCOUNT` `LOGEQV` `LOGIOR` `LOGNAND` `LOGNOR` `LOGNOT` `LOGORC1` `LOGORC2` `LOGTEST` `LOGXOR`
`LOWER-CASE-P` `MACHINE-INSTANCE` `MACHINE-TYPE` `MACHINE-VERSION` `MACRO-FUNCTION` `MACROEXPAND`
`MACROEXPAND-1` `MAKE-ARRAY` `MAKE-CONDITION` `MAKE-HASH-TABLE` `MAKE-LIST` `MAKE-PACKAGE`
`MAKE-RANDOM-STATE` `MAKE-STRING` `MAKE-STRING-INPUT-STREAM` `MAKE-STRING-OUTPUT-STREAM`
`MAKE-SYMBOL` `MAKE-TWO-WAY-STREAM` `MAKUNBOUND` `MAP` `MAP-INTO` `MAPC` `MAPCAN` `MAPCAR` `MAPCON`
`MAPHASH` `MAPL` `MAPLIST` `MAX` `MEMBER` `MEMBER-IF` `MEMBER-IF-NOT` `MERGE` `MIN` `MINUSP`
`MISMATCH` `MOD` `MUFFLE-WARNING` `NAME-CHAR` `NBUTLAST` `NCONC` `NINTERSECTION` `NINTH` `NOT`
`NOTANY` `NOTEVERY` `NRECONC` `NREVERSE` `NSET-DIFFERENCE` `NSET-EXCLUSIVE-OR` `NSTRING-CAPITALIZE`
`NSTRING-DOWNCASE` `NSTRING-UPCASE` `NSUBLIS` `NSUBST` `NSUBSTITUTE` `NSUBSTITUTE-IF` `NTH` `NTHCDR`
`NULL` `NUMBERP` `NUMERATOR` `NUNION` `ODDP` `OPEN` `OPEN-STREAM-P` `OUTPUT-STREAM-P` `PACKAGE-NAME`
`PACKAGE-NICKNAMES` `PACKAGE-SHADOWING-SYMBOLS` `PACKAGE-USE-LIST` `PACKAGE-USED-BY-LIST` `PACKAGEP`
`PAIRLIS` `PARSE-INTEGER` `PEEK-CHAR` `PLUSP` `POSITION` `POSITION-IF` `POSITION-IF-NOT` `PPRINT`
`PRIN1` `PRIN1-TO-STRING` `PRINC` `PRINC-TO-STRING` `PRINT` `PRINT-OBJECT` `PROBE-FILE` `PROCLAIM`
`QUIT` `RANDOM` `RANDOM-STATE-P` `RASSOC` `RASSOC-IF` `RASSOC-IF-NOT` `RATIONAL` `RATIONALIZE`
`RATIONALP` `READ` `READ-CHAR` `READ-FROM-STRING` `READ-LINE` `READ-PRESERVING-WHITESPACE` `REALP`
`REDUCE` `REM` `REMHASH` `REMOVE` `REMOVE-DUPLICATES` `REMOVE-IF` `REMOVE-IF-NOT` `REMPROP`
`RENAME-PACKAGE` `REPLACE` `REST` `RESTART-NAME` `REVAPPEND` `REVERSE` `ROUND` `RPLACA` `RPLACD`
`SCHAR` `SEARCH` `SECOND` `SET` `SET-DIFFERENCE` `SET-EXCLUSIVE-OR` `SEVENTH` `SHADOW`
`SHADOWING-IMPORT` `SIGNAL` `SIGNUM` `SIMPLE-CONDITION-FORMAT-ARGUMENTS`
`SIMPLE-CONDITION-FORMAT-CONTROL` `SIMPLE-VECTOR-P` `SIN` `SIXTH` `SLEEP` `SOFTWARE-TYPE`
`SOFTWARE-VERSION` `SOME` `SORT` `SQRT` `STABLE-SORT` `STORE-VALUE` `STREAM-ERROR-STREAM` `STREAMP`
`STRING` `STRING-APPEND-ALL` `STRING-CAPITALIZE` `STRING-DOWNCASE` `STRING-EQUAL` `STRING-GREATERP`
`STRING-LEFT-TRIM` `STRING-LESSP` `STRING-NOT-EQUAL` `STRING-NOT-GREATERP` `STRING-NOT-LESSP`
`STRING-RIGHT-TRIM` `STRING-TRIM` `STRING-UPCASE` `STRING/=` `STRING<` `STRING<=` `STRING=`
`STRING>` `STRING>=` `STRINGP` `SUBLIS` `SUBSEQ` `SUBSETP` `SUBST` `SUBST-IF` `SUBST-IF-NOT`
`SUBSTITUTE` `SUBSTITUTE-IF` `SUBSTITUTE-IF-NOT` `SUBTYPEP` `SVREF` `SXHASH` `SYMBOL-FUNCTION`
`SYMBOL-NAME` `SYMBOL-PACKAGE` `SYMBOL-PLIST` `SYMBOL-VALUE` `SYMBOLP` `TAILP` `TAN` `TENTH`
`TERPRI` `THIRD` `TREE-EQUAL` `TRUNCATE` `TWO-WAY-STREAM-INPUT-STREAM`
`TWO-WAY-STREAM-OUTPUT-STREAM` `TYPE-ERROR-DATUM` `TYPE-ERROR-EXPECTED-TYPE` `TYPE-OF` `TYPEP`
`UNEXPORT` `UNION` `UNREAD-CHAR` `UNUSE-PACKAGE` `UPPER-CASE-P` `USE-PACKAGE` `USE-VALUE`
`USER-HOMEDIR-PATHNAME` `VALUES` `VALUES-LIST` `VECTOR` `VECTOR-POP` `VECTOR-PUSH`
`VECTOR-PUSH-EXTEND` `VECTORP` `WARN` `WRITE` `WRITE-CHAR` `WRITE-LINE` `WRITE-STRING`
`WRITE-TO-STRING` `Y-OR-N-P` `YES-OR-NO-P` `ZEROP`

### Variables and constants (51)

`*COMMAND-LINE-ARGUMENTS*` `*DEBUG-IO*` `*ERROR-OUTPUT*` `*FEATURES*` `*GENSYM-COUNTER*` `*PACKAGE*`
`*PRINT-BASE*` `*PRINT-CASE*` `*PRINT-CIRCLE*` `*PRINT-ESCAPE*` `*PRINT-GENSYM*` `*PRINT-LENGTH*`
`*PRINT-LEVEL*` `*PRINT-PRETTY*` `*PRINT-RADIX*` `*PRINT-READABLY*` `*QUERY-IO*` `*RANDOM-STATE*`
`*READ-BASE*` `*READ-DEFAULT-FLOAT-FORMAT*` `*READ-EVAL*` `*STANDARD-INPUT*` `*STANDARD-OUTPUT*`
`*TERMINAL-IO*` `*TRACE-DEPTH*` `*TRACE-OUTPUT*` `*TRACE-TABLE*` `BOOLE-1` `BOOLE-2` `BOOLE-AND`
`BOOLE-ANDC1` `BOOLE-ANDC2` `BOOLE-C1` `BOOLE-C2` `BOOLE-CLR` `BOOLE-EQV` `BOOLE-IOR` `BOOLE-NAND`
`BOOLE-NOR` `BOOLE-ORC1` `BOOLE-ORC2` `BOOLE-SET` `BOOLE-XOR` `DOUBLE-FLOAT-EPSILON`
`INTERNAL-TIME-UNITS-PER-SECOND` `LEAST-POSITIVE-DOUBLE-FLOAT` `MOST-NEGATIVE-DOUBLE-FLOAT`
`MOST-NEGATIVE-FIXNUM` `MOST-POSITIVE-DOUBLE-FLOAT` `MOST-POSITIVE-FIXNUM` `PI`

### Type and condition names (49)

`ARITHMETIC-ERROR` `ARRAY` `BIGNUM` `BOOLEAN` `CELL-ERROR` `CHARACTER` `CONDITION`
`DIVISION-BY-ZERO` `DOUBLE-FLOAT` `END-OF-FILE` `FIXNUM` `HASH-TABLE` `INTEGER` `KEYWORD`
`LONG-FLOAT` `NUMBER` `PACKAGE` `PARSE-ERROR` `PROGRAM-ERROR` `RANDOM-STATE` `RATIO` `READER-ERROR`
`REAL` `SEQUENCE` `SERIOUS-CONDITION` `SHORT-FLOAT` `SIMPLE-ARITHMETIC-ERROR` `SIMPLE-CONDITION`
`SIMPLE-DIVISION-BY-ZERO` `SIMPLE-END-OF-FILE` `SIMPLE-ERROR` `SIMPLE-PARSE-ERROR`
`SIMPLE-PROGRAM-ERROR` `SIMPLE-READER-ERROR` `SIMPLE-STREAM-ERROR` `SIMPLE-STRING`
`SIMPLE-TYPE-ERROR` `SIMPLE-UNBOUND-VARIABLE` `SIMPLE-UNDEFINED-FUNCTION` `SIMPLE-VECTOR`
`SIMPLE-WARNING` `SINGLE-FLOAT` `STREAM` `STREAM-ERROR` `SYMBOL` `TYPE-ERROR` `UNBOUND-VARIABLE`
`UNDEFINED-FUNCTION` `WARNING`

### Implementation extensions (15)

Names that begin with `RUSTLISP-` are not Common Lisp; they are described
in "Extensions" above. The internal helpers are not listed.

`RUSTLISP-ABSOLUTE-PATH` `RUSTLISP-DIRECTORY-ENTRIES` `RUSTLISP-EXIT` `RUSTLISP-FUNCTION-INFO`
`RUSTLISP-GETENV` `RUSTLISP-LOAD-RELATIVE` `RUSTLISP-MONOTONIC-MICROSECONDS` `RUSTLISP-PATH-JOIN`
`RUSTLISP-PUBLISH-FILE` `RUSTLISP-RUN-PROGRAM` `RUSTLISP-SLEEP` `RUSTLISP-SOURCE-DIRECTORY`
`RUSTLISP-UNIX-TIME` `RUSTLISP-WRITE-BYTES` `RUSTLISP-WRITE-STDERR`
