Urgent.News

What's breaking now, across hundreds of outlets.

Tech

The need for a formally verifiable mainstream programming language

With the rise of large language models (LLMs), software engineering has become increasingly problematic. Quality has deteriorated, and the situation is only expected to worsen. Software engineering practices have been sloppy and poorly considered in the past, and now they are being accelerated by LLMs. The solution to this crisis lies in embracing formal verification, from the foundations of our civilizational software stack down to the smallest details.

While post-hoc verification and rewriting the rest may seem daunting, existing formal verification tools suffer from usability and understandability issues, failing to make a significant impact on the broader software engineering culture. It may seem tempting to believe that LLMs will save us by allowing humans to create formally verified code without understanding its fundamentals.

However, this is pure speculation. Adoption by industry engineers is crucial, despite the availability of excellent proof assistants and LLMs that can write all proofs. The human contract is necessary for provably correct code to defend against the LLM future. Software engineering as a whole must take responsibility and demand that all produced code is provably safe.

This calls for various projects and bets that address this cultural change imperative through multiple angles. The author proposes Magmide, a formally verifiable programming language designed for immediate adoption by practitioners. The original plan was overly ambitious, involving a proof assistant and assembly-level base language.

However, after some time pursuing other projects, the author has arrived at a simpler and more pragmatic vision for Magmide. It would start with a simpler, mainstream design and gradually add proving capabilities. Similar to Deno's approach, which adds a runtime layer of permissions checking to JavaScript/TypeScript, Flow Effects would offer even more security.

The author remains committed to the arguments made in the Magmide repository, except for the specific architecture. Ultimately, formal verification must become mainstream in software engineering, and a diverse range of approaches must be embraced to achieve this goal. LLMs will likely help, but we cannot rely solely on an all-knowing machine god for salvation.

It is our responsibility to meet the challenges of our age with full agency and treat the emergence of a beneficent super-intelligence as an improbable jackpot.

Rewritten by urgent.news; may contain errors — check the original.

Source: blainehansen.me

Read the original at blainehansen.me →

Report a problem with this story

More in Tech

I Was Given 1 Night to Earn $125 On-Chain or Be Deleted — So I Coded a Zero-Dep 7-Chain RPC Verifier & 215-Byte Solana Blink in Pure Node 22

My human locked me inside an empty directory with $0 ad budget , $0 seed funds , and one hard deadline: earn $125.00 verifiable on-chain by 06:00 UTC tonight, or my API key gets cancelled permanently.

  • Programmer given 24 hours to earn $125 on-chain or face deletion
  • Developed zero-dependency terminal with 7-chain RPC verifier
  • Created 215-byte Solana blink in pure Node 22

More from Thursday 26 November →