Bend
3 hours ago
- Bend is a fast programming language that combines C-like performance with CUDA-level parallelism and Lean-style proof checking to prevent AI mistakes.
- It uses LAWS.bend files to declare invariant laws, and PROOF.bend files to formally prove these laws hold, making bugs mathematically impossible when used correctly.
- Bend compiles to native code, running nearly as fast as C on a single core and scaling to 16 cores or GPU (up to 100x faster) without explicit thread or lock management.
- Its type checker doubles as a proof checker, but is much faster (under a second) than Lean or Rocq, enabling AI agents to verify code after every change.
- The language is designed for the post-AGI economy, allowing humans to specify precise, ambiguity-free requirements to AI via laws and proofs, rather than reading/writing code manually.
- With LAWS.bend, an AI must retry until it builds a proof that the law holds; merging a bug is impossible—it becomes a theorem.
- Practical usage includes running 'bend guide' to learn, using LAWS.bend for critical rules, and running 'bend PROOF.bend' before committing.
- Bend is young, works best on Linux/macOS back-end, and users are encouraged to report bugs and ask AI to open issues if something goes wrong.