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

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

344 points by todsacerdoti 4 days ago | blainehansen.me | 325 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (4)

  1. Time to vibe code an open source Ada compiler!
    Replies (1)
    1. Do SPARK Ada subset first. Then, someone can independently write Why3 prover. Then, it will be independent.
      Replies (1)
      1. > Do SPARK Ada subset first. Then, someone can independently write Why3 prover.

        I don't know about Ada, it's a bit heavy on proprietary baggage, but I do vote for Why3 - twice. Creusot is a formal verification tool for Rust that uses Why3.

        https://github.com/creusot-rs/creusot

        Replies (1)
        1. When I looked at it, WhyML looked like an actual, programming language. Gemini just told me it is. That it also extracts to Ocaml, C, and Java. I'd have to check that for hallucinations.

          If programmatic enough, porting WhyML to CakeML might be a worthwhile project.

          Also, embedding the intermediate forms in compilers like QBE and Rust. Then, just directly execute them. From there, work like ALIVE in LLVM can go further.