Skip to content
Hacker News front page

Bend: a language that blocks AI mistakes with proofs and compiles to parallel CPU/GPU code

Bend

Bend is a new language that compiles to native code with near-C speed, uses proof checking to block AI-generated bugs, and automatically parallelizes work across CPU cores and GPUs. You declare laws in LAWS.bend, and the AI must supply a proof that its code obeys them before merging. The demo shows a game where winning is mathematically impossible—an AI feature that breaks this rule gets blocked. Bend is still early; the team says it works best on backends, Linux, and macOS, and warns of bugs.

Why it matters: Bend hands the rules in LAWS.bend to a type checker, so AI edits can be verified in at most a second, and the same code compiles to run on multiple cores or a GPU.

Read the original ↗Export Markdown