{"slug": "bend", "title": "Bend", "summary": "Bend, a new programming language that compiles to native code and uses a Lean-style proof checker to block AI coding mistakes, has launched with an install script at bend-lang.com/install.sh. Bend runs nearly as fast as C on one core and up to a hundred times faster across sixteen cores or on the GPU, and its type checker verifies proofs in at most a second so an AI agent can check after every change. The language uses LAWS.bend to declare invariants and PROOF.bend to verify them, making a merged bug mathematically impossible, and the project's developers describe it as young and still evolving, asking users to report bugs.", "body_md": "\n\n```\ncurl -fsSL https://bend-lang.com/install.sh | sh\nWhen using Bend:\n- run `bend guide` to learn it\n- use `LAWS.bend` to keep important rules\n- run `bend PROOF.bend` before committing\n- parallelize the code whenever possible\n```\n\na **fast** language that **blocks AI mistakes** via **proof**\n\n**C** speed · **CUDA** parallelism · **Lean** proofs\n\nIn 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.\n\nWith **laws**, our intents can be much more precise than natural\nlanguage. With **proofs**, we can verify that the AI implemented\nour prompts correctly. And a **fast compiler** runs it at speed.\n\nThat's Bend - and nothing else.\n\nBend 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.\n\nBend'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.\n\nNo 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:\n\nHow can you **trust** code you never read? By demanding a **proof**.\nLAWS.bend is where you declare laws. From then on, no AI can\nship one line that breaks them, ever. Watch it guard a game:\n\n**New feature:**\n\n“Claude, make the board wrap around”\n\nWithout LAWS.bend, the bug went live. With LAWS.bend, the AI\nhad to retry until it built a wall and proved the law holds.\nMerging a bug is mathematically impossible: it is a *theorem*.\n\nLAWS.bend\n\n```\n# LAW: no move sequence leads to victory.\nlaw you_cant_win:\n  for moves: List<Move>            # any sequence of moves\n  board = replay(start(), moves)   # replayed from the start\n  is_won(board) == False{}         # never leads to victory\n```\n\nPROOF.bend\n\n```\n# PROOF: you_cant_win holds.\ndef Laws.you_cant_win(moves):\n  # ... written by the AI\n```\n\n`LAWS.bend` is `AGENTS.md` backed by **proof**.\n“Make no mistakes” is now *type-checked*.\n\n```\ncurl -fsSL https://bend-lang.com/install.sh | sh\n```\n\nAdd this to your `AGENTS.md`:\n\n```\nWhen using Bend:\n- run `bend guide` to learn it\n- use `LAWS.bend` to keep important rules\n- run `bend PROOF.bend` before committing\n- parallelize the code whenever possible\n```\n\nThen, just say: \"use Bend\"!\n\nHints: ask it to write **laws** for whatever should never break,\nand to **parallelize** everything you want running fast. Bend is\nyoung: if anything goes wrong, ask it to open an issue. Bend\nworks best on the back-end, on Linux and on macOS. Enjoy! <3\n\nGuide: [GUIDE.md](https://github.com/bendlang/bend/blob/main/guide/GUIDE.md) is the whole language; `bend guide` prints it.\nPaper: [BendTT](https://github.com/bendlang/bend/blob/main/paper/BendTT.pdf), an affine dependent type theory, Bend's core.\nPaper: [BendRT](https://github.com/bendlang/bend/blob/main/paper/BendRT.pdf), a parallel runtime for CPUs and GPUs, the VM.\n\nBend is still evolving. Expect bugs, and please [report them](https://github.com/bendlang/bend/issues).", "url": "https://wpnews.pro/news/bend", "canonical_source": "https://bend-lang.com/", "published_at": "2026-09-17 20:36:13+00:00", "updated_at": "2026-09-17 20:54:01.847534+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools", "artificial-intelligence"], "entities": ["Bend", "LAWS.bend", "PROOF.bend", "Claude", "Lean", "Rocq", "bend-lang.com", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/bend", "markdown": "https://wpnews.pro/news/bend.md", "text": "https://wpnews.pro/news/bend.txt", "jsonld": "https://wpnews.pro/news/bend.jsonld"}}