FrankenNumPy

Docs/Overview

Why FrankenNumPy?

NumPy (C / Cython) FrankenNumPy (Rust)
Memory safety Buffer overflows possible 10 of 11 implementation crates declare #![forbid(unsafe_code)] (numeric core is unsafe-free); the 11th (fnp-python, the PyO3 boundary) holds all hand-written unsafe (67 audited blocks/items: encapsulated borrowed-buffer views, plus get_unchecked/transmute in some kernels)
numpy.__all__ surface Reference 499/499 (100%), structurally locked by CI conformance test
RNG parity Reference Bit-exact PCG64DXSM core stream, oracle-verified distributions
NaN semantics C-level behavior Explicit propagation across reductions / sort / median / ptp
Stride calculus Evolved over decades Single deterministic engine (SCE) owning all shape transforms
Runtime modes Single Strict (max compat) + Hardened (safety guards) with evidence ledger
Conformance Self-referential Differential oracle against real NumPy in CI: G3 for the Rust engine, G2 conformance shards for the Python module
Input hardening Best-effort Bounded resource limits + fail-closed on unknown semantics
Test coverage pytest suite 9,086 Rust #[test] functions across 11 crates + 9-gate CI topology + 42 fuzz targets (all nine gates G1–G9 passed in CI run 37725278874 on commit 4164ba32b, 2026-10-08; see CI Gate Topology)
Format durability None RaptorQ erasure-coded sidecars + scrub + decode-proof for 12 artifacts: the conformance and benchmark bundles, the nine P2C parity reports, one cross-engine baseline

This section in the README on GitHub