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

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

305 points by todsacerdoti 18 hours ago | blainehansen.me | 297 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. The author’s proposal reminds me of the JavaScript framework craze. Industrial-scale formal verification does not require a new language unless your program involves exotic types and/or logic not supported by any of the mainstream languages. There is still lots of work to be done, of course, but projects like Rust’s Verus and Aeneas already provide a clean and modular interface to plug in a formal methods layer, like Lean, without needing to reinvent the wheel.

    Seamless formal verification requires a native formal specification to verify against. In my view, focusing work on formally modelling existing languages (like Rust), or if intractable at least a fragment with Cartesian closed semantics, is far more encouraging to mainstream adoption of formal methods than trying to convince the industry to adopt a new language.

    Replies (1)
    1. I also think formalizing existing languages and framework will become more and more valuable. It took over a decade to somewhat come to a consensus on how C's pointer provenance model should like, and even then using it to prove compiler transformations is still being worked on.