Tuesday 17 November 2026

finally a language for vibecoders

The PrimeTimeLength 12:35

Original video byThePrimeagen

Our take

ThePrimeagen's case for Bend is that unit tests only show a bug is there, never that it is gone, and that formal laws might be the thing agents make cheap enough to actually use. His numbers: he puts Linux, the most tested software he can name, at about a thousand CVEs in just the last few months, and he is tired of agents that change 50 unit tests along with a feature. He writes the laws, the agent writes the proofs, and in his demos a small set of laws can prove a player can never reach a flag, or that a bad key press does not move the character. Worth weighing: this is a game-sized walkthrough, he still says you need unit tests, and he has not shown the laws holding on a large production codebase. If you already distrust tests that drift with every agent change, would a short list of laws be easier for a teammate to review than another 50 assertions?

Summary

ThePrimeagen introduces Bend, a language that uses Lean proofs and Python-like syntax so you can write laws about a program and have an agent prove them, and argues that formal specification is becoming cheap enough to use as agents produce more code.

Key points

  1. He opens with Dijkstra's line that testing can show the presence of bugs, never their absence, and says Linux has had about a thousand CVEs in just the last few months despite being the most tested software he can name. Anthropic, he says, has a paper claiming that large language models are making formal verification practical.
  2. Bend, as he describes it, is a fast language that blocks mistakes with proofs: C-like speed, CUDA parallelism, Lean proofs, and Python-like syntax, which he calls a miss. A law is a statement that must hold for every input, not one test case.
  3. In a demo game, two short laws prove that no sequence of moves can win or place the player on the flag. He also built a cave game with laws about ignored keys and stable ground, and says you still need unit tests, but laws can remove a whole class of problems.
  4. He does not write the proofs himself: he writes the law and the agent writes the proof. He is tired of features that arrive with 50 changed unit tests, and he half-jokingly predicts a 'rewrite it in Bend' wave within six months.

Notable takes

  • Testing can show that bugs are present, never that they are absent, and even Linux has had about a thousand CVEs in just the last few months.Watch on YouTube from 0:05
  • Bend lets you write laws that must hold for every input, then prove them with Lean, rather than checking one case at a time.Watch on YouTube from 4:24
  • Two short laws on a demo game prove that no sequence of moves can win or put the player on the flag.Watch on YouTube from 6:36
  • He is tired of agents that ship a change along with 50 edited unit tests, and would rather have laws that a teammate can read.Watch on YouTube from 10:05
  • He writes the law and leaves the proof to the agent, and jokes that 'rewrite it in Bend' will be a slogan within six months.Watch on YouTube from 10:57

Take from this video

Newsletter

The day's videos, by email

Our take on each new video from the channels we cover, with a link to the original.

One email a day. Unsubscribe from any email.