Software engineering faces a crisis as LLMs accelerate sloppy practices, degrading code quality. While formal verification offers a solution for provably correct code, existing tools suffer from poor usability and have failed to impact mainstream culture. The author argues that relying on LLMs to generate verified code without human understanding is insufficient.
Instead, the entire discipline must adopt formal methods to ensure safety. The article introduces Magmide, a project designed to create a new formally verifiable language for immediate practitioner adoption. Initially, the vision was overly ambitious, aiming to build a new proof assistant and assembly-level language.
After realizing these hurdles, including the difficulty of building a new proof assistant when Lean already exists and the complexity of assembly-level verification, the author shifted to a pragmatic approach. Magmide would compile to Web Assembly using Garbage Collection features, integrate with existing proof assistants like Lean, and prioritize usability for industry engineers. The goal is to lower the barrier to entry so engineers can reason about formal correctness and instruct LLMs to write provably safe code, moving the discipline toward a future where all produced code is provably safe.
Source: Hacker News · Summarized by HeadlinesBriefing