← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Jolt Compiles Clojure to Self-Contained Executables with C Library Bindings

🔄 Updated 5d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Compiles Clojure to self-contained executables.
  • Statically links C dependencies into the binary.
  • Provides FFI for direct C library calls.
  • No JVM or Chez Scheme needed for execution.

Clojure to Native Executables

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.

C Library Interoperability

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.

Clojure Feature Support

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.

Installation and Usage

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 →

The daily brief

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.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 21

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

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.