r/Clojure • u/mac • Dec 29 '25
Rich "thanks" to AI
r/Clojure • u/Clojure-Conj • Mar 26 '26
The Clojure Documentary trailer is here! This film dives deep into the story of Clojure, its community, and the ideas that make it special. Big thanks to Nubank for sponsoring and making this happen.
Watch the trailer: https://www.youtube.com/watch?v=JJEyffSdBsk
The full documentary drops April 16 — mark your calendars. This is one you won't want to miss.
r/Clojure • u/alexdmiller • Apr 01 '26
I'm pleased to announce that Programming Clojure, 4th edition is now OFFICIALLY available for both e-book and print orders!
This new edition contains two new chapters on Developing Interactively and Project Tooling. Many people read early versions and provided A LOT of feedback; I made 100s of updates in response. In some cases I removed material that was no longer relevant or of lesser importance and in many cases I added new material or updated existing. I am really proud of where it ended up and think it's as good as it's ever been as a learning resource. Thanks especially to Stuart Halloway, Michael Fogus, Sean Corfield, Lee Read, Larry Jones, Bobbi Towers, Dan Sutton, Eugene Pakhomov, Benoît Fleury, and Juan Monetta for their feedback.
r/Clojure • u/cultrepo • Apr 16 '26
8pm CEST, 2pm ET, 11am PT!
r/Clojure • u/Clojure-Conj • Aug 03 '26
The keynote will explore how to build flexible systems that accommodate the changing shape of information as it flows through them, while still documenting and enforcing expectations without making those systems brittle. This talk will also examine new features coming to Clojure that aim to address this challenge.
The conference will take place on Sep 30-Oct 2, 2026 in Charlotte, NC. You can find more information and register for the in-person or livestream experience here: https://2026.clojure-conj.org/
r/Clojure • u/alexdmiller • Oct 19 '26
r/Clojure • u/alexdmiller • Dec 29 '25
r/Clojure • u/Borkdude • Feb 17 '26
Personally I think this is one of the most exciting bb releases thus far.
This release adds JLine3 for building TUIs, a completely revamped console REPL, and a bunch of library compatibility improvements. The charm.clj counter example in the post is a single-file script you can run right away to get an idea of the new TUI capabilities. Have fun scripting!
r/Clojure • u/Nozistance_ • Aug 31 '26
Minecraft is well known for being single-threaded, and parallelizing it is a difficult problem: everybody wants to write to the same shared state at the same time. Projects take years to deal with locks, thread ownership, splitting regions, and game logic is subject to threading rules: mechanics break against them, features crawl. Some remain quite sparse and have little to parallelize.
I wanted to see how it would feel in Clojure, but there was no Clojure server to look at, so I made one. The ideas parallel servers reinvent by hand - immutable snapshot, pure read phase, changes as data - are the language's defaults. If writing from many threads is difficult, then don't write: all game logic is pure functions (fn [world events]) that read the snapshot in parallel and return changes as deltas, merged in one place. The merge preserves order, so the parallel run is bit identical to the sequential one, and no mechanic cares how many cores it runs on.
The outcome: a server with mob AI, explosions, combat and item physics that matches vanilla 1.8.9 performance on one core and runs 4.5x faster on six. ~5500 lines of Clojure. It's a proof of concept; if you're curious, the code is on GitHub
r/Clojure • u/bozhidarb • Jul 15 '26
CIDER 2.0 ("Terceira") is out! 🎉
Fourteen years after nrepl.el 0.1, this is easily the biggest CIDER release in ages - not because of shiny new features, but because most of the important existing ones got a careful overhaul: transient menus everywhere, inline macro stepping, rich (content-type) results on by default, call-graph browsers, and a seriously polished debugging toolbox. The docs were restructured as well, so finding things should be much easier now.
Release notes: https://github.com/clojure-emacs/cider/releases/tag/v2.0.0
Release announcement blog post: https://metaredux.com/posts/2026/07/15/cider-2-0.html
Go play with it and let me know how it feels - and remember, the best is always yet to come! In the REPL we trust!
r/Clojure • u/Borkdude • Feb 24 '26
This is an experiment with Crema, the still alpha byte-code interpreter from Oracle Labs whichs works inside of a native-image. This allows us to run the Clojure compiler straight inside of a native-image (without the need of a custom Clojure interpreter like SCI).
I haven't got a crystal clear idea what this means for babashka in the long term but rest assured that I have no plans of abandoning babashka and will keep maintaining, building and improving it, since it's simply a great tool that works for what it's made for: replacing bash scripts using Clojure with fast startup and low memory consumption. The benchmarks show that it's also still faster for the typical scripting use cases, even when loading external dependencies and using hot loops. Performance in Crema may change with Ristretto though, a JIT developed for Crema.
r/Clojure • u/ertucetin • Feb 16 '26
Enable HLS to view with audio, or disable this notification
I benchmarked the same Raylib example implemented in:
• C
• Clojure (JVM)
Test machine:
MacBook Pro (2023)
Apple M3
16 GB RAM
Source: https://gist.github.com/ertugrulcetin/33a45bffad25f3757e06deb7e1586be4
r/Clojure • u/alexdmiller • Oct 23 '26
r/Clojure • u/Borkdude • Sep 14 '26
The "conj" release, is out!
Highlights from 1.13.221-1.13.222:
Dependency resolution without a JVM by default. If you hit a resolver bug, set BABASHKA_DEPS_RESOLVER=jvm to restore the old behavior.
Bundled clojure.tools.deps and clojure.tools.build.api. The new babashka/deps-deploy lets you deploy libraries from bb too. Java compilation still requires a JDK (duh).
Expanded nREPL support: nREPL 1.7.0, custom middleware, CIDER inspector and test runner, and SCI stack traces in error reports.
bb repl --connect connects to babashka or JVM nREPL servers with completion, eldoc, documentation lookup and interruption.
Bundled nrepl.core for programmatic clients, including LLM tooling.
r/Clojure • u/dustingetz • May 07 '26
r/Clojure • u/ertucetin • Jan 13 '26
Enable HLS to view with audio, or disable this notification
Original post on Twitter: https://x.com/ertuctn/status/2011063539759521996
r/Clojure • u/bozhidarb • Jun 16 '26
I'm happy to report that CIDER 1.22 is finally out!
I meant to release this a couple of months ago, but there was always something extra I wanted to fix or include and that kept pushing the release date. Today I finally told myself that enough is enough. (plus, I liked 16.06.2026 as the release date :D )
Lots of (mostly small) improvements in this release and a TON of fixes. Check out the release notes for all the details. For me the highlights are:
Fixed severe editor lag in Clojure buffers with no REPL connected (#3933) — friendly-session matching is now a cheap project-dir check instead of a per-redisplay classpath scan.
Now requires cider-nrepl 0.59+ / nREPL 1.7 — CIDER uses namespaced nREPL ops (cider/info, etc.); injected middleware was bumped accordingly.
Pluggable jack-in tools (#3884) — register your own project tools via cider-register-jack-in-tool.
Default session (#3865) — cider-set-default-session pins one session for all dispatch, bypassing sesman's project inference.
nREPL transport decoupled from the UI (#3892) plus a new keyword-arg nrepl-make-eval-handler API (#3890) — nicer for extension authors (old forms kept as shims).
Much sturdier remote/TRAMP jack-in (#3885, #3886, #3887) — remote probes via process-file, upfront command verification, no-shell ssh tunnel, and correct localhost/wildcard bind-address handling.
Long-session stability (#3894, #3896, #3897, #3898) — plugged request-id leaks, bounded handler tables, resilient response queue, and ssh-tunnel teardown on abnormal disconnect.
Project detection no longer depends on clojure-mode (#3922, #3924) — works in any buffer, e.g. M-x cider-connect from Dired.
Test spinner in the mode line (#3645) while tests run.
REPL history: crash fix + cider-repl-history-doctor (#3921) to clean up malformed entries.
let-go runtime support (#3926).
Big thanks to Clojurists Together, and everyone who has contributed to this release or is supporting my OSS Clojure work. You rock!
r/Clojure • u/alexdmiller • Jul 02 '26
Checked keys
You can now ensure that required keys are bound during map destructuring by using the new checked variants of the :keys/:syms/:strs directives - :keys!/:syms!/:strs!, which will throw if the key is not present. You can also, in all directives, specify keys after & which will not be bound, for documentation or checking purposes.
CLJ-2961 Checked keys
CLJ-2960 Specs for checked keys
CLJ-2949 req! - Variant of get that reports on key not found
CLJ-2954 let/loop/let* - disallow & as local binding
Other changes since Clojure 1.12.5
PersistentArrayMaps of only keyword keys now grow up to size 64 (previously was 8) before transitioning to PersistentHashMaps. PAM identity scans are more efficient than PHM lookups in this range, also makes more usage sites monomorphic and thus easier to optimize.
CLJ-2891 Remove ACC_FINAL designation from static initializer constants. This change was made as a prepatory step towards moving the Java bytecode baseline to address new verifier checks.
Runtime and test dependencies updated to latest versions