a fast language that blocks AI mistakes via proof

C speed · CUDA parallelism · Lean proofs · Python syntax

In the post-AGI economy, humans will eventually stop writing and reading code, but we still need an ambiguity-free way to tell the AIs building the world around us what we want done.

With laws , our intents can be much more precise than natural language. With proofs , we can verify that the AI implemented our prompts correctly. And a fast compiler runs it at speed.

Bend compiles to native code. On one core, it runs nearly as fast as C. The same binary also runs on sixteen cores, or on the GPU, running up to a hundred times faster than one core.

Bend's type checker is a proof checker, as in Lean and Rocq. Those can take minutes on a mid-sized codebase. Bend takes a second at most, so an AI agent can check after every change.

No threads, no locks, no kernels to write. Split the work in two, and Bend spreads the calls over every core it can find, then joins them back. Now watch pow2 run on 4,096 GPU cores:

How can you trust code you never read? By demanding a proof . LAWS.bend is where you declare laws. From then on, no AI can ship one line that breaks them, ever. Watch it guard a game:

“Claude, make the board wrap around”

Without LAWS.bend, the bug went live. With LAWS.bend, the AI had to retry until it built a wall and proved the law holds. Merging a bug is mathematically impossible: it is a theorem .

LAWS.bend is AGENTS.md backed by proof . “Make no mistakes” is now type-checked .

Skeptical? Try breaking the game.:#lab

Hints: ask it to write laws for whatever should never break, and to parallelize everything you want running fast. Bend is young: if anything goes wrong, ask it to open an issue. Bend works best on the back-end, on Linux and on macOS. Enjoy! <3

Guide: GUIDE.md:https://github.com/bendlang/bend/blob/main/guide/GUIDE.md is the whole language; bend guide prints it. Paper: BendTT:https://github.com/bendlang/bend/blob/main/paper/BendTT.pdf, an affine dependent type theory, Bend's core. Paper: BendRT:https://github.com/bendlang/bend/blob/main/paper/BendRT.pdf, a parallel runtime for CPUs and GPUs, the VM.

Bend is still evolving. Expect bugs, and please report them:https://github.com/bendlang/bend/issues.