← Mon, Nov 16 digest

Jolt – Clojure that speaks C

read article ↗ hn thread ↗

Jolt is a new self-hosted Clojure implementation running on a portable Scheme layer without a JVM, featuring native C FFI and standalone binary compilation.

summary is enough Worth skimming to understand this JVM-free Clojure alternative and its C FFI approach, especially given the notable discussion on its AI-generated codebase and comparison to Jank.

summary

Jolt is a self-hosted Clojure dialect that compiles via Chez Scheme or Gambit, bypassing the JVM entirely while supporting standard Clojure semantics, concurrency primitives, and core.async. It introduces native C function binding via defcfn and ahead-of-time compilation to a single standalone binary with static C dependencies. In the comment thread, the author defends the project's heavy use of AI generation against criticism, while the creator of competing native Clojure dialect Jank discusses key differences.

key points

  1. Runs on Chez Scheme natively or Gambit for JavaScript, avoiding the JVM while retaining standard Clojure semantics like persistent data structures and transducers.
  2. Provides native C interoperability via defcfn to bind shared libraries like SQLite or OpenSSL directly.
  3. Emits a single standalone binary with C dependencies linked statically via ahead-of-time compilation.
  4. Sparked debate in the comment thread regarding its AI-generated codebase and how it compares to alternative native Clojure dialect Jank.

who should read it

Clojure developers interested in native execution, JVM-free deployment, and C interoperability.

discussion mixed

consensus

Commenters are intrigued by a JVM-free Clojure option with native C bindings, but many express concerns over its heavily AI-generated codebase and justifications in the project documentation.

pushback

The author defends AI-assisted development for managing large codebases, while alternative Clojure dialect Jank's author highlights distinct design goals and its human-written codebase.

best comment by Jeaye ↗

I am the author of jank. Saying that jank "does not aim to be a drop in replacement for Clojure" may send the message that jank is not a full Clojure dialect. This is unclear at best. jank is a native Clojure dialect with seamless C and C++ interop and a strong native ecosystem story, including native project and dependency management.

I believe what you're trying to say there, with "drop in replacement", is that jolt emulates common Java interop forms in Clojure JVM such that code written for Clojure JVM doesn't need to be ported to run on jolt. This a compelling feature which other …

The creator of competing native Clojure project Jank clarifies its scope and notes that Jolt is AI-coded, sparking a broader discussion on AI-assisted language development.

Generated by an LLM from the article and thread. Check the sources before relying on it.