reference/ — Python prototype to PORT (not run)#
These are the validated CPU prototype from the desktop Fluoddity repo. They are the
reference implementation to port to TypeScript, not part of this project's build. Do not
add Python to the toolchain or run these as part of pnpm scripts.
| File | Port target | Notes |
|---|---|---|
cppn.py |
src/genome/CPPN.ts + src/genome/neat.ts |
Typed-activation DAG, eval, NEAT-lite mutate/crossover. The genome. |
fourier_rule.py |
src/genome/compile.ts |
Compile a CPPN → shared-freq sin/cos+DC Rule, then → 244-float plane-wave (pack_planewave). |
minisim.py |
src/engine/ (cross-check) |
CPU substrate. The WebGL2 engine must match its dynamics; use it to validate. See docs/v0_normalization.md for the exact constants. |
evolve.py |
src/evolution/ + src/ui/ |
The interactive-evolution loop: population → thumbnails → pick → breed → lineage. |
When porting, prefer the constants in docs/v0_normalization.md (the GPU normalization the
golden anchors were made under) over minisim's own constants where they differ — see that
doc's §5.