| ▲ | vegnus a day ago |
| I was sad when I read this. I thought Clojure + LLMs was like a match made in heaven for some reason |
|
| ▲ | chr15m a day ago | parent | next [-] |
| It is a match made in heaven. - Idiomatic Clojure code has less defects whether written by humans or by LLMs. - Less code (more expressive). - LLMs can use the REPL to explore and modify the program in real time, and functional code makes this safe. Don't be sad. You can disagree with the creator of a technology and still use the technology. [What tipped the scales for Closure]
https://www.youtube.com/watch?v=tzzg8CVkl2A https://mccormick.cx/news/entries/advantages-of-generating-c... |
|
| ▲ | cmiles74 a day ago | parent | prev | next [-] |
| It's one man's opinion, albeit the creator of the language. People will disagree and that shouldn't stop you from doing what works best for you. Just the other day, someone told me "AI tools can write better code than you, right?", that gave me a chuckle. Yet that attitude is pervasive, I worry it encourages people to let the tool do all of the work. At that point I find myself agreeing with Rich: is it even a tool anymore? |
| |
| ▲ | BaronSamedi 10 hours ago | parent [-] | | I don't think LLMs are "tools". They are sui generis. In practice they are more like collaborators. If you use an LLM like a tool you aren't going to get the most benefit from them. |
|
|
| ▲ | superdisk a day ago | parent | prev | next [-] |
| Hmm, I think the opposite. Clojure is very much a human-first language. It's all very "elegant" and fun to write, at the expense of the machine, and thus is very slow. That's the tradeoff you make. LLMs can spit out mountains of boring old C++ without issue, so having them write Clojure is kinda the worst of both worlds. |
| |
| ▲ | weavejester a day ago | parent [-] | | Optimized Clojure is on par with Java in terms of performance, which isn't hugely slower than C++. More idiomatic Clojure is less performant, but typically you'll optimize the hot paths. The main advantage Clojure has in LLM use is that it has a good REPL. LLMs are quite fast at writing code; the bottleneck is often the time it takes to compile and test that code, which is higher for most compiled languages than it is for an open REPL. A LLM writing Clojure typically has a faster iteration loop than one writing C++. And while I have no hard evidence of this, I also wonder if Clojure's general design philosophy of reducing complexity (i.e. interconnectivity) is also a benefit for LLMs. My experience is that LLMs tend to be more effective the more isolated and unconnected a piece of code is, which Clojure is specifically designed around. | | |
|
|
| ▲ | bcrosby95 a day ago | parent | prev | next [-] |
| Why? If you agree with anyone about everything, you probably aren't doing much thinking. |
|
| ▲ | Zambyte a day ago | parent | prev | next [-] |
| Interesting, why? Whenever I have used LLMs with Lisps, they always get tripped up balancing parentheses due to the tokenization. |
| |
| ▲ | devin a day ago | parent | next [-] | | The REPL loop is really fast for prototyping. The parens balancing thing hasn't been an issue for like 18 months. | |
| ▲ | casion a day ago | parent | prev | next [-] | | Have written millions of lines of lisp with LLMs (mostly clojure). I have never had this issue in any meaningful quantity comparable to forgetting ; or } (which happens, but is very rare and immediately fixed) | | |
| ▲ | chuckadams a day ago | parent | next [-] | | I've not regularly run into LLMs generating braces wrong, but what they seem to do every damn day is get the boundaries of replacement regions wrong when using sed or python to make text substitutions, which shows up as unbalanced braces. I've always had a hard time getting consistent compliance when I tell them to use structural editing tools only. | |
| ▲ | zdragnar a day ago | parent | prev [-] | | IME small models definitely fail horribly with lisps. Qwen code and I think I tried 3.6 both choked on closing parens to the point they struggled to get anything at all to ever be syntactically correct. | | |
| |
| ▲ | vegnus a day ago | parent | prev | next [-] | | abstraction with macros, minimal syntax (((except these), and giving the LLM direct access to a REPL, to test as stuff is written. I have used Lisps with LLMs a bit. I toyed around with an indented Lisp I developed with LLMs, to get rid of all the parenthesis, maybe make the LLM more capable of writing it since it looked somewhat closer to Python. I still play around with it, its nice to look at. | |
| ▲ | gpderetta a day ago | parent | prev [-] | | Opus 5.5 seems to be pretty good at elisp (at least as far as results go, I can't comment on the quality of the code). |
|
|
| ▲ | PUSH_AX a day ago | parent | prev [-] |
| . |
| |
| ▲ | vegnus a day ago | parent | next [-] | | I actually just started using other Lisps instead. My opinion is not invalidated at all | |
| ▲ | waffletower a day ago | parent | prev [-] | | "It’s sadder that a person you’ve never met that you’ve put on a pedestal could invalidate your opinion."
While not a world record there are multiple straw men in this sentence -- a fire hazard! I think I invalidated some of the de rigeur anti-AI tropes in Rich's post with my reply. |
|