News for hackers. Stuff that matters.
Re:A Few Good Ideas in Programming Languages by Jtsummers on Saturday September 12, 2026 @03:45PM (#49676456)
> Poor man's runtime "dynamic" version. AKA: A much worse version.

Contracts don't have to be evaluated dynamically, that's just one way they're implemented. See SPARK/Ada for an example of contracts being used to prove programs statically, not just test them dynamically.

Re:A Few Good Ideas in Programming Languages by rurban on Sunday September 13, 2026 @04:18AM (#49681367)
My rcc C compiler has a compile-time contracts and range/interval prover also. Needs -O3.

For full formal proofs it's easier to use cbmc or esbmc though