Jolt compiles Clojure code, its runtime, standard library, and dependencies into a single, self-contained executable. This process eliminates the need for external runtimes like the JVM or Chez Scheme for deployment. The compilation analyzes Clojure code into a host-neutral intermediate representation, then emits Scheme, which runs natively on Chez or compiles to JavaScript via Gambit.
A core feature of Jolt is its ability to bind to any C shared library. Developers can declare C functions using `defcfn` and call them directly from Clojure with Clojure values. This capability is demonstrated by existing libraries like `db` for SQLite and Postgres, and `http-client` which binds OpenSSL and zlib.
Jolt supports many core Clojure features, including immutable data structures like vectors, lists, and HAMT maps/sets, with Clojure value semantics. It also includes lazy sequences, transducers, destructuring, multimethods, protocols, records, metadata, namespaces, and runtime evaluation. Concurrency primitives like `future`, `promise`, `agent`, `pmap`, and `core.async` channels run on OS threads with a shared heap, mirroring JVM semantics.
The Jolt binary is self-contained, bundling the runtime, compiler, and standard library, requiring no additional installations. It can be installed via Homebrew or a provided install script for Linux and macOS. Users can execute Clojure expressions directly, run modules, or build optimized or development executables. An nREPL server is also available for interactive development.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Jolt is a new tool that compiles Clojure projects into single, self-contained executables, linking C dependencies statically. It allows Clojure code to directly bind and call functions from any C shared library, offering a way to deploy Clojure applications without a JVM or Chez Scheme runtime.