Glossary · Term

reference implementation

← all terms

Definition

Plain language

The version of a program everyone agrees is correct, used as the standard to compare against.

As stated in the literature

A canonical known-good solution used as the oracle for computing expected outputs and for gating or repairing authored test suites.

Also called: reference solution, reference implementations, reference solutions, reference run

Why it matters: A known-good version turns test authoring from a guessing exercise into a mechanical one, and can also be used to throw out or fix tests that the correct code fails.

For example, if you already have a working sorting function, you run each test input through it and record what it returns as the expected answer.

Heard on the show

“Which the reference solution doesn't do.”
Episode 233 — Why a Model Can Grade an Answer But Not Write the Answer Key

Mentioned in 8 episodes

  1. 233
    Why a Model Can Grade an Answer But Not Write the Answer Key
  2. 177
    Why Raw Profiler Data Made an AI Worse at Writing GPU Code
  3. 126
    How Coding Agents Can Mine Their Own Failures Into a Self-Targeting Curriculum
  4. 125
    AI Coding Agents Run a Marathon, and Fewer Than One in Three Finish
  5. 124
    A Cheap Model With the Blueprints Beats Expensive Models Working Blind
  6. 099
    How an Open-Book Trick Teaches a Model to Catch Its Own Mistakes
  7. 075
    Growing Code and Proof Together: Verified Systems in Ten Hours Instead of a Year
  8. 027
    When AI Agents Build the Serving Stack: A Bet on Bespoke Infrastructure

Related terms