What happened
A new GitHub repository, EL4CTEO/fast-anything, appeared and quickly gained traction — created only one day ago, it already has 1,259 stars (an average of 1,193 per day), placing it among the trending repos on GitHub.
The project's tagline states its thesis directly: "Don't rewrite it in Rust. Rewrite the 5% that's slow." It targets Python, Node, and Ruby apps in the headline, and its tooling and documentation extend to TypeScript, Java, Go, PHP, C, C++, and C# as well.
Key details
The workflow fast-anything automates:
- Profile:
scan profiles the running app and ranks functions by time spent × how portable they are.
- Record:
port records up to 500 real calls to a chosen function and creates a one-function Rust crate plus a TASK.md for the agent.
- Verify:
verify release-builds the port and replays every recorded call against the original.
- Swap:
enable/disable swaps the Rust code in or out — the original code sits in "one marked block, removed byte for byte," and FAST_ANYTHING_DISABLE=1 runs the original at any time.
- Benchmark and report:
bench times original vs. Rust in interleaved runs; report produces markdown and an SVG card for pull requests.
Verification goes beyond replaying recorded calls. The README's "Proof, not vibes" section shows a wrong port — one that "compared bytes instead of characters" — being caught by "148 of 500 real calls." In addition to recorded calls, the tool derives edge cases (NaN, ±infinity, -0.0, zero, ±1, non-ASCII text, empty and up to 16× larger inputs) and shrunk inputs. "Nothing is enabled until every case matches: same values (floats within 1e-9), errors where the original errors." A port that is correct but slower per call than the original is also not enabled.
The --agent flag accepts claude, codex, or "any command that reads a prompt on stdin"; without it, TASK.md can be handed to any agent manually. Integration options include a Claude Code plugin, a built-in MCP server exposing 8 tools (fast_scan through fast_status), and a skill file that teaches any agent the loop. Each port is a single-function crate compiled in seconds, and all ports share one .fast/target cache directory.
Reported benchmark runs (i5-10500, Windows 11) show 116× for a Python fuzzy dedupe, 55× for PHP, 21× for Go, 14× for Ruby, and 13× for C#, with smaller gains for Java (3× overall, 11× on the function, the rest being JVM startup), C (3.4×), and C++ (2.7×).
Why it matters
The README's argument against full rewrites is concrete: "Rewriting a whole app in Rust costs months, minute-long compiles and gigabytes of target/. Most of the runtime sits in a few functions anyway." fast-anything operationalizes that claim into a closed loop — profile, port, prove, swap — where the coding agent does the porting work but the harness enforces behavioral equivalence before anything ships.
Two design decisions stand out:
-
Ports the outermost loop, not inner helpers. The tool "ports the outermost loop it can, not the tiny function called inside it, so the app crosses into Rust once instead of millions of times." The README notes that porting only the inner levenshtein gave 35× on the function but only 1.9× for the app.
-
Adoption guardrails. Per-function opt-in, byte-for-byte reversibility, real recorded-call verification, and a performance gate (a slower port is rejected) reduce the risk that typically blocks production use of AI-generated code.
The 1-day, 1,259-star trajectory suggests the pitch — agent-driven, verified, reversible micro-rewrites — is resonating, though the numbers are early and the benchmarks are the project's own.
Who it affects
- Developers of interpreted-language apps (Python, Node/TypeScript, Ruby, plus the broader language matrix shown) with hot functions dragging down performance.
- Teams using coding agents — Claude Code, Codex, or anything MCP-compatible (Cursor is named) — who want a structured, verified task rather than free-form rewriting.
- Teams weighing "rewrite it in Rust" who can now compare a surgical per-function port against a full rewrite.
- Rust ecosystem tooling indirectly: installs are available via both npm and cargo, and ports require a local Rust toolchain.
The project is MIT-licensed. Installation is a single command (npm i -g @el4cteo/fast-anything or cargo install fast-anything), and a doctor subcommand checks Rust, the runtimes, and the agents before starting.
The original article is available here. }