Hacker News new | past | comments | ask | show | jobs | submit
Well answering my own question, but I think a strong type system with clear error messages is extremely useful for an LLM.

Just look at how a system like LEAN allows LLMs to incrementally solve a problem. It absolutely wouldn’t get that far if it couldn’t rely on some type of compiler to verify things.

So yeah, a strong type system that allows lots of constraints to be expressed easily.

I think Haskell and Rust are much more “LLM-compatible” than Clojure.

And I say this as someone who has written Clojure full time for over half a decade.

Oh, absolutely. LLMs thrive with problems that are easy to verify. They don't always get it right, but the number of attempts they can do in a short time more than covers for it if verification is fast. Type systems are great for this.