The need for a formally verifiable mainstream programming language

337 points · 308 comments on HN · read original →

Points and comments are a snapshot, not live.

Formal verification must become mainstream to counter LLM-driven software quality decline.

Blaine Hansen argues that LLMs are accelerating sloppy software practices, and only widespread formal verification can save the discipline. Existing tools like Lean are powerful but not usable by most engineers. He proposes Magmide, a new language starting with SMT-powered Liquid Types and Flow Effects, compiling to WebAssembly, and later integrating Lean as a proof layer. The goal is to meet engineers where they are, not force a complex proof assistant on them. Hansen stresses that cultural adoption, not just technology, is the real challenge.

What commenters are saying

Commenters split into two camps: those who see formal verification as essential for combating LLM-generated slop, and those who argue that poor code quality is primarily an organizational and aesthetic problem that frameworks can address better than proofs. Several note that formal correctness does not guarantee desired function, citing cases where TLA+ specs failed to prevent bugs. Others defend formal methods as a powerful tool when combined with human validation and property-driven development, pointing to AWS S3's use of TLA+ for permissions verification as a success story.