cljgo

Clojure hosted on Go: a REPL and an AOT compiler to static native binaries

A Clojure implementation on Go: a compiler written in Go that emits plain Go source, as ClojureScript does with JavaScript, plus a tree-walk evaluator for the REPL and macros, with zero-binding Go interop, core.async on real goroutines, nREPL and cross-compiled single-file builds.

  • 98.3% (238 / 242)Clojure conformance
  • 7.1 MBHello binary
  • ~5 msHello startup

Trade-offs

  • Interpreted and compiled runs must print byte-identical output: a dual-harness suite of 416 files enforces it on every commit, and a divergence blocks a release.
  • Every binary is pure Go with cgo off, so one host cross-compiles to every platform, but cljgo build needs the Go toolchain installed.
  • Nothing added may shadow or change clojure.core semantics, and no new syntax: editors use the stock Clojure grammar.

Q&A4

Any Go module is required and called with no bindings; (T, error) returns come back as [value err], and a bang-suffixed call unwraps or throws.

Reviews

Loading reviews

    More in Clojure

    • EpuppBrowser extension that opens a live ClojureScript REPL into any web page
    • Xs of YA roguelike where the magic system is a Lisp, with runes remapped every run
    • ArrodesA terminal coding agent that works through one persistent Clojure REPL

    More in Go

    See all 99 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • OmagenImage-to-theme studio for Omarchy with reversible previews and recovery
    • XDPerfXDP traffic generator with WASM packet plugins
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
    • PandaWardLocal application security assessment that reports what it couldn't decide

    More in Claude Code

    See all 421 →
    • jobdGPU-aware job broker for a few personal machines, with an MCP server
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • TellyscopeAndroid TV debloater and remote that runs from a phone over ADB
    • SealEncrypted letters and secrets for after a death, opened by M of N key holders