An unofficial, read-only Hacker News reader. Join the beta →

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

238 points by encyclopedism 3 days ago | s.conao3.com | 84 comments on HN

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.