cl-all
2026-11-29
A script to evaluate expressions in multiple lisp implementations.
Upstream URL
Author
Yukari Hafner <shinmera@tymoon.eu>
Maintainer
Yukari Hafner <shinmera@tymoon.eu>
License
zlib
## About CL-ALL
This is a simple script to run a Lisp snippet in locally installed lisp implementations. Requires at least SBCL.
## How To
You can either build a fixed SBCL binary with ``make``, or symlink ``cl-all.lisp`` to ``cl-all``. Either way, once ``cl-all`` is in your path:
::
cl-all '(print :hi)'
cl-all sbcl ecl '(print "Oh man!")'
cl-all --print '"Oh man"'
cl-all --file "something.lisp"
echo ":stdin" | cl-all --print
::
You can also load this system into your SBCL session and use it from the comfort of the REPL:
:: common-lisp
(cl-all:eval-in-lisp :ecl "(print call-arguments-limit)")
::
## Example Output
::
$ cl-all --print call-arguments-limit
--> ABCL: 50
--> Allegro: 16384
--> CCL: 65536
--> CLisp: 4096
--> CMUCL: 536870911
--> ECL: 65536
--> MKCL: 2305843009213693951
--> SBCL: 4611686018427387903
::
## CLI Reference
::
cl-all, the Common Lisp implementation comparator
Usage: cl-all [IMPLEMENTATION]... [OPTION]... [SNIPPET]...
implementation:
The given implementation is run. If no implementations are
explicitly specified, all known and available implementations
are used. See -L for a list of available implementations.
option:
-a, --ansi
Use ANSI escape codes to mark up the output.
-d, --disassemble
Compile and print the disassembly of the expressions.
-e, --eval <form>
Evaluate the given expression.
-f, --file <file>
Use the given file as input.
-h, --help
Show this usage prompt and exit.
-i, --immediate
Instead of capturing the output and presenting once
finished, immediately output as the lisp process continues.
-l, --load <file>
CL:LOAD the given file.
-L, --lisps
List all known and available implementations and exit.
-n, --no-rc
Do not run implementation init files.
-p, --print
Print the value of the last form. Will also trim extraneous
whitespace from the output.
-x, --parallel
Run the implementations in parallel.
--
All further arguments are used as tokens to be evaluated,
concatenated by spaces.
The --eval --file, and --load options can be specified multiple
times, even mixing order, and they will be evaluated in the order
they appear as options.
snippet:
A lisp snippet to be evaluated.
If no snippet, file, or eval option is given, the standard input is
used to read forms from. Forms are read until EOF is encountered.
The source code for cl-all can be obtained from:
https://shinmera.com/projects/cl-all
::
## Known Implementations
- ABCL
- Allegro
- CCL
- Clasp
- Clisp
- CMUCL
- ECL
- GCL
- JSCL
- MKCL
- SBCL
## Docker
An image of cl-all together with most implementations is available from shinmera/cl-all. You may use this to test your code in CI or run samples on other implementations. By default the entry point into the image is `env` so you can run any other implementation simply by its name:
::
docker run -it shinmera/cl-all sbcl
::