Standalone Lisp · v0.0.1

Zero-C, No-GIL Elisp.零 C 依赖、
无 GIL 的 Elisp 运行时。

Run scripts, interactive TTY sessions, and parallel Rust-backed stdlib tasks with elisp, or embed the Lisp engine directly in Rust via lisp.

使用 elisp 直接运行脚本、交互式 TTY REPL 与纯 Rust 标准库任务,或通过 lisp 将多核无 GIL Lisp 运行时嵌入你的 Rust 应用。

Install CLI or embed in Rust

Install and run the standalone binary

Prebuilt macOS & Linux binaries via Homebrew, npm, or shell installer (or build from source via Cargo); silent cold boot with background atomic .pdmp cache.

# Prebuilt standalone elisp for macOS & Linux
brew install liuchong/tap/elisp
npm install -g femacs
curl -fsSL https://femacs.com/install.sh | sh -s -- --only elisp

# Or build from source (all platforms)
cargo install elisp

elisp eval '(+ 20 22)'
elisp repl
elisp --concurrency=no-gil eval '(progn (require (quote std/json)) (std-json-stringify (list (cons "ok" t))))'

Embed lisp in your Rust application

Engine is Send in NoGil mode and supports safe host closures plus binary Value::Bytes.

// Cargo.toml: lisp = "0.0.1"
use lisp::prelude::*;

fn main() -> Result<(), Error> {
    let mut engine = Engine::init(EngineConfig::cold_stdlib())?;
    let val = engine.eval(r#"(progn (require 'std/json) (std-json-stringify '((ok . t))))"#)?;
    assert_eq!(val.as_str(), Some("[[\"ok\",true]]"));
    Ok(())
}

Tailor capabilities via Cargo features

Opt out of network/DB batteries or keep only pure-Rust process/RPC helpers.

# Full embedder runtime (default = ["vm", "std"])
lisp = "0.0.1"

# Lightweight VM sandbox without HTTP/TLS/redb
lisp = { version = "0.0.1", default-features = false, features = ["vm"] }

# Binary CLI without rustyline or std/* batteries
cargo install elisp --no-default-features --features repl-tty

Four cleanly layered crates

elisp ↗

[[bin]] standalone CLI, script/shebang runner, rustyline TTY REPL (elisp> ), init/pkg dependency manager, compiler, ERT test runner, and JSON-RPC worker. Defaults: ["repl-tty", "std"].

lisp ↗

[lib] high-level embeddable runtime exporting lisp::prelude::*, lisp::vm, and lisp::stdlib. Orthogonal vm, std, and pkg features plus default-features = false zero-VM process/RPC utilities.

lisp-std ↗

[lib] 100% pure-Rust (#![forbid(unsafe_code)], zero cc or C -sys crates) standard library batteries for HTTP/TLS, ACID KV & SQL, codecs, archives, crypto, time, FS/glob, and regex.

lisp-vm ↗

[lib] low-level headless VM, garbage collector, bytecode engine, HostExtFn host callbacks, .pdmp dump/restore, and opt-in isolate_vm per-isolate thread isolation.

Pure-Rust stdlib/std/* modules

Every standalone battery avoids C compiler toolchains and OpenSSL/SQLite dynamic libraries, linking only standard OS runtime libraries.

GroupModulesBacking Pure-Rust Implementation
Concurrencystd/task, std/chan, std/syncOS-thread isolates, worker pools, MPMC channels, atomics, mutexes, shared maps
Web & Datastd/http, std/kv, std/dbureq + rustls + rustls-rustcrypto, HTTP/1.1 TCP server, redb ACID KV & SQL
Formatsstd/json, toml, csv, yaml, url, base64Structured codecs, URL builder/parser, standard & URL-safe Base64
Archives & Cryptostd/archive, std/crypto, std/timeflate2 rust_backend, tar, zip, CSPRNG/SHA/HMAC/UUID, jiff timezones
System & CLIstd/fs, path, regex, proc, env, cli, logwalkdir, globset, linear-time regex, bounded subprocesses, declarative CLI/logging

Platform verification boundaries

Standalone crates report exact tested targets without claiming runtime coverage on untested hosts.

TargetStatusVerification Scope
macOS (aarch64-apple-darwin)Verified (real host)Full feature matrix, unit/integration tests, TTY REPL, otool -L (libiconv.2 & libSystem.B only), isolated 4-crate rebuild, fe-test, and real-network npm / install.sh smoke tests
macOS (x86_64-apple-darwin)Cross-compile + Mach-OPrebuilt v0.0.1 archive verified via clean --release build + otool -L system dylibs only (no physical Intel Mac / Rosetta test)
Linux (aarch64 / x86_64)VM runtime + Zig ELFReal Debian 12 aarch64 Lima VM runtime + 4-worker NoGil speedup; prebuilt aarch64 & x86_64 archives compiled via Zig (glibc >= 2.31)
Windows (x86_64-pc-windows-msvc / gnu)Cross-compile ONLYArchitecture verified via clean cargo check (windows-sys Job Objects, Toolhelp32, TCP loopback RPC); no physical Windows host runtime verification (no prebuilt Windows binary)