
fast-anything ports bottleneck functions to Rust
Featured in a Better Stack walkthrough, the open-source CLI profiles apps across 13 languages and delegates hot functions to Claude Code or Codex for Rust rewrites. It replays up to 500 recorded calls with a 20% holdout set before enabling reversible swaps, drawing over 5,700 GitHub stars and reaching v1.5 since November 21.
Most "rewrite it in Rust" pitches fail on risk rather than speed, and fast-anything's real innovation isn't LLM translation—it's using holdout trace replay to make agent-generated ports verifiable.
- –Holding out every 5th recorded call from the coding agent, testing synthetic edge cases (NaN, infinity, non-ASCII), and blocking ports that run slower per call turns "vibe porting" into a gated engineering workflow.
- –Headline benchmarks (like 116× on Python fuzzy dedupe) come partly from parallelism: generated crates use `available_parallelism` across all CPU cores, so gains combine multithreading with native compilation rather than pure single-threaded Rust speedups.
- –The tool only targets top-level, deterministic functions passing plain data (numbers, strings, lists, maps); it will not fix database, network, or architectural bottlenecks, and tiny functions still face FFI marshalling limits despite targeting outermost loops.
- –Leaving the original function in place behind a toggleable Rust crate (`FAST_ANYTHING_DISABLE=1`) makes rollbacks trivial, but teams risk silent code drift if someone edits the host function without re-running the port-and-verify cycle, alongside heavier CI builds for the Rust toolchain.
- –Dual-licensed MIT/Apache-2.0 and packaged as a CLI, MCP server, and native plugin for Claude Code and Codex, it reflects a broader shift toward devtools built for coding agents to operate end-to-end.
DISCOVERED
28m ago
2026-12-03
PUBLISHED
32m ago
2026-12-03
RELEVANCE
AUTHOR
Better Stack
