hn.today

The need for a formally verifiable mainstream programming language

blainehansen.me292 points289 comments
Screenshot of The need for a formally verifiable mainstream programming language

The argument is that AI coding tools are accelerating longstanding weaknesses in software engineering: poor practices are producing lower-quality software even faster. Formal verification - proving that code satisfies specified properties - should become a normal expectation, but sophisticated proof assistants and automated proof-writing will not solve the problem by themselves. Engineers must be able to use verified code across real-world environments and understand enough about its claims to judge whether the right properties are being proved. That knowledge and adoption cannot be confined to specialists; improving software safety requires a broad cultural shift across the profession.

Magmide is presented as one practical route to that shift. Rather than building a new proof assistant or an exceptionally difficult low-level language, its proposed design would compile to WebAssembly, use a Rust-inspired type system without a borrow checker, and begin with more approachable SMT-based Liquid Types and Flow Effects. Lean could later provide a deeper proof layer, with separation logic helping verify the language’s implementation. The strategy is to start with familiar, useful tools and gradually add stronger guarantees, much as Deno adds a permissions-focused runtime to JavaScript and TypeScript. The author argues that many approaches will be needed to make verification mainstream, and that LLMs may help - but engineers must take responsibility rather than rely on a future superintelligence to fix software’s problems.

Read on blainehansen.me289 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.