Hacker News new | ask | show | jobs
by jwr 2 days ago
AI is very good at Clojure. In fact, from what I can see, I get a much better experience on a large Clojure+ClojureScript code base than many other people. Surprisingly so. I'm still not sure why, is it higher token density of the language? My experience? Large, well-written and well-maintained code base to lean on as context? In any case, the experience so far has been excellent.
1 comments

I have been trying to explain to people that LLMs are worse in languages like Rust. You have a better test harness with the type system, but the syntax is so much more complicated. Handling all of those special cases, where a misplaced asterisk can mean accessing a completely different data structure, is exactly what LLMs are bad at. Because it is just trying to write something plausible.

Clojure meanwhile is very terse without being unreadable. It really does read like a series of data transformations.