Unofficial Hacker News companion — get notified on comment replies, and more.

I checked Clojure's core with Lean and found unreported bugs (opens external site)

238 points by encyclopedism 6 days ago | s.conao3.com | 85 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. 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.