Hacker News new | ask | show | jobs
by noiv 23 days ago
Has anybody experience with LLMs and Lisp? I'd assume they love the uniform syntax and may even spend less tokens. But is there enough code to train?
1 comments

Yes. Lisps are great (probably the best) when paired with LLMs. Clojure is well-known to be one of the most token-efficient [mainstream] languages, due to the mere compactness of its syntax. The syntax density can be easily observed by grabbing a piece of JSON and converting it to idiomatic EDN; it would be almost twice as compact and far more readable.

When an LLM is given access to a REPL, it gets even more interesting. Agents stop guessing and start empirically analyzing the current state of affairs, changing things dynamically, reaching the correct solution much faster and costing even fewer tokens.