An unofficial, read-only Hacker News reader.

The need for a formally verifiable mainstream programming language (opens external site)

343 points by todsacerdoti 3 days ago | blainehansen.me | 321 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. I feel many, if not most, of these arguments basically reduce to some variant of “use Haskell/OCaml with spec-style tests”.

    Exhaustiveness guarantees, compiler verification and feedback, powerful language features to create high-level domain syntax and languages, pure functions commonly used, and specifications/tests that can be read aloud in English and understood by domain experts… they’re even token efficient.

    Replies (1)
    1. Having just designed and built a new modeling DSL for interactive fiction I can tell you that the ‘exhaustive’ part is infinite recursion.

      There will always be another use case.

      Maybe something like Lean can be achieved, but constructing software in relation to a business model is vastly more complex than math.

      We wouldn’t have Lean. We’d have Lean for every domain with variations for every business.