The need for a formally verifiable mainstream programming language(blainehansen.me)
343 points by todsacerdoti 3 days ago | 317 comments
tl;dr: LLMs are accelerating software quality decline, and the author argues formal verification must become mainstream—not confined to specialists—since proof assistants alone can't save us if engineers can't read theorem statements and verify intent. The author is revisiting their Magmide project with a more pragmatic design: a WebAssembly-targeting, Rust-inspired language with SMT-powered Liquid Types and Flow Effects, eventually integrating Lean as a proof layer. The goal is a "bottom-up" approach that meets working engineers where they are, rather than top-down tools built by formal methods researchers.
HN Discussion:
  • ~Existing languages like Ada/SPARK already address this need successfully
  • ↑Working on similar Wasm-targeting verifiable languages, validating the author's direction
  • ~Mainstreamness can't be designed; past verification languages failed for reasons worth examining
  • ↓Formal verification is impractical due to state explosion and doesn't guarantee correctness of intent
  • ↓A new language isn't needed; formalized semantics for existing languages suffice