r/Clojure • • 1d ago

Clojure 1.12.8

Thumbnail clojure.org
50 Upvotes

r/Clojure • • 6h ago

p'lisp - a calculator that runs clojure

16 Upvotes

Hi r/clojure! I've been working on this for a long time, and I'm a little giddy to finally show it.

p'lisp is a small Clojure dialect I'm building for a handheld calculator you fully control. You write Clojure, it runs on the device, and you can change anything about it. The same core also runs in the browser and inside game engines.

You can try it right now, no install needed:

To be upfront about what it isn't: p'lisp is not 100% Clojure compatible, and it's not a replacement for babashka, ClojureScript or the JVM. It's a compact subset aimed at small devices and embedding, and I'd love to hear where it surprises you.

Where I'd love help:

  1. Try the Workbench and the Godot plugin, and tell me what breaks or feels un-Clojure-y.
  2. If the hardware excites you, I'm looking for sponsors to fund the first engineering (EVT) run that proves the calculator works: https://playplisp.com/sponsors

The code is open (MIT or Apache-2.0). Happy to answer anything in the comments. Thanks for reading!


r/Clojure • • 7h ago

A GIS DSL Across the JVM and the Browser - Will Cohen (Clojure/Conj 2026)

Thumbnail youtube.com
5 Upvotes

A major U.S. city's zoning update needed maps and analyses beyond what worked well for conventional geospatial tools. The domain-specific language in this talk grew from that need: citywide regulatory analyses over many spatial operations spread across thousands of geospatial parcels, running on the JVM and in the browser from one codebase. Underneath sit small Clojure libraries that each port a familiar JVM idiom to the JS ecosystem: native interop described as data, deterministic resource disposal, and core.async.flow-style parallelism. The talk works the stack through the reimplementations, showing which Clojure feature does the work at each layer and where the abstractions have salient differences.

Speaker: Will Cohen, City of Boston Planning Department, Zoning Reform Planner

Will Cohen is an urban planner on the Zoning Reform team at the City of Boston's Planning Department, where he works on the city's zoning code, including legalizing accessory dwelling units. He has used Clojure since 2016.


r/Clojure • • 1h ago

[2026] [Clojure] A starter template for Advent of Code: REPL, tests, and the libraries puzzles usually need

Thumbnail lambduhh.github.io
1 Upvotes

r/Clojure • • 1d ago

Teaching Automata Theory with Clojure - Ariel Ortiz (Clojure/Conj 2026)

Thumbnail youtube.com
16 Upvotes

Teaching the theory of computation often suffers from a disconnect between mathematical models and practical software engineering. This experience report details a classroom-tested approach refined over five years, showing how Clojure bridges that divide by enabling undergraduate CS students to build live, functional simulators for abstract machines, from basic regular expressions to finite automata and Turing machines. By shifting from dry, textbook theory to an experimental, data-driven methodology, this framework has dramatically enhanced engagement and deepened students’ architectural understanding of language semantics. Attendees will learn how Clojure’s core functional strengths turn intimidating theoretical concepts into tangible, executable code, leaving with a proven pedagogical blueprint that inspires and empowers the next generation of computer scientists and software developers.

Speaker: Ariel Ortiz, Computer Science Educator at Tecnológico de Monterrey

Ariel Ortiz is a programming language enthusiast. Since 1994, he has been a full-time faculty member at Tecnológico de Monterrey in Mexico, where he has primarily been involved in teaching undergraduate computer science courses. His areas of interest include programming languages, compiler construction, and web development. He is an active member of the ACM’s special interest group on computer science education, SIGCSE. In 2010, he began teaching Clojure in his classes, but his experience teaching with Lisp-like languages started with Scheme over thirty years ago.


r/Clojure • • 1d ago

Nippy security announcement (2026-12-02)

23 Upvotes

Hi folks-

Heads-up that I'll be releasing Nippy v3.10.0 at 15:00 UTC today (2 Dec) with fixes for a couple security vulnerabilities affecting folks that thaw untrusted bytes.

Preliminary info on Clojurians Slack, CC'ing here for extra exposure. Full details to follow after release.

Sincere apologies for the trouble! - Peter Taoussanis

Update: now available on Clojars-


r/Clojure • • 1d ago

Clojure Pulse - a Cursive-inspired VS Code extension for Clojure

Post image
16 Upvotes

r/Clojure • • 1d ago

We implemented the new MCP 2026-07-28 spec in Clojure — modern-first negotiation, Skills (SEP-2640), and multi round-trip requests

