{"slug": "clojol-a-high-performance-fast-startup-implementation-of-clojure-unofficial", "title": "Clojol: A high-performance, fast-startup implementation of Clojure (unofficial)", "summary": "An independent clean-room implementation of Clojure 1.12 called Clojol, written in pure Java 21+ with zero external dependencies, passes 100% of the official Clojure 1.12.0 test suite — 20,423 of 20,423 assertions across 82 of 82 namespaces plus 27 of 27 generative defspecs — while claiming JVM binary ABI compatibility with clojure.lang.* and true AOT compilation. In a recursive fib(40) benchmark on Windows (median of 5 trials, OpenJDK 25.0.4.1 LTS Temurin, Clojure 1.12.6), Clojol with auto-memoization completed run 3 in 0.003 ms and 0.15 s total wall time, versus 668.4 ms and 2.66 s for Clojure 1.12.6 and 139.8 ms for gcc 14.2.0 -O3 C. Clojol is not affiliated with or endorsed by Rich Hickey or Nubank.", "body_md": "A high-performance, fast-startup implementation of Clojure 1.12 in pure Java (Java 21+), with zero external dependencies, real `clojure.lang.*` JVM binary ABI compatibility, true AOT compilation (`compile` emitting `<ns>$<fn>.class` + `<ns>__init.class` & `gen-class`), full `clojure.core` public API parity, and **100%** pass rate across the official Clojure 1.12.0 test suite (82/82 namespaces, 20,423/20,423 assertions + 27/27 generative `defspec` s).\n\nClojol is an independent, clean-room implementation of the Clojure language and is not affiliated with or endorsed by Rich Hickey or Nubank.\n\n- Faster Startup\n- Faster Numeric Computation\n- Easier Build\n\nRecursive `fib(40)` benchmark ([`test/fib_bench.clj`](https://github.com/kimtg/Clojol/blob/main/test/fib_bench.clj)) measured back-to-back on Windows (median of 5 trials, OpenJDK 25.0.4.1 LTS Temurin, `gcc 14.2.0 -O3`, `clang 19.1.7 -O3`, Clojure 1.12.6), comparing **Clojol** (`-XX:AOTCache=build/cljl.aot -jar build/cljl.jar test/fib_bench.clj`) against standard recursive `int64_t fib(int64_t n)` in C (with `volatile int64_t arg = 40` so C compilers cannot hoist `fib(40)` out of the timing loop) and **Clojure 1.12.6** (`clojure.main test/fib_bench.clj`):\n\n| Implementation | Run 1 | Run 2 | Run 3 | Total Wall Time ( `×3` + startup) | vs. `gcc -O3` (Run 3) | vs. Clojure 1.12.6 (Run 3) | \n|---|---|---|---|---|---|---|\n| **Clojol (`cljl`, Auto-Memo)** | **6.08 ms** | **0.010 ms** | **0.003 ms** | **0.15 s** | **~47,000x faster** | **~223,000x faster** | \n| **Clojol (`cljl`, `-Dcljl.jit.automemo=false`, Frontier CSE)** | **4.56 ms** | **0.047 ms** | **0.015 ms** | **0.14 s** | **~9,300x faster** | **~45,000x faster** | \n| **Clojol (`cljl`, `-Dcljl.jit.automemo=false -Dcljl.jit.cse=false`)** | **69.8 ms** | **49.8 ms** | **49.2 ms** | **0.31 s** | **2.84x faster** | **13.6x faster** | \n| C ( `gcc 14.2.0 -O3` ) | 144.2 ms | 139.8 ms | 139.8 ms | 0.43 s | 1.00x | 4.8x faster | \n| C ( `clang 19.1.7 -O3` ) | 197.1 ms | 200.4 ms | 196.1 ms | 0.61 s | 0.71x | 3.4x faster | \n| Clojure 1.12.6 | 680.4 ms | 656.7 ms | 668.4 ms | 2.66 s | 0.21x | 1.00x | \n\nWith type inference (`TypeAnalyzer.java`) and primitive-specialized Tier-1 bytecode compilation (` BytecodeJIT.java`), Clojol infers unboxed `long` parameters/returns with no user type hints required, compiles pure zero-capture self-recursive functions into `private static` `invokestatic` workers with a hoisted entry `Var` guard (`with-redefs`-safe), transforms associative `+`/`*` self-recursion into `O(1)`-stack accumulator loops (and nested `int`-narrowed accumulator loops with 2-step compile-time base-case peeling for multi-branch linear-decrement recursion; disable via `-Dcljl.jit.tco=false`), and applies **compiler-verified auto-memoization** (` PureMemo.java`, JMM-sound lock-free bounded `AtomicLongArray` / `SoftReference`-bounded caches; disable via `-Dcljl.jit.automemo=false` to fall back to 2-step frontier CSE, and disable frontier CSE via `-Dcljl.jit.cse=false`) to strictly pure multi-branch self-recursive functions. Auto-memoization uses a strict allowlist of pure AST nodes, is guarded against core `with-redefs`, and never affects functions with side effects (e.g. [` test/fib_impure_bench.clj`](https://github.com/kimtg/Clojol/blob/main/test/fib_impure_bench.clj)).\n\nNote that `gcc -O3` and `clang -O3` do not perform recursive auto-memoization or pure-call CSE (converting the right branch into an accumulator loop and still executing `O(φ^n)` calls); with both auto-memoization and frontier CSE disabled (`-Dcljl.jit.automemo=false -Dcljl.jit.cse=false`), Clojol hoists its proven overflow-free range guard once at entry (falling back to exact `Math.addExact` outside the safe bound), narrows the guarded induction parameter to 32-bit `int` for HotSpot C2 counted-loop optimization, and executes the full exponential `O(φ^40)` recursive tree via 5-deep nested associative tail loops with 2-step compile-time base-case peeling.\n\n`1,000,000` iterations incrementing a counter (median of 7 runs after warmup, OpenJDK 25.0.4.1 on Windows):\n\n| Benchmark ( `N = 1,000,000` ) | Clojol ( `cljl` ) | Clojure 1.12.6 | Speedup | \n|---|---|---|---|\n| `loop/recur` | **0.13 ms** | 0.18 ms | **1.36x faster** | \n| `volatile!` (local`vswap!` ) | **0.13 ms** | 8.00 ms | **59.7x faster** | \n| `volatile!` (returned/tail-escaping`vswap!` ) | **0.13 ms** | 6.46 ms | **48.6x faster** | \n| `volatile!` (escaping param`vswap!` ) | **0.55 ms** | 8.67 ms | **15.8x faster** | \n| `atom` (local`while` /`loop`` swap!` ) | **0.35 ms** | 11.51 ms | **32.9x faster** | \n| `atom` (returned/tail-escaping`swap!` ) | **0.30 ms** | 11.40 ms | **37.6x faster** | \n| `atom` (escaping param`swap!` , lock-free atomic) | **8.08 ms** | 13.55 ms | **1.68x faster** | \n| `atom` (4-thread contended`4×250k`` swap!` ) | **33.91 ms** | 104.54 ms | **3.08x faster** | \n\n`BytecodeJIT.java` eliminates redundant overflow checks on range-bounded `long` loop counters (`(< i n)` -> `(inc i)`), scalar-replaces non-escaping and tail-escaping local `volatile!` and `atom` bindings into unboxed JVM locals (deferring allocation until return when needed), compiles escaping `vswap!`/` vreset!` into fused unboxed RMW ops backed by a single-field 63-bit fast-long `VarHandle` acquire/release path in `Atom.Volatile` (pass `-Dcljl.volatile.strict=true` for full `volatile` fence semantics), and uses a JMM-sound wait-free 63-bit `VarHandle.getAndAdd` (`lock xadd`) and CAS path in `Atom` that eliminates `Long` allocation and GC write barriers on numeric `swap!`/` reset!` across all threads.\n\nMedian of 5 runs after warmup on OpenJDK 25.0.4.1 (Windows):\n\n| Benchmark | Clojol ( `cljl` ) | Clojure 1.12.6 | Relative | \n|---|---|---|---|\n| `(Math/sin 0)` (`1M` iterations) | **0.005 ms** | 2.09 ms | **~420x faster** | \n| `sort-by :k` (`50k` maps) | **1.31 ms** | 8.92 ms | **6.8x faster** | \n| `(->> (range 100k) (map inc) (filter even?) (reduce + 0))` | **0.38 ms** | 1.42 ms | **3.8x faster** | \n| `str/join \",\" (range 20k)` | **0.37 ms** | 1.11 ms | **3.0x faster** | \n| `sort` (`50k` reversed vec) | **0.69 ms** | 1.48 ms | **2.2x faster** | \n| `vec` transient`conj!` (`100k` ) | **0.43 ms** | 0.87 ms | **2.0x faster** | \n| `into [] (comp (map inc) (filter even?)) (range 100k)` | **0.51 ms** | 0.95 ms | **1.9x faster** | \n| `str/split` (`20k` CSV) | **0.98 ms** | 1.79 ms | **1.8x faster** | \n| `transduce (comp (map inc) (filter even?)) + 0 (range 100k)` | **0.21 ms** | 0.34 ms | **1.6x faster** | \n| `defprotocol` bimorphic dispatch (`500k` , 2 records) | **1.35 ms** | 1.90 ms | **1.4x faster** | \n| `frequencies` (`50k` ) | **1.83 ms** | 2.21 ms | **1.2x faster** | \n| `map`` get` (`50k` keywords) | **1.66 ms** | 1.97 ms | **1.2x faster** | \n| `defprotocol` dispatch (`500k` ,`defrecord` var) | **1.16 ms** | 1.24 ms | **1.1x faster** | \n\nDriven by compile-time pure `Math`/` StrictMath` constant folding, `LongRange` + `IReduceInit` + chunked lazy pipelines, unboxed `Fn` primitive dispatch hooks (`invokePrim_*`), adaptive radix/Schwartzian `FastSort` with `LongArraySeq`/` ArraySeq`, `private static final` JIT constant fields + single-load `Var.fastRoot`, 32-way `ArrayNode` + iterative HAMT traversal and C2-inlineable `RT.get`/` RT.getKeyword` + O(1) `String` hashing, primitive `defrecord` fields, and generated JVM protocol interfaces with out-of-line 2-entry PIC fallbacks.\n\nCold startup + eval (`java ... -jar build/cljl.jar -Srepro -Sdeps \"{}\" -e \"(+ 1 2)\"`) measured across 8 runs on OpenJDK 25.0.4.1 (Windows):\n\n| Mode | Min | Median | Average | \n|---|---|---|---|\n| **Clojol — AOT Cache (`-XX:AOTCache=build/cljl.aot`, JDK 24+)** | 68.2 ms | **69.5 ms** | 69.4 ms | \n| **Clojol — Default JDK CDS (`java -jar build/cljl.jar`)** | 125.3 ms | **127.4 ms** | 127.4 ms | \n| **Clojol — No CDS (`-Xshare:off`)** | 161.6 ms | **164.5 ms** | 166.4 ms | \n| **Clojure 1.12.6 (`clojure.main -e \"(+ 1 2)\"`)** | 434.7 ms | **439.0 ms** | 441.6 ms | \n\nThrough lazy on-demand `Core`/` CoreExtras` subsystem initialization, lazy `HttpClient` initialization in `Deps`, `tableswitch` dispatchers, zero-JCA inline SHA-256, and JDK 24+ AOT Cache (`build/cljl.aot`, with automatic `build/cljl.jsa` AppCDS fallback on JDK 21–23), Clojol achieves **~70 ms** cold startup (**6.3x faster** than Clojure 1.12.6 and **~45% faster** than default JDK CDS). Startup loads only **1,283** classes (**1,281** memory-mapped directly from `build/cljl.aot` and **0** loaded from `cljl.jar`). Note that `-J` / `:jvm-opts` relaunches and lazily loaded `StdLib` namespaces fall back to loading from `cljl.jar`.\n\n- **JDK 21 or newer** (`javac` ,`java` ,`jar` on`PATH` ) — tested on OpenJDK 25.0.4.1.\n\nBoth `cljl.bat` (Windows) and `cljl.sh` (Linux/macOS) automatically compile `src/` into `build/cljl.jar` and generate `build/cljl.aot` (JDK 24+ AOT cache) or `build/cljl.jsa` (JDK 21–23 AppCDS archive) on first run.\n\n```\n# Run the jar file without AOT cache / AppCDS\njava -jar build/cljl.jar\n\n# Windows\n.\\cljl.bat\n\n# Linux / macOS\nchmod +x cljl.sh\n./cljl.sh\n```\n\nSupports multi-line balanced forms, thread-local `*1`, `*2`, `*3`, `*e`, `*ns*`, SIGINT handling, and EOF.\n\n```\n./cljl.sh -e \"(reduce + (map #(* % %) (range 1 11)))\"\n./cljl.sh path/to/script.clj arg1 arg2\n```\n\nScript arguments are bound to `*command-line-args*`. Pass `-` to read and execute from `stdin`.\n\n`cljl` supports the standard Clojure CLI modes (`-A`, `-X`, `-M`, `-T`, `-P`), `clj-opts`, `deps.clj` flags (`-Sdeps-file`, `-Scommand`), `clojure.main` init/main flags, and `:deps` alias tools:\n\n```\n./cljl.sh [clj-opt*] [-Aaliases]                       # Start REPL\n./cljl.sh [clj-opt*] -X[aliases] [a/fn*] [kpath v]*    # Exec function(s)\n./cljl.sh [clj-opt*] -M[aliases] [init-opt*] [main-opt] [arg*]  # Run main\n./cljl.sh [clj-opt*] -T[name|aliases] a/fn [kpath v] kv-map?    # Run tool\n./cljl.sh [clj-opt*] -P [other exec opts]              # Prepare deps only\n```\n\n| Category | Flag | Description | \n|---|---|---|\n| **Exec** | `-Aaliases` | Use concatenated aliases to modify classpath | \n|  | `-X[aliases]` | Modify classpath and invoke `a/fn` (or`:exec-fn` ) with EDN key/value args | \n|  | `-M[aliases]` | Modify classpath and supply `:main-opts` to`clojure.main` | \n|  | `-T[name\\|aliases]` | Run tool (isolates project `:paths` /`:deps` ; loads`~/.clojure/tools/<name>.edn` if named) | \n|  | `-P` | Prepare deps — resolve/download libs and cache classpath without executing | \n| **JVM / Deps** | `-Jopt` | Pass JVM option through (e.g. `-J-Xmx512m` ,`-J-Dprop=val` ) | \n|  | `-Sdeps EDN` | EDN map string or file merged last into deps config | \n|  | `-Sdeps-file FILE` | Use custom file instead of `deps.edn` (`deps.clj` option) | \n|  | `-Spath` | Compute classpath and print to stdout only | \n|  | `-Stree` | Print dependency tree and exit | \n|  | `-Scp CP` | Use given classpath directly without computing or caching | \n|  | `-Srepro` | Ignore `~/.clojure/deps.edn` config file | \n|  | `-Sforce` | Force classpath recomputation (bypass `.cpcache` ) | \n|  | `-Sverbose` | Print resolved config/cache paths and settings | \n|  | `-Sthreads N` | Set number of download/resolution threads | \n|  | `-Strace` | Write `trace.edn` tracing dependency expansion and basis | \n|  | `-Scommand CMD` | Invoke custom shell command with `{{classpath}}` and`{{main-opts}}` substitutions | \n|  | `--` | Stop parsing `clj` options and pass remaining args to`clojure.main` | \n|  | `-version` ,`--version` | Print Clojol & Clojure CLI version and exit | \n| **Init (`clojure.main`)** | `-i` ,`--init PATH` | Load a Clojure file or classpath resource | \n|  | `-e` ,`--eval EXPR` | Evaluate exprs in string and print non-nil values | \n|  | `--report TARGET` | Report uncaught exceptions to `\"stderr\"` (default) or`\"none\"` (`\"file\"` also reports to stderr) | \n| **Main (`clojure.main`)** | `-m` ,`--main NS` | Call `-main` in namespace`NS` with remaining args | \n|  | `-r` ,`--repl` | Run an interactive REPL | \n|  | `PATH` | Run a script from a file or classpath resource | \n|  | `-` | Run a script from standard input ( `stdin` ) | \n|  | `-h` ,`-?` ,`--help` | Print full CLI help message and exit | \n\n**Built-in `:deps` alias programs** (`clojure.tools.deps.cli.api`):\n\n- `./cljl.sh -X:deps aliases` — list available aliases and their sources\n- `./cljl.sh -X:deps list` — list full transitive deps set and licenses\n- `./cljl.sh -X:deps tree` (supports`:format :edn` ) — print dependency tree\n- `./cljl.sh -X:deps basis` — print runtime basis EDN\n- `./cljl.sh -X:deps find-versions :lib group/art` (or`:git/url ...` ) — list available Maven/Git versions\n- `./cljl.sh -X:deps prep` — run`:deps/prep-lib` steps for unprepped dependencies\n- `./cljl.sh -X:deps mvn-pom` — generate`pom.xml` with resolved Maven deps\n- `./cljl.sh -X:deps mvn-install :jar '\"path/to/lib.jar\"'` — install jar/pom into local Maven repo (`$M2_REPO` /`~/.m2/repository` )\n- `./cljl.sh -X:deps git-resolve-tags` — resolve`:git/tag` coords to`:git/sha` in`deps.edn`\n\nDependency resolution implements BFS nearest-then-newest Maven mediation, Maven version ranges, BOM imports (`<scope>import</scope>`), parent POM inheritance, `~/.m2/settings.xml` mirrors/credentials, and live basis refresh (`clojure.java.basis` + `clojure.repl.deps/add-libs`). Environment variables `$CLJ_CONFIG`, `$CLJ_CACHE`, `$M2_REPO`, `$GITLIBS`, and `CLJL_OPTS` (extra JVM flags) are also supported.\n\n- **Reader** : Lists, vectors, maps, sets, metadata (`^` /`#^` ), quote (`'` ), syntax-quote (`` ` `` ), unquote (`~` ), unquote-splicing (`~@` ), auto-gensyms (`x#` ), anonymous fn literals (`#(...)` ), regexes (`#\"...\"` ), discard (`#_` ), var-quote (`#'` ), deref (`@` ), read-eval (`#=(...)` ), namespaced maps (`#:ns{}` /`#::{}` ), reader conditionals (`#?()` /`#?@()` ,`{:read-cond :preserve}` /`reader-conditional` ), tagged literals (`#uuid` ,`#inst` ,`tagged-literal` ,`*data-readers*` ,`*default-data-reader-fn*` ),`read+string` ,`*read-eval*` ,`*suppress-read*` ,`*reader-resolver*` , symbolic values (`##Inf` ,`##-Inf` ,`##NaN` ), ratios (`3/2` ), BigInts (`42N` ), BigDecimals (`3.5M` ), hex/octal/binary/radix numbers.\n- **Persistent Data Structures & Chunks** :\n  - `PersistentVector` & primitive-backed`clojure.core.Vec` (32-way bit-partitioned trie + tail buffer +`TransientVector` ,`APersistentVector$RSeq` ,`Reversible` ,`vector-of` ,`->Vec` ,`->VecNode` ,`->VecSeq` )\n  - Chunked sequences (`chunk-buffer` ,`chunk-append` ,`chunk` ,`chunk-cons` ,`chunk-first` ,`chunk-next` ,`chunk-rest` ,`chunked-seq?` ,`->ArrayChunk` )\n  - `PersistentHashMap` &`PersistentHashSet` (32-way HAMT +`MapEntry` + transients +`EMPTY-NODE` )\n  - `PersistentTreeMap` &`PersistentTreeSet` (`sorted-map` ,`sorted-map-by` ,`sorted-set` ,`sorted-set-by` ,`subseq` ,`rsubseq` ,`rseq` ,`comparator` )\n  - `PersistentRecord` (`defrecord` ),`PersistentStructMap` (`create-struct` ,`defstruct` ,`struct` ,`struct-map` ,`accessor` ),`PersistentQueue` , and`PersistentList` /`LazySeq`\n  - Contrib structures: `priority-map` ,`ordered-map` ,`ordered-set` ,`ordering-map` ,`int-map` ,`int-set` ,`dense-int-set`\n- **Transducers, Sequences & Streams** :`transduce` ,`completing` ,`cat` ,`halt-when` ,`eduction` /`->Eduction` ,`sequence` , transducer arities (`map` ,`filter` ,`remove` ,`take` ,`take-while` ,`take-nth` ,`drop` ,`drop-while` ,`keep` ,`keep-indexed` ,`map-indexed` ,`mapcat` ,`distinct` ,`dedupe` ,`interpose` ,`partition-all` ,`partitionv-all` ,`partition-by` ,`replace` ,`random-sample` ), Clojure 1.12 vector/stream ops (`partitionv` ,`partitionv-all` ,`splitv-at` ,`replicate` ,`stream-seq!` ,`stream-reduce!` ,`stream-transduce!` ,`stream-into!` ),`lazy-cat` ,`not-empty` ,`bounded-count` ,`line-seq` ,`file-seq` ,`xml-seq` ,`resultset-seq` ,`enumeration-seq` ,`iterator-seq` ,`seque` ,`iteration` ,`update-keys` ,`update-vals` .\n- **Special Forms, Binding & Macros** :`def` ,`defn` ,`defn-` ,`defmacro` ,`definline` ,`defonce` ,`declare` ,`special-symbol?` ,`destructure` ,`seq-to-map-for-destructuring` ,`refer-clojure` ,`fn` (including`^:once` closure capture & JVM locals clearing and lazy`ISeq`` apply` ),`let` ,`loop` ,`recur` ,`if` ,`if-not` ,`if-let` ,`if-some` ,`when` ,`when-not` ,`when-let` ,`when-some` ,`when-first` ,`cond` ,`condp` ,`case` ,`and` ,`or` ,`->` ,`->>` ,`as->` ,`some->` ,`some->>` ,`cond->` ,`cond->>` ,`doto` ,`for` ,`doseq` ,`dotimes` ,`while` ,`letfn` ,`try` /`catch` /`finally` /`throw` ,`monitor-enter` /`monitor-exit` /`locking` ,`with-open` ,`with-out-str` ,`with-in-str` ,`binding` ,`with-bindings` ,`with-bindings*` ,`with-loading-context` ,`bound-fn` ,`bound-fn*` ,`with-local-vars` ,`with-redefs` ,`with-redefs-fn` ,`lazy-seq` ,`delay` ,`future` ,`comment` ,`ns` ,`time` ,`assert` (`*assert*` ),`memfn` ,`io!` .\n- **Protocols, Types, AOT, Proxy, Printing & Multimethods** :`defprotocol` ,`extend` ,`extend-type` ,`extend-protocol` ,`extends?` ,`extenders` ,`satisfies?` ,`find-protocol-impl` ,`find-protocol-method` ,`-cache-protocol-fn` ,`-reset-methods` ,`defrecord` ,`deftype` ,`reify` ,`definterface` ,`gen-interface` , true AOT compilation (`compile` emitting standalone`<ns>$<fn>.class` bytecode +`<ns>__init.class` for zero-JIT source-free loading + complete`gen-class` ),`SourceFile` /`LineNumberTable` JVM bytecode debug info,`proxy` (`get-proxy-class` ,`construct-proxy` ,`init-proxy` ,`update-proxy` ,`proxy-mappings` ,`proxy-super` ,`proxy-name` ,`proxy-call-with-super` ,`method-sig` ), hierarchies (`make-hierarchy` ,`derive` ,`underive` ,`parents` ,`ancestors` ,`descendants` ,`isa?` ), multimethods (`defmulti` ,`defmethod` ,`prefer-method` ,`prefers` ,`remove-all-methods` ), and printing extensible hooks (`print-method` ,`print-dup` ,`print-simple` ,`print-ctor` ,`PrintWriter-on` ,`*flush-on-newline*` ,`*print-namespace-maps*` ).\n- **State & Concurrency** :`atom` (`swap!` ,`reset!` ,`compare-and-set!` , watches, validators, metadata),`agent` (`send` ,`send-off` ,`send-via` ,`await` ,`await1` ,`await-for` ,`agent-error` ,`agent-errors` ,`clear-agent-errors` ,`restart-agent` ,`set-error-handler!` ,`set-error-mode!` ,`release-pending-sends` ,`shutdown-agents` ), STM`ref` (`dosync` ,`sync` ,`alter` ,`commute` ,`ref-set` ,`ensure` , barging & livelock prevention, history controls),`tap>` /`add-tap` /`remove-tap` ,`volatile!` ,`delay` /`force` ,`promise` /`deliver` ,`future` ,`pmap` ,`pcalls` ,`pvalues` .\n- **Numerics, Hashing, Arrays & Parsing** :`parse-boolean` ,`parse-long` ,`parse-double` ,`parse-uuid` ,`random-uuid` ,`numerator` ,`denominator` ,`rationalize` ,`biginteger` ,`byte` ,`short` ,`num` ,`unchecked-add` /`-int` ,`unchecked-subtract` /`-int` ,`unchecked-multiply` /`-int` ,`unchecked-divide-int` ,`unchecked-remainder-int` ,`unchecked-inc` /`-int` ,`unchecked-dec` /`-int` ,`unchecked-negate` /`-int` ,`with-precision` (`*math-context*` ),`max-key` ,`min-key` ,`Inst` /`inst-ms` /`inst-ms*` ,`hash-combine` ,`mix-collection-hash` ,`hash-ordered-coll` ,`hash-unordered-coll` ,`munge` ,`namespace-munge` , typed arrays (`booleans` ..`doubles` ,`boolean-array` ..`double-array` ,`make-array` ,`into-array` ,`to-array-2d` ,`aset-*` ,`amap` ,`areduce` ,`primitives-classnames` ).\n- **Java Interop & JVM Binary ABI** :`(ClassName. args...)` ,`(new ClassName args...)` ,`(.method obj args...)` ,`(.-field obj)` ,`(ClassName/staticMethod args...)` ,`ClassName/STATIC_FIELD` , Clojure 1.12 qualified method values (`Class/method` ,`Class/.method` ,`Class/new` ,`:param-tags` ), array class syntax & printing (`String/1` ,`long/2` ), SAM functional-interface adaptation,`IDeref` implementing Java`Supplier` interfaces, real`clojure.lang.*` JVM classes & interfaces (`RT` ,`Var` ,`IFn` +`IFn$*` ,`AFn` ,`AFunction` ,`RestFn` ,`ISeq` ,`IPersistent*` ,`ExceptionInfo` ,`ArityException` ,`DynamicClassLoader` ,`Reflector` ,`Compiler` , etc.),`clojure.java.api.Clojure` ,`(set! ...)` ,`(.. a b c)` ,`(import ...)` ,`add-classpath` ,`bases` ,`supers` ,`bean` ,`StackTraceElement->vec` ,`Throwable->map` ,`ex-cause` ,`ex-message` .\n- **Standard Library & Contrib Namespaces** :\n  - Core & JDK: `clojure.core` ,`clojure.core.protocols` ,`clojure.core.reducers` ,`clojure.core.server` (Socket REPL &`prepl` ),`clojure.math` ,`clojure.string` ,`clojure.set` ,`clojure.walk` ,`clojure.edn` ,`clojure.instant` ,`clojure.inspector` ,`clojure.reflect` ,`clojure.stacktrace` ,`clojure.template` ,`clojure.uuid` ,`clojure.java.basis` ,`clojure.java.io` ,`clojure.java.process` ,`clojure.java.shell` ,`clojure.java.browse` ,`clojure.java.javadoc` ,`clojure.main` ,`clojure.tools.deps.cli.api` ,`clojure.repl.deps` ,`clojure.data` ,`clojure.datafy` ,`clojure.pprint` ,`clojure.repl` (`doc` ,`find-doc` ,`apropos` ,`dir` ,`source` ,`pst` ),`clojure.test` (+`clojure.test.junit` ,`clojure.test.tap` ),`clojure.xml` ,`clojure.zip` ,`clojure.spec.alpha`\n  - Contrib-compatible: `clojure.core.async` ,`clojure.data.priority-map` ,`clojure.data.int-map` ,`clojure.data.avl` ,`flatland.ordered.map` ,`flatland.ordered.set` ,`flatland.useful.map`\n- Core & JDK: \n\nThe strict-JIT test suite runs **11,538 assertions** across `core_test.clj`, `cheatsheet_test.clj`, and `cli_test.clj` (0 failures, 0 errors), and Clojol passes **100%** of the official Clojure 1.12.0 test suite: **82/82 namespaces** (**778 tests**, **20,423 assertions**, 0 failures, 0 errors; run with `-Dclojure.serializable.fns=true` for `serialization` since Clojol enforces CLJ-2993 by default) plus **27/27** official generative `defspec` tests (`run_test_generative.clj`, 0 failures).\n\n```\n# Windows\n.\\make.bat            # Compile, package build\\cljl.jar, generate AOT cache / AppCDS archive\n.\\make.bat rebuild    # Clean and build from scratch\n.\\make.bat test       # Build and run core_test.clj, cheatsheet_test.clj & cli_test.clj\n.\\make.bat bench      # Build and run test\\bench.clj\n.\\cljl.bat test\\fib_bench.clj  # Run recursive fib(40) benchmark\n.\\make.bat clean      # Remove build\\\n\n# Linux / macOS\nchmod +x make.sh cljl.sh\n./make.sh             # Compile, package build/cljl.jar, generate AOT cache / AppCDS archive\n./make.sh rebuild     # Clean and build from scratch\n./make.sh test        # Build and run core_test.clj, cheatsheet_test.clj & cli_test.clj\n./make.sh bench       # Build and run test/bench.clj\n./cljl.sh test/fib_bench.clj   # Run recursive fib(40) benchmark\n./make.sh clean       # Remove build/\n```\n\n", "url": "https://wpnews.pro/news/clojol-a-high-performance-fast-startup-implementation-of-clojure-unofficial", "canonical_source": "https://github.com/kimtg/Clojol", "published_at": "2026-12-02 06:17:00+00:00", "updated_at": "2026-12-02 06:45:34.832555+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Clojol", "Clojure", "Rich Hickey", "Nubank", "OpenJDK", "Temurin", "gcc", "clang"], "also_reported_by": [], "takeaway": "Clojol's Tier-1 bytecode JIT infers unboxed long parameters without type hints and turns associative +/* self-recursion into O(1)-stack accumulator loops; with auto-memoization and frontier CSE both disabled it still ran fib(40) in 49.2 ms, 13.6x faster than Clojure 1.12.6's 668.4 ms.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/clojol-a-high-performance-fast-startup-implementation-of-clojure-unofficial", "markdown": "https://wpnews.pro/news/clojol-a-high-performance-fast-startup-implementation-of-clojure-unofficial.md", "text": "https://wpnews.pro/news/clojol-a-high-performance-fast-startup-implementation-of-clojure-unofficial.txt", "jsonld": "https://wpnews.pro/news/clojol-a-high-performance-fast-startup-implementation-of-clojure-unofficial.jsonld"}}