# a2600-rust-fast: handoff brief **This repository replaces an archived one.** An earlier `a2600-rust-fast` forked a transcription of an `a2600-python` whose milestones 5 and 6 had been written from reading GPL emulator source; it was archived on 2026-11-14 with its parents. This repository was started on 2026-11-14 by cloning the restarted, clean [a2600-rust](https://github.com/alewman/a2600-rust) at `07dfaf0` with its history (`git clone`, remote renamed `upstream`), and it was **written without reading the archived repository in any form**: not its code, tests, documents or commit messages, not the archives under `/data/backup/`, not the GitHub repositories `alewman/a2600-rust-fast`, `alewman/a2600-rust` (archived) or anything named `zzz-*`, not cargo's checkouts of them under `~/.cargo/git/`, and not play-2600 (which carries code built from them). Its sources are a2600-rust, the family's documents, and the family's other fast forks as models (gameboy-rust-fast for the A/B harness and the profiler, famicom-rust-fast). a2600-rust's own brief (the transcription's provenance, unchanged) is kept in its history at `07dfaf0:docs/handoff-brief.md`. ## Tier, parent and proof - Tier `x-rust-fast` (family charter): production speed without giving up the per-cycle proof. Allowed: idiomatic Rust, exact tables, caches, specialised layouts, build settings, deterministic threads. Not allowed: anything that changes a bus cycle. - Parent: a2600-rust, forked at `07dfaf0` (a2600-python `9475aa1` on 6502-rust `129e742`), merged from at `f9af024` (a2600-python `28fb095`; 6502-python `741419a` on the reference side) and at `4802263` (a2600-python `c410e47`, the same code; 6502-python `828b619`). Fixes come down by merging `upstream`; a behaviour bug found here is reported to a2600-python with a repro, never fixed here. - Proof: `scripts/ladder.sh`, unchanged from the parent in what it judges. Its lockstep compares this board's traces with a2600-python's traces in `external/refcache` (copied from a2600-rust's, which a2600-rust matches line for line, so they are a2600-rust's traces too). - Speed: `scripts/ab.sh BASE` (alternating, best of N, CPU time, five games, three code layouts); a change is kept only if it wins on every layout. `a2600-profile` with `scripts/profile.py` shows where the time goes. - Each shortcut has a seeded fault (`fast-*` in `scripts/seeded_faults.py`) the gate must catch. ## Why the tier exists play-2600 runs the board in a phone's browser as WebAssembly. a2600-rust runs at about 3x real time natively on this machine; a phone's wasm is several times slower than that, and run-ahead multiplies the cost. ## Setup (local, not committed) `external/refcache` (a copy of a2600-rust's), `external/venv`, `external/a2600-python` and `external/6502-python` (links to a2600-rust's), `../6502-rust` and `../a2600-python` beside this checkout, `NO_INTRO_DIR`.