Thumbnail github.com
6 Upvotes

Hey all — I maintain clj-agent, a Clojure agent library. The clj-agent-mcp module is a standalone MCP client + server (it doesn't depend on any of the agent-side modules), and we just finished a full pass over the MCP 2026-07-28 spec (https://modelcontextprotocol.io/specification/2026-07-28) plus a second round of additions. Everything below ships in the current release.

What changed in the 2026-07-28 spec (and why it's a rewrite, not an upgrade)

The modern spec drops the initialize handshake entirely: server/discover is the new opener, every request carries protocol version / capabilities / identity in params._meta, HTTP is stateless (no Mcp-Session-Id, three mandatory headers instead), and there are new error codes (-32020/-32021/-32022). Roots, sampling and logging are deprecated. Legacy semantics are still fully supported — the same server answers both eras, routed by the shape of the request itself.

What's implemented

Protocol core

  • Modern-first negotiation: send server/discover first, fall back to initialize only on the right error codes (per spec PR #2844 — you can't just retry on any error, that masks real failures like -32021)
  • Per-request envelope validation: _meta protocol version, mandatory headers, extensions
  • Server identity (io.modelcontextprotocol/serverInfo)

Multi Round-Trip Requests (MRTR)

  • Handlers can return input_required; the client retries with inputResponses on a fresh JSON-RPC id Optional :auto-fulfill mode — your app handler decides the answers, the client runs the protocol state machine
  • URL-mode elicitation requests and HMAC-signed requestState codec
  • The capability gate: if a client didn't declare the capability an input_required needs, the server answers -32021 with data.requiredCapabilities instead of leaking the pause

Skills extension (io.modelcontextprotocol/skills, SEP-2640)

  • Server: declare :skills, get the extension + skills/list / skills/get, files served via standard resources/read
  • Client: list-skills / load-skill / read-skill-file with all the host-side verification the spec requires — digest, size, frontmatter field-by-field, unlisted files, size caps. Verification failures are content problems, not protocol errors (re-fetch the manifest and retry) Everything else from the two rounds
  • subscriptions/listen (POST + SSE, explicit close! — the 2026 spec deleted resume, so no silent auto-reconnect)
  • Cacheable results: server-side :cache-hints, client caches only the six spec-allowed read-only methods, :cache-mode :use/:refresh/:bypass, precise invalidation entry points
  • Parameter header mirroring (x-mcp-header → Mcp-Param-*, strict RFC-2231-style encoding for non-ASCII)
  • Extension methods (:methods + request-method!), completion/complete, display-only fields (title / annotations / icons / size / _meta), W3C Trace Context, client result-cache with a bounded default (512)

Honest notes

  • HTTP subscription has no auto-reconnect — deliberate; the 2026 spec removed resume and we don't want a silent reconnect hiding the gap
  • Frontmatter is a built-in YAML subset parser; anything outside the subset fails closed ("can't parse → don't load"), with {:parse-yaml f} to plug a real parser
  • Header mirroring covers scalar params only; objects/arrays can't be mirrored

r/Clojure • • 2d ago

Today is Giving Tuesday

33 Upvotes

Today we’re reminded that the Clojure ecosystem would not exist without all the work and generosity of those who have contributed.

Open source is made by real people spending their real time making useful things they share for free.

Would you consider sponsoring your favorite project or Clojurists Together?

If your business uses Clojure, would you consider becoming a corporate sponsor?

To sponsor Clojurists Together, visit clojuriststogether.org and look for the signup buttons.

To sponsor your favorite projects or developers, visit their GitHub profile page and tap the “Sponsor” button.


r/Clojure • • 2d ago

Materializing Production Traces into AI-Assisted REPL Flows - Juliana Prieto (Clojure/Conj 2026)

Thumbnail youtube.com
17 Upvotes

REPL-driven development is often treated as a local expression-evaluation mechanism. But when production incidents span complex business flows, we. abandon our flow state for slow, diagnostics. What if your architecture could automatically materialize individual production incident profiles directly into your local REPL? This talk explores an advanced debugging workflow that scales conversational programming across multi-service business states. We explore the architecture of an automated pipeline that queries a live, failing entity's history, attributes, and generates a local scratch namespace file populated with real parameters, commands, and events. Using state-flow monadic testing and local variable-capture macros, developers can interactively step through historical transitions and hot-patch code. Finally, we show how this single-entity precision unlocks a massive future: using AI assistants to safely execute and scale these REPL flows across dozens of edge cases simultaneously.

Speaker: Juliana Prieto, Software Engineer at Nubank

Juliana Prieto is a software engineer at Nu, working with Clojure on backend financial systems. She enjoys learning deeply, teaching others, and communicating technical ideas clearly. While she has a strong interest in frontend, product, and user experience, her current work is focused on backend systems, debugging workflows, and real-world business flows. She is especially curious about software architecture, feedback loops, and the way engineering practices shape how teams understand, change, and trust complex systems.


r/Clojure • • 2d ago

Looking for feedback on the first Advent of Code puzzle

11 Upvotes

Hi, this year I'm doing advent of code in Clojure, because the language looked interesting. I'm completely new to it, but I have done some Haskell before.

Here's my repo https://github.com/LelouBil/advent-of-code-2026

I am not sure if the code can be reduced/simplified further, or if the scaffolding in main (to run different days easily) could be improved.


r/Clojure • • 2d ago

Why does every? returns true on empty collection? Isn’t that bizarre

12 Upvotes

The every? function in Clojure returns empty true on empty collection. We had a serious prod bug because of this. Also I think this behaviour doesn’t adhere to the docstring - “Returns true if (pred x) is logical true for every x in coll, else false.”


r/Clojure • • 3d ago

State of Clojure Community 2026

Thumbnail surveymonkey.com
25 Upvotes

Last chance! Please fill this out this week so we get a good sampling ... thanks!


r/Clojure • • 3d ago

Who is hiring? November 30, 2026

9 Upvotes

Please include any restrictions (remote/on-site, geographical, workpermit, citizenship) that may apply.


r/Clojure • • 3d ago

Production ClojureDart for iOS, Android, and macOS - Burin Choomnuan (Clojure/Conj 2026)

Thumbnail youtube.com
19 Upvotes

Over the past twelve months a tiny team has used ClojureDart (Clojure compiled to Dart, running on Flutter) to build more than a dozen production apps for iOS, Android, and macOS, most deployed internally and several bound for the app stores. The apps include a document scanner with on-device OpenCV, a transit tracker with realtime GTFS, a venture-capital deck triager with on-device LLM evaluation, a notes app with on-device sentence embeddings, a marketplace, an encyclopedia, a financial charting app, and several more. This experience report distills the patterns that survived the trip from prototype to production: a single-atom-plus-`:watch` architecture that replaces Riverpod and BLoC, a curated catalog of cljd-flutter pitfalls (each one a lost afternoon you don't have to spend), and a reusable scaffold for new apps. Attendees will leave with a grounded view of where ClojureDart is strong, where it still has sharp edges, and a checklist of decisions to make on day one.

Speaker: Burin Choomnuan,Senior Principal Engineer at Newscorp Australia

With over two decades of experience in software development, Burin Choomnuan has evolved alongside the technology landscape, moving from Java to Ruby to Clojure, then on to ClojureScript, and most recently to ClojureDart for mobile and desktop work. Over the past year he has shipped a fleet of production ClojureDart apps for iOS, Android, and macOS, alongside Clojure backends and ClojureScript single-page apps that share a single mental model end-to-end. His current interests are the convergence of functional programming with AI-assisted development, building maintainable agentic workflows in Clojure, and sharing the patterns and pitfalls a tiny team learns by shipping at pace. When he isn't coding, he's writing experience reports for fellow developers who appreciate the art of elegant, productive engineering.


r/Clojure • • 3d ago

just to check my understanding of the way clojure models data

9 Upvotes

let's say i'm modelling a game.

this game always has 20 turns, but it's of such depth that there are a 1000 different plays one can make in a turn. despite this, there are only 50 possible game states, but they're each rather detailed and complex data structures.

my question is as follows:

is there anything wrong with representing it as a map, 20 layers deep, each with a 1000 keys mapping to each of the states, which end up duplicated all across the game tree?

instinctually, yes, obviously. there's so much duplication, i can't imagine the poor soul that ever has to read a serialised version of that.

but that got me thinking; yes, that's a very poor data structuring for e.g. serialising or wiring or something; but also, isn't that a pretty ideal way of modelling it in-memory insofar as Clojure's memory deduping leveraged in eg clojure.core/=?

i guess this is conceptually getting closer to using maps as collections of pointers on (immutable) data, or maps as directed acyclic graphs, but my math/compsci doesn't reach that far.

am i understanding things correctly? how so if not? are there more illustrative/high-leverage examples of this principle? are there drawbacks to this i'm not seeing (other than being a pain to log)?

EDIT: to clarify, i'm moreso wondering about the way the 50 identical game states get duplicated/shared than the merits of managing such a large map in memory


r/Clojure • • 5d ago

Native regions: a borrow-checked sublanguage inside Clojure

Thumbnail yogthos.net
28 Upvotes

r/Clojure • • 6d ago

The Bowling Game - From Imperative to Functional Programming - Part 4

Thumbnail fpilluminated.org
25 Upvotes

r/Clojure • • 8d ago

What Makes a Programming Language AI-First? My Case for Clojure

Thumbnail adamtornhill.substack.com
52 Upvotes

r/Clojure • • 9d ago

Checked Clojure's core with Lean and differential testing and found unreported bugs in HAMT and vector-of

Thumbnail s.conao3.com
79 Upvotes

r/Clojure • • 9d ago

Reimagining the Spreadsheet with ClojureScript and SCI - Markus Holmström (Clojure/Conj 2026)

Thumbnail youtube.com
28 Upvotes

What if you could have a spreadsheet that combines: - the layout, styling and interactivity of a web page, - the reactivity of a spreadsheet, - and the expressiveness of Clojure? How Clojure enables the next generation of spreadsheets.

Speaker: Markus Holmström

Having worked many years at an investment bank in Zurich, I have seen firsthand the power spreadsheets give users and also their limits. My current focus is to improve the powers and to remove the limits of the spreadsheet.


r/Clojure • • 9d ago

Capstan - IntelliJ IDEs Plugin

Thumbnail plugins.jetbrains.com
5 Upvotes

Clojure developers who prefer JetBrains IDEs have long had two main options. One is the commercial Cursive plugin. The other is clojure-lsp-intellij together with LSP4IJ. Capstan is a third option, now on the JetBrains Marketplace. It's a free plugin that adds Clojure and ClojureScript support to IntelliJ IDEA. It is modeled on Calva, the popular VS Code extension, and it is written in Clojure.

Structural Editing: Calva's Paredit

Structural editing matters a lot in any Lisp. Capstan ports Calva's paredit commands, and its description says all 435 of Calva's paredit test cases pass. Along with the usual slurp, barf, splice and raise commands, it includes:

  • a strict mode that keeps brackets balanced;
  • formatting with cljfmt;
  • code folding by form;
  • highlighting for forms commented out with #_;
  • an Extend Selection that grows one form at a time.

If you are coming from Calva, editing should feel the same.

Its Own clojure-lsp Client

The biggest change in version 1.6.0 is that Capstan no longer depends on LSP4IJ. It now has its own clojure-lsp client. Capstan downloads the latest clojure-lsp for you, or you can point it at a binary you already have. The language features include:

  • diagnostics, completion and navigation;
  • find usages and rename;
  • documentation, code actions and parameter info;
  • usage highlighting, a structure view and Go to Symbol;
  • call hierarchy, reference counts and semantic highlighting.

clojure-lsp's refactorings also appear in the IDE's Refactor menu.

There are also features for reliability. A status bar widget shows the server state, and a separate tool window shows the logs. If the server crashes, Capstan restarts it. If a newer clojure-lsp fails to start, Capstan goes back to the previous version that worked.

nREPL: Interactive Development

Capstan can jack in with one action for deps.edn, Leiningen, shadow-cljs, babashka and nbb projects. Evaluation results appear inline next to your code. The REPL window has completion and pretty-printing, stack traces are clickable, and ClojureScript sessions work too. Since version 0.1.4, REPL output is also written to .capstan/repl-output.log in the project. Color codes are removed, and the log rotates once it passes 10 MB. The folder tells git to ignore it, so it stays out of your commits.

Testing and Debugging

clojure.test results show up in the IDE's own test tree. For failed tests you can compare expected and actual values, and you can rerun only the failures. The debugger connects cider-nrepl's debugging to IntelliJ's debugger UI. You can set line breakpoints, step through code, inspect local variables and evaluate expressions at a breakpoint, much like debugging Java.

Keybindings Under Prefixes

Capstan puts its shortcuts under two prefix keys, so they don't take over IntelliJ's own:

Alt+N for the REPL, tests and the debugger;

Alt+K for paredit.

If you want Calva's one-key shortcuts instead, you can switch to the optional "Capstan (Calva)" keymap. To see every shortcut, open Settings → Keymap and search for "Capstan".


r/Clojure • • 9d ago

Clojure on the Nintendo Wii

Thumbnail b12n-oss.github.io
29 Upvotes

r/Clojure • • 10d ago

Implementing Clean Architecture in Clojure

Thumbnail en.andros.dev
30 Upvotes