FrankenNumPy rebuilds NumPy in safe Rust: 99.9% of NumPy's own tests pass, up to 201x faster
doodlestein · x · 2026-12-06
- FrankenNumPy is a clean-room rewrite of NumPy in memory-safe Rust, pitched as a drop-in replacement: change one line (import fnppython as np) and go.
- Compatibility: all 499 names in numpy.all answer; 47,189 of the 47,236 NumPy tests that pass on NumPy (99.9%) still pass across 121 modules.
- Performance: where NumPy lacks a fast path, Rust kernels shine — float isin up to 201x faster, float16 matmul 59x, int64 matmul 20x, with byte-identical outputs.
- Engineering rigor: 10 of 11 crates forbid unsafe; 9,976 #[test] functions, 42 fuzz targets, 194 NumPy parity shards; 196/196 dtype promotions match, all 5 bit generators reproduce NumPy's streams bit-for-bit, and .npy files match byte-for-byte.
- Available on PyPI and crates.io (v0.6.0), with a live browser demo compiled to WebAssembly.
More from Research
- DeepMind releases formal-papers: AI-generated Lean 4 math formalizations + PaperLib — Promptmethus · 2026-12-06
- Near-quantum atomic simulations now run on a single home RTX 3090 with open-source MACE + ASE — Promptmethus · 2026-12-06
- NeurIPS paper: giving tools to MLLMs weakens refusals, failure rate up to 68.7% higher — lateinteraction · 2026-12-06
- Platonic Representation Hypothesis and its AI implications get first popular-science treatment — Competitive_Travel16 · 2026-12-06
- OpenAI's Dot Agent Independently Discovers New Math Result Using Just 12 Seconds of CPU Compute — Polymarket · 2026-12-06
- ME-World: Multi-Agent Egocentric World Model Aims to Bring Multiplayer AR/VR Games into World Models — Scobleizer · 2026-12-06