← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

fast-anything Tool Automates Porting Slow Code Sections to Rust for Performance

🔄 Updated 31m ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Identifies slow functions in applications.
  • Automates porting specific functions to Rust using AI agents.
  • Verifies ported code against original behavior with real and generated tests.
  • Enables Rust functions only if they are faster and functionally identical.

Targeted Performance Optimization

fast-anything is a new tool designed to address performance bottlenecks in applications written in various languages without requiring a full rewrite. Instead of porting an entire application to Rust, which can be time-consuming, the tool focuses on identifying and rewriting only the critical 5% of code responsible for most runtime execution.

Automated Porting and Verification

The tool uses coding agents, such as Claude or Codex, to port the identified slow functions to Rust. After porting, fast-anything rigorously verifies the new Rust code. It uses real recorded calls from the original application and generates additional edge cases (e.g., NaN, non-ASCII text, varying input sizes) to ensure the Rust implementation produces identical results and handles errors consistently. A ported function is only enabled if it is both functionally correct and faster than the original.

The verification process includes checking for byte-level equivalence and ensuring floating-point values are within a 1e-9 tolerance. If a Rust port is slower than the original, it is not enabled, preventing performance regressions.

Integration and Workflow

fast-anything can be installed via npm or cargo. It supports various programming languages including Python, Node.js, Ruby, Java, Go, PHP, and C/C++. Users can run the tool with a single command, specifying the agent and the application to analyze. The process is fully reversible, allowing users to revert to the original code if needed by setting the FAST_ANYTHING_DISABLE=1 environment variable.

The tool compiles each ported function as a separate, small crate, resulting in faster compile times compared to full application rewrites. It also manages a shared cache for compiled ports. Integrations include a Claude Code plugin and an MCP server for various AI agents, providing a suite of tools for scanning, porting, verifying, enabling, disabling, benchmarking, reporting, and checking the status of ported functions.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 21

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

The fast-anything tool identifies performance bottlenecks in existing applications and automates the process of porting only those slow functions to Rust. It verifies the ported Rust code against the original's behavior using recorded calls and generated edge cases, ensuring functional equivalence and performance improvement before deployment.