New CLI tool fast-anything ports only hot-path functions to Rust
A new open-source command-line tool called fast-anything profiles a running application, identifies the small number of functions consuming most runtime, and has a coding agent (such as Claude or Codex) rewrite just those into Rust. It verifies correctness by replaying up to 500 real recorded calls plus generated edge cases, and only enables the Rust version if results match and performance actually improves, with a one-command toggle to revert. It installs via npm or cargo and supports apps written in Python, Node, Ruby, Java, Go, PHP and C.
GoKawiil's interpretation of the reporting above, not reported fact.
The approach targets a common complaint about full Rust rewrites—long compile times and large engineering effort—by limiting scope to the functions that matter for speed, which could lower the barrier to performance optimization for teams that can't justify a full rewrite. Its emphasis on automated verification against real and synthetic inputs suggests an attempt to make AI-assisted code porting trustworthy enough for production use, though its reliability at scale remains unproven outside the examples given.
- fast-anything automates finding and porting only the slowest functions in an app to Rust.
- It verifies ports using recorded real calls plus generated edge cases before enabling them.
- The tool supports multiple languages and includes a one-step disable/reverse mechanism.
Source: github.com, 2026-11-22
Published there as: “Fast-Anything: Don't rewrite it in Rust. Rewrite the 5% that's slow”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.