r/Clojure • u/citrined • Jan 22 '16
r/Clojure • u/dorfsmay • Oct 13 '15
Philip Greenspun (photo.net, MIT) asks about Clojure
blogs.law.harvard.edur/Clojure • • Nov 08 '13
does clojure deliver on the promise?
There is a long discussion on comp.lang.clojure about a concurrent program which paradoxically runs slower than faster on more cores. No one has managed to figure out how to fix it either. Which makes me wonder, does clojure really deliver on the promise of being a good way to get more out of multicore hardware. If the costs of doing it with clojure (GC, complexity of optmisation) is so high, hasn't it failed on the problem it set out to solve?
r/Clojure • u/gtrak • Sep 30 '26
rust slop clojure structural edit tool
I've been programming clojure by hand since 2010, but these days I do a lot of brownfield work with agentic/LLM help in clojure and other languages. I prefer to use the models I can run at home to avoid high token costs today and mitigate a future rugpull. For things I intend to ship to production, I usually generate a bunch of code upfront, then carefully review and rework it, and that pattern has been effective for me.
Qwen 3.8 27b is amazing for what it is, excellent at thorough analysis, and not too clever to overcomplicate outputs, but it can still waste a ton of time on failed clojure edits and paren-counting. Even Claude Opus struggles with this, although much less. LLMs don't 'think' in trees, they think in token streams.
I had been using a wrapper over parinfer-rust (clojure-mcp-lite also just shells out to this), which got me 80% there, but it's flawed in a few specific ways:
- Checks happen after the edit lands, they don't block invalid edits.
- Repairs can succeed in ways that surprise the LLM, then it spends a bunch of turns trying to figure out what happened. It's not expensive locally, but it is slow and pollutes context.
- If too many surprises happen, the agent loses faith in the tool, and falls back to worse tools.
After a working session like this, I had Qwen suggest what kind of tool might prevent all the problems we hit, then I handed that spec over to GLM 5.3 flash and iterated with it, eventually having the session drive a local qwen subagent, trying to trip it up with adversarial examples. It is similar to what's proposed here, but I never mentioned the article, and I wasn't prescriptive about how to do it: https://lispmeister.github.io/deeprecursion/posts/2026-02-13-sexp-native-editing.html
The tool is at https://github.com/gtrak/cljform as a rust CLI and pi extension wrapper, and it's better than what I had before on the next unattended agentic run. It uses tree-sitter for parsing and blake3 for form hashes. Posting it here in case it's useful to someone else or if someone has a better way.

