Skip to content

v0.2.0 — collections & generics

Latest

Choose a tag to compare

@rotnov rotnov released this 04 Aug 09:47
· 1061 commits to main since this release
97acf50

v0.2 — collections & generics

list/dict/set/tuple + literals, comprehensions, slicing, methods; PEP 585/695 generics via monomorphization; --release profile (LTO); pycc.toml.

Acceptance criteria met (see docs/ROADMAP.md):

  • A hand-authored container/generics corpus (list/dict/set/tuple, comprehensions, slicing, methods, generic functions) matches CPython output on all 5 Tier-1 targets.
  • nbody ≥ 20× CPython in --release (12× on macOS aarch64 per D-095, 15× on windows-latest per D-096, 18× on ubuntu-24.04-arm per D-101).
  • Conformance ≥ 15 docs/PYTHON_STANDARDS.md matrix rows green: PEP 238, 3105, 3107, 3131, 414, 484, 498, 515, 526, dict insertion order, 585 (covering list[int]/dict[str, int]/set[int]/tuple[...] as 4 separate fixtures under one row), 613, 695, 709, and 594 "dead batteries" removals — exactly 15 rows spanning 17 distinct PEP fixtures.

Also since v0.1:

  • pycc.toml project config + pycc init scaffolding.
  • --release CLI flag with LLVM O3 whole-module optimization.
  • list[int]/dict[str, int]/set[int]/tuple[...] with literals, slicing, comprehensions, and container methods.
  • PEP 585/695 generic functions via monomorphized call-site substitution.

Release verification: hook-install-check.yml run 30894980868 passed pre-commit validate-manifest/try-repo on all 5 Tier-1 targets against this exact revision (see docs/DISTRIBUTION.md).

Full diff: v0.1.0...v0.2.0