Clj.rs – a Clojure dialect implemented in Rust
Clj.rs is an experimental Clojure dialect implemented in Rust, designed as a Lisp runtime for the Rust ecosystem.
summary is enough The project is in early alpha and the author admits it was largely 'vibecoded' using LLMs, making it a curiosity rather than a production tool.
summary
Clj.rs provides a Clojure-like environment with persistent data structures and a hosted macro system targeting Rust. It is intended for use as an agentic coding runtime, though it is currently in an early, rough state. The author openly states that much of the recent development was performed by LLMs, which has sparked a debate in the comments about the quality and legitimacy of AI-generated software.
key points
- Implemented in Rust and available on crates.io with a browser-based REPL.
- Aims for native interop with Rust, though early users find it less seamless than Clojure's JVM interop.
- Positioned as a tool for 'agentic coding' and rapid prototyping.
- The author acknowledges that internals may be a 'horror show' due to heavy reliance on LLM generation.
who should read it
Lisp enthusiasts and Rust developers interested in embedding a dynamic language or exploring AI-assisted language implementation.
discussion mixed
consensus
Commenters are generally interested in the concept of Clojure dialects on other platforms (like Jank for C++), but are skeptical of this specific implementation's stability.
pushback
A significant portion of the thread expresses disdain for 'vibecoding,' arguing that LLM-generated projects lack technical rigor and may mislead the community.
One of the killer features of Clojure is it's seamless interop with the host platform. On the JVM you do something like
(Integer/parseInt my-variable); this calls Integer.parseInt(my_variable) in Java-land
I tried to find examples for how to call Rust code and the best I could find is:
https://github.com/csm/clojurust/blob/b847a29b46e2b6b3fbe624...
It looks like you need to do a lot of leg work to introduce Rust functions into Clojure namespaces. I guess there is no way around it and this is not a criticism of clj.rs. But it doesn't seem to be as seamless as on the JVM.
Provides a concrete technical comparison between Clojure's JVM interop and the current friction in Clj.rs's Rust interop.
Generated by an LLM from the article and thread. Check the sources before relying on it.