Vary
A readable, statically-typed programming language that measures test strength.
Why Vary
A lie detector for tests. Tests can lie. Mutation testing exposes the ones that do. vary mutate shows which tests are weak, which mutations survived, and exactly what to fix.
Contracts and assertions. Contracts (in / out) declare what a function expects and what it promises. observe assertions check behaviour at runtime. Both are part of the language itself.
One CLI for the entire workflow. Run, check, test, format, and mutate from a single binary. Everything ships with the compiler. No plugins or extra tools required. Get started in minutes.
Fast JVM execution. Vary compiles to JVM bytecode and runs on any JVM. Mutation testing uses bytecode patching, so mutants run without recompiling.
Recent Articles
- What's new in Vary v161-alpha.1 — v161-alpha.1 adds the bundled ai library (ai using, feels, native evals), vary prove for SMT-backed verification of real code, readable blocks, let-else and Never, an agent-aware vary var, and a single-style formatter.
- An AI eval that can fail — Give a support triage model labeled tickets, score its typed recommendations, and make the run fail when it misses the required bar. A fixture checks the eval wiring; a bounded live run measures the model.
- Wrong code that looks right — A discount function passed its tests, then failed vary prove on the first run with a concrete failing input. Vary puts four independent checks between generated code and production: vary check, vary var, mutation testing and vary prove. Each has an edge, and the article says where, and what the tool does about it.
- The JVM keeps up with Rust — A measured Kotlin-versus-Rust comparison found the JVM at 100 to 148 percent of Rust's throughput on one and two cores, while Rust kept its lead on memory, startup and warmup. Vary compiles to JVM bytecode, so it runs on the same platform. This is a result about the JVM, not a Vary benchmark.