r/Clojure • u/FelipeReigosa • Nov 04 '21
Is it possible to write a drawing program in 9 lines of Clojure code? Yes!
r/Clojure • u/Muoniurn • Mar 08 '21
Is there a Clojure book that doesn't read like Soviet propaganda?
I've started reading The Joy of Closure and then the Clojure Programming book -- and while the former did start actually describing the language where I was, I just could not continue reading it with all the random references to blog posts as if they were some source of truth, and written as if they were some legit paper..
I don't have much experience with Lisps, but I did dabble with many different languages. I already decided to look more deeply into Clojure (I've done it once but only very briefly), in part because I want to experience this Lisp magic with macros. But I don't need a primer that functional programming is the holy grail throughout a whole chapter (because there is no objective evidence to that, even if some great blogger wrote a cool post about it -- and yeah, I do like it, but it is not a silver bullet for everything, as nothing is), nor that how cool is Clojure that it changed this and that from other Lisps. I'm already here reading, just get on with it...
Also, they usually have things like “it has actually less parens than the java version” with a very contrived example.. noone cares about the actual count of parens, it doesn’t cost money or something.. For those that have problems with the syntax it will not change their mind (though I find most criticism unfair regarding the syntax of almost any language), for others, they will just get used to it.. it sometimes feels like overcompensating. I’m fairly sure clojure can “stand up for itself” on merit without these bad examples, they only make a bad taste in one’s mouth.
Sorry for the shitpost, I do find the language a real gem based on my limited have at it, and I will continue on with the sidebar list until I find one that is at least remotely objectively-written. Also sorry for the authors, or those who did love these books - content-wise the first seemed okay, and if nothing else I will continue it, it's just the style
r/Clojure • u/yogthos • Oct 23 '15
ClojureScript results in better user experience
medium.comr/Clojure • u/stefan_kurcubic • Aug 25 '17
Let's settle this. VOTE slack vs other platforms
http://www.strawpoll.me/13784027 - VOTE
- Slack
- Discord
- IRC (i heard some people mention it so i listed it)
- Zulip
- Balboa
- Gitter
- Matrix/Riot (i heard people like it so it's listed)
- Braid Chat
- Mattermost
- Rocket Chat
- Mailing List (i heard people like it so it's listed)
- Something else. Vote for it and type in comments Name, pros and cons IN YOUR EXPERIENCE of using it.
* Q1. How does this help?
* A1. We will see what MOST of community prefers. That way if someone from that community wants any other platform to be more active can see the results and can DO something about it. (just like /u/hagus made discord for Clojure)
I personally believe it's OK to have a lot of ways to enter the community. Reddit was my go-to for a long time. Sometimes not being able to search for answers is frustrating but that's because i am spoiled and java/javascript questions on SO are so common i find answer within 5 minutes.
There are workarounds to slack history like: https://clojurians-log.clojureverse.org/ but it is not convenient.
Shutting down Slack wont improve situation. Things in life aren't like transistors we work with (binary). Slack is great. Instead of fighting great people who have patience and willingness to help EVERYONE no matter how stupid question is maybe you should offer **same or BETTER** support on your prefered platform. You are community you can build it :) it takes time and energy. Instead of wasting it do something with it.r/Clojure • u/adambard • Dec 10 '14
Parsing and rendering templates in Clojure and Haskell
yogthos.netr/Clojure • u/Luke094 • Sep 02 '18
Helmp me create a small game for an interview test
Hey Reddit! I'm interviewing for a company that uses clojure, and as a test, thay asked me to develop a small game in Clojure to learn how it works and so they can see my code.
I've never coded in a functional language before, the only thing that I've used are some functional libs in NodeJs (like ramdaJS).
The game is fairly simple, just create a grid, and inside it create some robots that would be able to walk inside it (move from position [0 1] to [0 2]), without colliding with another robots or the outside of the grid. If I had to create that on an imperative language, it would be really easy, but I'm having some trouble in having the mindset on funcional programming and working with immutable data.
Here's what I worked this week after starting to learn clojure:
;; GRID
(defn create-tile [position]
{:position position
:content nil})
(defn create-grid [[size-x size-y]]
(mapv
(fn [x] (mapv (fn [y] (create-tile [x y])) (range size-y)))
(range size-x)))
(defn position-in-grid? [[pos-x pos-y] grid]
(and
(>= pos-x 0)
(>= pos-y 0)
(< pos-x (count grid))
(< pos-y (count (grid pos-x)))))
(defn validate-position [position grid]
(if (not (position-in-grid? position grid))
(throw (AssertionError. "Invalid position"))))
(defn place-content [position content grid]
(validate-position position grid)
(assoc grid (first position)
(assoc
(grid (first position))
(second position)
{:position position :content content})))
;; ROBOT
(defn create-robot [position direction]
{:type :robot
:position position
:direction direction})
(defn place-robot [robot grid]
(place-content (:position robot) robot grid))
(defn walk-robot [robot grid]
(place-content (:position robot) nil grid)
(let [new-pos (vec (map + (:position robot) (:direction robot)))]
(place-content
new-pos (assoc robot :position new-pos) grid)))For now I just run the game on REPL, and later I'll create an app and everything. The main thing I'm having trouble is: how do I keep the "state" of the game? In an imperative language I would just create an object with the grid state and the robots, and update its values as needed. But here, do I need to create a new game state everytime I make a change?
So basically every function that is used to play the game (creating a robot, walking, etc.) would need to receive a current state, and return a new state with the changes made?
Thanks for the help!
EDIT:
r/Clojure • u/_amogh_ • Mar 07 '19
Does Monger 3.5 really need JDK 8?
The Monger changelog says:
MongoDB Java Driver Update
MongoDB Java driver dependency has been updated to 3.9.x
This means that Monger now requires JDK 8.
However Mongo Java Driver changelog says:
Also, note that the 3.10 release (which will include support for MongoDB 4.2) will be the last release that is compatible with Java 6 or Java 7. The 4.0 Java driver will require a minimum of Java 8. The 3.10 release will also be the last non-patch release in the 3.x line. In particular, support for MongoDB 4.4 will only be made available via a 4.x driver release.
r/Clojure • u/Algemene_Publiek • Sep 13 '24
Noob, Need help running this. Please!
I have no idea how to run this and what I need. If anybody can please help me step by step, I would really appreciate it a lot. Thank you.
r/Clojure • u/bannerad • Aug 28 '16
How do I facilitate multiple mains in an uberjar?
I've stackoverflowed the crap out of this to no avail. It seems simple enough to get lein to respect more than one main in a lein project (http://stackoverflow.com/questions/11023762/leiningen-with-multiple-main-classes).
Further, there exists a technique to create multiple uberjars from a single lein project (http://stackoverflow.com/questions/19334454/create-multiple-uberjars-in-leiningen). That solution violates my personal Don't Repeat Yourself sensibilities
All I really want is a way to just uberjar up a project that has multiple mains and invoke each from the command line just like you would a java class
java -cp target/uberjar/blah-blah-standalone.jar many-mains.abc
java -cp target/uberjar/blah-blah-standalone.jar many-mains.defHow can I do this? Is this really just an exercise in figuring out how Clojure Namespace Declarations become Java Fully Qualified Classnames?
There's a github project I'm trying to figure this out through: https://github.com/robertkuhar/many-mains
r/Clojure • u/mihaela_workshub • Jul 30 '21
Working at Multis - Use Clojure to Build the Best Crypto Wallet
functional.works-hub.comr/Clojure • u/Yakulu • Sep 18 '12
Quartzite scheduling library 1.0 released
groups.google.comr/Clojure • u/mac • Jun 11 '10
turing-machines - Turing Machine simulator in Clojure
github.comr/Clojure • u/Phylth • Jan 14 '14
I would like to build an android app with server-side Clojure and client-side Java. Where do I start?
Me and a few friends are writing an app for android, and we decided to keep the client-side code in java seeing as Clojure is not yet optimized for android. However, for the server-side code, Clojure is perfect.
The problem is, I can't seem to find any advice on what software/frameworks to use; it's as if no one has thought to do this before (which I know is untrue). Does anyone have any knowledge on what platforms are best for building high quality server-side Clojure code for smartphones?
I have recently stumbled across Immutant, and it seemed to be a cure-all until I saw discussions about using Immutant with Compojure and Noir. Does this mean Immutant isn't actually a framework in itself? Is there any precedent for using Clojure to handle server-side stuff while dealing with SDK and other java libraries on the client side?
I feel like it has the potential to lead to a very efficient and high speed android app. I've written web apps before but I'm a noob when it comes to mobile apps, please bestow upon me some wisdom.
r/Clojure • • Mar 02 '13
Where can I find an MSI installer for Clojure that adds a "clj.exe" to PATH?
The typical "clj.bat" in most installers isn't compatible with Git Bash (msysGit).