olragon

← finds

Bend: a language that makes the AI prove its code keeps your rules

bend-lang.com · picked up

Bend's home page: the tagline a fast language that blocks AI mistakes via proof and a bar chart of run times against TypeScript, Lean and C
screenshot of the original page

Bend is a programming language built for a time when agents write the code. You write the things that must never break into a laws file (LAWS.bend), the agent writes the code, and the compiler makes that code prove it keeps the laws, the way Lean or Rocq do. The surprise is the speed: on the home page's Apple M4 Max benchmark, 3,200 generic instantiations take 19.2 s in Lean, 6.04 s in Rocq and 0.38 s in Bend, so an agent can check after every edit. It compiles to native code, runs nearly as fast as C on one core, and the same binary on sixteen cores or a GPU runs up to a hundred times faster.

My favourite part is the four lines they suggest pasting into AGENTS.md: learn it with bend guide, keep rules in LAWS.bend, run bend PROOF.bend before you commit. Telling an AI what you want with laws and proofs instead of polite instructions is an idea worth sitting with. The numbers are Bend's own; I haven't rerun them.

visit the original →