Skip to content

Releases

v0.2.0 — collections & generics

Choose a tag to compare

@rotnov rotnov released this 04 Aug 09:47
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

v0.1.0 — hello, binary

Choose a tag to compare

@rotnov rotnov released this 04 Aug 09:47
edae636

v0.1 — "hello, binary"

Functions, int/float/str/bool, arithmetic, comparisons, if/while/for+range, f-strings (basic), print, module-level code, recursion. Frontend: strict annotations (T0001), local inference. Backend: LLVM debug builds, vendored parser allowed.

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

  • fib and mandelbrot-ascii compile and match CPython output on all 5 Tier-1 targets (Linux x64/arm64, macOS x64/arm64, Windows x64).
  • pycc check clears its <50ms/1000 LOC throughput floor.
  • Error diagnostics match docs/CLI_SPEC.md's documented example.
  • CI matrix live on all 5 Tier-1 targets.
  • 100% line+region coverage gate green on every crate (D-014).

This is the compiler's first working slice: parse → HIR → strict type-check → MIR → LLVM → native binary, for a small but real subset of typed Python.