NewsCrawler.org

Bend 2: a language that uses proofs to block AI code mistakes

The player walks up and bumps the wall of the flag's room
bendlang/bend
Image: github.com

Bend 2 is a programming language that its GitHub page describes as fast and built to block AI mistakes with proofs. The README says that, thanks to strong types, purity and linearity[1], Bend compiles to executables as fast as hand-written C on a single core, and that the whole language runs on the GPU. Its stated target is to outperform every proof assistant[2] by several OOMs[3]. The page also claims that Bend checks proofs in under a second, where other projects take minutes.

Bend runs code in parallel without threads or locks: work is split across cores and joined back, and one example spreads a task over 4,096 GPU cores. Its main safety feature is LAWS.bend, a file where developers declare rules the app must never break. Whenever code is edited, the compiler requires a mathematical proof that these laws still hold, so an AI change that breaks a law is blocked.

The README's example is a game with the law 'winning is impossible', and it describes an AI-added change being rejected because it breaks that law. Installation is a single curl command, and the page suggests adding Bend instructions to AGENTS.md so that an AI agent uses the language.

Read the original github.com

Sources

  • GitHub Trending

    bendlang/bend

    53 stars today25,798 stars826 forks

First seen: Читать по-русски

Open as a page