(rontolisp) docs

rontolisp

rontolisp logo

rontolisp is a set of language front ends and execution backends joined by one intermediate language: S-expressions. Each front end reads its source and lowers it to the same core Lisp forms; macro expansion and the compile passes run on those forms, and each backend takes them from there. No backend knows a front end's names.

 .lisp  Common Lisp --+                           +-- Interpreter (REPL)
 .scm   Scheme      --+                           +-- JVM: .class / .jar
 .clj   Clojure     --+--> S-expressions ---------+-- WASM (wasm-GC): WASI Preview 1 module,
 .star  Starlark    --+    (core Lisp forms)      |     WASI 0.3 component
 .java  Java        --+                           +-- WASM (--no-gc): MVP module
                                                  +-- Native executable (--native)

Common Lisp is the IR's own language and the most complete front end; the others are experimental. It is all written in Java with no external dependencies in the core.

Front ends

LanguageFiles
Common Lisp.lispA subset of ANSI Common Lisp: the Language Reference, the Guides and what is missing
Scheme (experimental).scmA subset of R7RS-small
Clojure (experimental).clj, .cljcA small subset; deps.edn projects, nREPL, Ring
Starlark (experimental).starThe Python dialect of Bazel's build files
Java (experimental).javaA subset of the language with its own classes (no JDK code); Servlet, JDBC

The language is picked per file by its extension (--source-language overrides it), so one program may mix languages file by file. Where a pair does not combine: --no-gc takes only a restricted subset of Common Lisp, and Clojure's Java interop runs on the interpreter and the JVM only.

Backends

  • Interpreter -- tree-walking evaluation with a REPL; the default when a file is run, built for turnaround rather than throughput (loop-heavy code runs 20x-200x faster compiled). SWANK (SLIME, SLY, Lem) for Common Lisp and nREPL for Clojure
  • JVM -- a .class or an executable .jar runnable on any JRE
  • WebAssembly -- wasm-GC output as a WASI Preview 1 core module or a WASI 0.3 component that implements or calls WIT worlds, plus a --no-gc MVP module for runtimes without wasm-GC
  • Native executable -- --native precompiles the WASM output with wasmtime into one self-contained executable that needs neither wasmtime nor a JVM

Besides running and compiling, the rontolisp command formats source and runs a test suite with its verdict as the exit code: rove for Common Lisp, clojure.test for a deps.edn project and JUnit Jupiter tests for a Java program. The Maven plugin does the same inside a Maven build: it compiles src/main/lisp into the project's jar, compiles a Java program to WebAssembly and runs the tests. Build & Install covers the prebuilt binaries and building from source.

Try it

The examples on these pages run in your browser via the same WebAssembly build as the playground:

Press Run above (the rontolisp runtime loads on the first run).

Working with an AI coding agent? These same pages are published as an agent skill, regenerated on every deploy.