r/Clojure • • 12d ago

Upgrade to 1.12.7 to fix Deserialization of Untrusted Data Allows Remote Code Execution

Thumbnail github.com
46 Upvotes

r/Clojure • • 2h ago

Nippy security announcement (2026-12-02)

11 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.

More preliminary info on Clojurians Slack at https://clojurians.slack.com/archives/C06MAR553/p1796188844426289, CC'ing here for maximum exposure.

Full details to follow after release.

Sincere apologies for the trouble.


r/Clojure • • 7h ago

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

Post image
14 Upvotes

r/Clojure • • 13h ago

Today is Giving Tuesday

21 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 • • 2h 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
2 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 • • 14h ago

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

Thumbnail youtube.com
11 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 • • 15h ago

Looking for feedback on the first Advent of Code puzzle

9 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 • • 21h ago

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

11 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 • • 1d ago

State of Clojure Community 2026

Thumbnail surveymonkey.com
23 Upvotes

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


r/Clojure • • 1d ago

Who is hiring? November 30, 2026

9 Upvotes

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


r/Clojure • • 1d 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 • • 1d 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 • • 3d ago

Native regions: a borrow-checked sublanguage inside Clojure

Thumbnail yogthos.net
27 Upvotes

r/Clojure • • 4d ago

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

Thumbnail fpilluminated.org
24 Upvotes

r/Clojure • • 6d ago

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

Thumbnail adamtornhill.substack.com
52 Upvotes

r/Clojure • • 7d 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 • • 7d 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 • • 7d 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 • • 7d ago

Clojure on the Nintendo Wii

Thumbnail b12n-oss.github.io
29 Upvotes

r/Clojure • • 8d ago

Implementing Clean Architecture in Clojure

Thumbnail en.andros.dev
30 Upvotes

r/Clojure • • 8d ago

Analyzing Clojure Heap Dumps - Santiago Cabrera (Clojure/Conj 2026)

Thumbnail youtube.com
16 Upvotes

When a Clojure process runs out of memory, the JVM could give you a heap dump, but most Clojure developers have never opened one. This talk walks through my diagnostic process for finding memory leaks using Eclipse MAT, including how to map Java class names back to Clojure constructs and how to recognize the patterns that trip us up (memoized functions, go-loops capturing dynamic vars, unbounded registries growing during long-running REPL sessions). You will leave with a repeatable workflow for taking, opening, and analyzing heap dumps from any Clojure process. The talk concludes with an investigation whose fixes reduced memory usage of an internal test suite from up to 50GB to a couple of GB, plus a memory issue with clojure.core.cache that would be unfeasible to find without this heap dump analysis.

Speaker: Santiago Cabrera, Software Engineer at Nubank

Lead Software Engineer at Nubank, where I've worked since June 2022 on the multi-service test infrastructure used across Nubank's Clojure services, a domain where memory profiling and REPL-driven development are daily concerns. I run Nubank's Engineering Excellence Tech Forum and recently spoke about Clojure at the BogotaJVM meetup, hosted at Oracle's offices for Java's 30th anniversary.


r/Clojure • • 8d ago

Swapping Jolt's sorted collections to a B+tree

Thumbnail yogthos.net
13 Upvotes

r/Clojure • • 11d ago

Applied Logic Programming - Daniel Glauser and Jose Gomez (Clojure/Conj 2026)

Thumbnail youtube.com
29 Upvotes

At Gateless we’ve been shipping mortgage underwriting automation with Clara Rules since 2021. This talk is about the lessons we’ve learning using Logic Programming in production, at scale, for over five years. This talk will cover a very brief introduction to rules development, but focus more on a case study in how we leveraged the paradigm and broken past roadblocks with advanced tooling. At one point every production release broke something, and no amount of testing would surface the answers. How would you ensure quality in a high stakes system with thousands of facts and rules? We’ll give a brief introduction to the business problems we’ve been solving and make the case for Logic Programming. We’ll review our architecture as it pertains to the use of rules. Then we’ll dive deeper into our tooling, and how we use it to ensure quality.

Speakers:

Daniel Glauser, VP of Software Engineering at Gateless

Daniel has been working with Clojure for over fifteen years, and software for almost thirty years. Throughout his career he’s worked at large companies like NBC-Universal and Comcast, as well as a host of smaller startups. He’s currently a VP of Engineering at Gateless, a mortgage software company focused on automating underwriting of residential home loans. When he’s not working Daniel enjoys camping, photography, and videography.

Jose Gomez, Senior Principal Software Engineer at Gateless

Jose Gomez has been working in software for approximately fifteen years, and with Clojure for over ten years. Throughout his career he's worked at companies including Bristol Myers Squibb, Express Scripts, and Guaranteed Rate, as well as smaller startups and boutique consulting firms. He's currently a Senior Principal Software Engineer at Gateless, a mortgage software company focused on automating underwriting of residential home loans. Jose focuses on distributed systems and product engineering, and has contributed to open source work including Clara Rules and Futurama. When he's not working Jose enjoys building computers, playing online MMOs, and listening to an ever-growing audiobook collection.


r/Clojure • • 12d ago

What tipped the scales for Clojure - Brendan Foote (Clojure/Conj 2026)

Thumbnail youtube.com
27 Upvotes

For 15 years, Clojure's headwinds (smaller hiring pool, thinner library long tail, the inertia of moving off an incumbent stack) outweighed its ergonomic benefits (REPL-driven iteration, immutable data, image introspection, succinct DSLs) for most teams — the right call while humans typed. Agentic coding changes both sides of the scale at once: the AI absorbs most of the headwinds (the surface tax is paid by something that doesn't tire), while Clojure's ergonomics multiply a developer that iterates orders of magnitude faster than a human can. After starting a production AI product on TypeScript and Python (~90,000 lines) and rewriting it in ~12,000 lines of Clojure and ClojureScript with an AI agent as the primary pair, the rewrite paid for itself in months and has compounded gains daily ever since. You'll leave with a framework for re-running that calculation in your own setup — and a usable answer: don't let the agent dictate your language. The agent can handle yours.

Speaker: Brendan Foote, Co-Founder, JoinIn AI

Brendan Foote co-founded JoinIn.ai, where a two-engineer team rewrote a production real-time AI meeting product from 90,000 lines of TypeScript and Python into 12,000 lines of Clojure and ClojureScript — the case study of this talk. He has been working in Clojure since 2013, when he read The Joy of Clojure and gave a "Why Clojure?" presentation in his Master's in Software Engineering program. He has spoken on Clojure at MSSE Barcamp events, including a talk on a production Clojure tool from a prior financial-services role — 87 lines of code that parsed 750MB of nightly XML and trivially parallelized the work. With 20+ years of engineering experience, he has been making the case for Clojure for over a decade, and is making it again — now as an applied lesson from rebuilding a production AI product with an agent as the primary pair.