63 points encyclopedism 3 hours ago 21 comments

vegnus 1 hour ago | parent

Looks like Rich needs to get back to his hammock

embedding-shape 1 hour ago | parent

Not sure what you understand "hammock-driven development" to be for, but it is not a tool meant for producing bug-free implementations.

gingersnap 1 hour ago | parent

Somebody woke up on the wrong side of the hammock

Perz1val 30 minutes ago | parent

The underside? Ouch

dmead 1 hour ago | parent

I'm not sure the lisp community could consider these bugs.

Lisp/clojure/scheme etc is inherently untyped. These libs don't guarantee anything near to the level that a formal verification would suggest.

If this were the haskell standard lib however, that would be news.

packetlost 1 hour ago | parent

Some of these issues are actually quite bad and don't have anything to do with types at all

jeremyjh 1 hour ago | parent

The article I read described clear correctness bugs unrelated to types.

mtlmtlmtlmtl 1 hour ago | parent

Lisp is not untyped. It is dynamically typed.

iorekz 1 hour ago | parent

I'm glad I checked your other comments! Beautiful counter bait

articulatepang 57 minutes ago | parent

Types have nothing to do with it. For example, the first bug in the article is about an infinite loop in a core data structure:

“[…] reduce it, the call never returns once the vector has 65505 or more elements.”

> These libs don't guarantee anything near to the level that a formal verification would suggest.

This is just plain wrong. A lisp library can absolutely make performance and correctness guarantees, and formal methods can refute or verify those guarantees. A type system is just a special kind of formal method that can rule out certain classes of bugs.

pron 32 minutes ago | parent

Even the types in Haskell are far too weak to be included in what we mean by "formal verification" (not to say they're not useful for some things, just that this is not the level of specification that formal verification is typically about). If we rank the strength of properties we can express with types in Clojure as 0 and in Haskell as 3 (or, say, 7 with refinement types), then the strength of types required for formal verification (e.g. in a language like Idris) would be 100.

krosaen 55 minutes ago | parent

Having long admired clojure and Rich, I wonder what Rich makes of AI / agentic coding. I can imagine him having something really interesting and surprising to say, or being very anti-AI in an entertaining and persuasive way that ultimately feels destined to be a losing argument.

nextos 53 minutes ago | parent

He has a very elaborate anti-LLM stance: https://www.linkedin.com/pulse/ai-tool-rich-hickey-kjl8e

Sadly, posted on LinkedIn, but in a nutshell, he claims that LLMs are not a tool, they are intrinsic automation.

And by using them, you are kinda giving up.

vegnus 46 minutes ago | parent

I was sad when I read this. I thought Clojure + LLMs was like a match made in heaven for some reason

Zambyte 42 minutes ago | parent

Interesting, why? Whenever I have used LLMs with Lisps, they always get tripped up balancing parentheses due to the tokenization.

vegnus 37 minutes ago | parent

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.

casion 36 minutes ago | parent

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)

devin 35 minutes ago | parent

The REPL loop is really fast for prototyping. The parens balancing thing hasn't been an issue for like 18 months.

cmiles74 14 minutes ago | parent

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?

geospeck 25 minutes ago | parent

There was this post https://news.ycombinator.com/item?id=46415945 almost a year ago regarding his opinion on AI.

gritzko 20 minutes ago | parent

On the practical side, Clojure sits on top of JVM which is humongous and likely unverifiable. On the theory side, very exciting!