Skip to Content

Release notes

What changed in each version of CP Lang, generated from CHANGELOG.md.

0.3.0 (unreleased)

The 0.3.0 language is specified but not yet implemented. Its normative source is spec/; spec/STATUS.md says how far the work has got.

Language

  • Enum variants are PascalCase: Some, None, Anchor.Start. In a pattern, a capitalised name is a variant and a lowercase name binds (decision 157).
  • Memoized functions use @cache instead of @memo.
  • Decorators go before pub: @get pub fn.
  • -\> lends T always has the arrow.

Library

  • The library is respecified in spec/std/: about 1,700 documented signatures, each with its cost. Bodies are todo until the library is built.
  • Prefix sums and Fenwick trees answer range queries with fold(r), not sum.
  • Substring search is s.search(p) and s.rsearch(p); find and rfind take predicates only.
  • collect() and sorted() return a List keyed from 0.
  • New general mechanisms found by porting 100 real problems: buckets, read_all, pieces, closure and try_from_parents (decisions 158 to 165).

Breaking changes

  • none becomes None and some becomes Some. The 0.2.2 compiler already accepts both spellings.
  • @memo becomes @cache.

0.2.2 (2026-11-20)

The first numbered release of the language and its toolchain.

Tools

  • cpl: check, fix, run (the debug interpreter), build (one C++17 file to submit), fmt, lint, explain and doc.
  • Contest workflow: new, test, watch, bench, stress (against a brute, shrinking the failing case), profile, cover and submit.
  • Judge profiles for generic C++17, Codeforces, AtCoder, CSES, ICPC and more, selected per file or project (cpl judges).
  • cpl lsp for every editor, with support for VS Code, Neovim, Helix, Zed, Emacs and JetBrains IDEs in editors/; cpl dap for time-travel debugging.
  • A WASM build of the compiler that runs in the browser.

On this page