explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR: what readers ask first
  • What fast-anything actually does
  • Why port 5% instead of rewriting everything?
  • How does it prove the Rust port is correct?
  • The published results, read carefully
  • Supported languages and bridges
  • How to try it in about ten minutes
  • What to check before you trust it
  • How it compares with similar tools
  • Bottom line
  • Related reading
← Back to blog

explainx / blog

fast-anything: Port Only Your Slow 5% to Rust, With Recorded-Call Proof

Rust, Developer Tools, AI Coding, Claude Code, MCP

Part of AI Tools and Apps

fast-anything profiles Python, Node, Ruby, Java and more, has your coding agent port hot functions to Rust, and enables them only after 500 recorded calls match.

Nov 23, 2026·10 min read·Yash Thakker
add explainx.ai
go deep
fast-anything: Port Only Your Slow 5% to Rust, With Recorded-Call Proof

EL4CTEO/fast-anything is a new open-source CLI that argues against rewriting whole apps in Rust. It finds the few slow functions in a Python, Node, Ruby, Java or similar app, has your coding agent port only those to Rust, and enables each port only after it matches real calls recorded from the original. The repository picked up about 1,900 GitHub stars within two days of appearing on the trending list, and it is released under the MIT license.

The README's own headline is blunt: "Don't rewrite it in Rust. Rewrite the 5% that's slow." Its published table shows 116x on a Python fuzzy-dedupe demo and 3x at the low end for Java, where JVM startup dominates. Those are the maintainer's numbers, not independent tests. This post explains how the tool works, how to try it, what the results do and do not show, and where it sits next to similar tools we have covered, such as rust-anything.

TL;DR: what readers ask first

table · 2 cols
QuestionShort answer
What does it do?Profiles your app, ports hot functions to Rust with your agent, proves parity on recorded calls, swaps them in
Cost?Free, MIT license. You pay for your own coding agent usage
Installnpm i -g @el4cteo/fast-anything or cargo install fast-anything
Needs Rust?Yes. Ports compile with your local Rust toolchain via rustup
Which agents?claude, codex, or any command that reads a prompt on stdin
Reversible?Yes. One marked block, removed byte for byte, or FAST_ANYTHING_DISABLE=1
Biggest published gain116x on a Python fuzzy dedupe (4.91s down to 42ms)
Biggest caveatResults come from the README, mostly one kind of workload
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

What fast-anything actually does

The tool is built around one loop. You point it at a command that runs your app, and it works through these steps, each of which is also a subcommand.

table · 2 cols
CommandWhat it does
scan -- <cmd>Profiles the app and ranks functions by time spent times how portable they are
port [id]Records up to 500 real calls, then creates a one-function Rust crate and a TASK.md for your agent
verifyRelease-builds the port and replays every recorded call
enable / disableSwaps the Rust in or out
benchTimes the whole app, original against Rust, with interleaved runs
reportWrites a markdown report and an SVG card for your pull request
doctorChecks Rust, your runtimes and your agents

The one-command version is fast-anything go --agent claude -- python app.py. The same pattern works with node app.ts, bun app.ts, deno run -A app.ts, ruby app.rb, java App.java, mvn exec:java, gradle run, go run ., php app.php or clang -O2 main.c.

The --agent flag accepts claude, codex or any command that reads a prompt on stdin. Without it, you hand the generated TASK.md to whatever assistant you already use. That design keeps the tool agent-neutral. It does not write Rust itself. The model you choose does, and the tool supplies the profile, the recorded cases and the checks.

If you are new to how agents get packaged for this kind of workflow, our guides to Agent Skills and the Model Context Protocol explain the plumbing behind the plugin, the skill and the MCP server that fast-anything ships.

Why port 5% instead of rewriting everything?

The README gives three reasons, and each one is a practical cost.

  • Compile time. Each port is a one-function crate, so builds take seconds rather than minutes.
  • Disk and cache. Every port shares one .fast/target directory. You can delete it whenever you like.
  • Risk. Your original code stays in place. Rust is opt-in per function and checked against real behavior.

The underlying argument is an old one from profiling: a small share of functions usually holds most of the runtime. A full rewrite pays for the 95% that was never slow. This is also the logic behind targeted migrations like AWS Kiro's PHP-to-Java parity engine, which treats behavior match as the gate instead of line-by-line translation.

A green lens enlarges one narrow section of a pipe, illustrating profiling before a targeted Rust portA green lens enlarges one narrow section of a pipe, illustrating profiling before a targeted Rust port

How does it prove the Rust port is correct?

This is the most interesting part of the project, and the README is specific about it. It calls the approach "Proof, not vibes."

The tool records up to 500 real calls to the chosen function from a real run. Your agent writes the Rust port. Then verify replays all recorded calls against it. The README includes one example of why this matters: a port looked right but compared bytes instead of characters. 148 of 500 real calls caught it.

On top of the recorded calls, fast-anything derives extra cases and lets the original function answer them:

  • Edge cases such as NaN, positive and negative infinity, negative zero, zero, plus and minus one, non-ASCII text, empty inputs and inputs up to 16 times bigger.
  • Shrunk inputs, meaning tiny and random slices of recorded ones.

Nothing is enabled until every case matches. Floats must agree within 1e-9. Errors must happen where the original errors. A port that is correct but slower per call than the original is not enabled either, because the cost of crossing into Rust can exceed the work saved.

This is replay testing, not formal proof. Recorded calls only cover what your run actually exercised. A branch your sample never hit stays unchecked, apart from the derived edge cases. That is a real limit, and the practical answer is to record from a representative run and keep your normal test suite.

Two pipes joined through a green adapter, illustrating fast-anything language bridgesTwo pipes joined through a green adapter, illustrating fast-anything language bridges

The published results, read carefully

The README lists real runs on an i5-10500 with Windows 11. The C and C++ rows ran on a 4-core GitHub Actions Linux runner. You can reproduce them from the examples/ folder.

table · 4 cols
AppBeforeAfterGain
Python fuzzy dedupe (700 names)4.91s42ms116x
TypeScript fuzzy dedupe (2,000 names)3.11s155ms20x
PHP fuzzy dedupe (600 names)2.94s53ms55x
Go fuzzy dedupe (3,000 names)3.02s144ms21x
Ruby fuzzy dedupe (400 names)3.13s228ms14x
C# fuzzy dedupe (4,000 names)4.03s312ms13x
Java fuzzy dedupe (4,000 names)3.50s1.18s3x (11x on the function)
C mandelbrot (8 zoom levels)431ms127ms3.4x
C++ fuzzy dedupe (6,000 names)3.02s1.09s2.7x

Three things stand out.

First, the workload is the same in most rows. Fuzzy name deduplication is a tight, CPU-bound string loop. That is close to the best case for moving work to Rust. A web app that waits on a database or network will not see 116x, because the time is not in your functions.

Second, the tool ports the outer loop, not the inner helper. The README says it 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. Porting only the inner levenshtein function gave 35x in Python and 1.9x in the other case it mentions. Where the boundary sits matters more than the language.

Third, the Java row is honest about startup. The whole app improved 3x because JVM startup is a fixed cost, while the ported function itself improved 11x.

Treat the table as a demonstration of the method, and run bench on your own code before you believe any number.

Supported languages and bridges

table · 3 cols
LanguageBindingNotes from the README
Python 3.10+PyO3Module-level functions and static methods. Dataclasses, NamedTuples and numeric NumPy arrays count as plain data
JavaScript and TypeScriptnapi-rsNode 22+, Bun and Deno 2+
Ruby 3.3+C ABI with JSON, through FiddleNo extra tools needed
Java 22+, Kotlin on the JVMC bridge through the FFM APIMaven, Gradle and single-file runs
Go 1.22+C bridge, with cgoPlain functions
PHP 8.1+C bridge through the FFI extensionNeeds extension=ffi
C and C++C bridgegcc, clang or Intel oneAPI compilers
C# on .NET 8+C bridge through NativeLibraryProfiled with EventPipe

The tool ports top-level, deterministic functions that take plain data such as numbers, strings, lists, dicts and typed arrays. If a function does not qualify, scan tells you why it cannot move yet. That means functions that touch files, sockets, global state or random values are poor candidates until you split out a pure core.

How to try it in about ten minutes

  1. Install Rust with rustup and confirm cargo --version works.
  2. Install the tool with npm i -g @el4cteo/fast-anything, or cargo install fast-anything. The npm package page lists the same README.
  3. Run fast-anything doctor to check Rust, runtimes and agents.
  4. Use a script you know is slow and CPU-bound. Run fast-anything scan -- python app.py and read the ranking.
  5. Run fast-anything go --agent claude -- python app.py, or go step by step with port, verify, enable and bench.
  6. Run fast-anything report and attach the markdown and SVG card to your pull request.
  7. Keep your normal tests. Run them with the port enabled and again with FAST_ANYTHING_DISABLE=1.

For Claude Code, the README gives two routes. The plugin route is /plugin marketplace add EL4CTEO/fast-anything, then /plugin install fast-anything@fast-anything, then /fast-anything:fast python app.py. The MCP route is claude mcp add fast-anything -- fast-anything mcp. The built-in MCP server exposes 8 tools: fast_scan, fast_port, fast_verify, fast_enable, fast_disable, fast_bench, fast_report and fast_status. It also works from Codex and Cursor. If you are still learning the slash commands, see our Claude Code commands reference.

A tower with a green beacon linked to small boxes, illustrating fast-anything MCP toolsA tower with a green beacon linked to small boxes, illustrating fast-anything MCP tools

What to check before you trust it

  • It is new. The repository was created days ago and shows 59 commits. Expect rough edges and read the open issues before you adopt it.
  • Pin and review the Rust. The agent writes the code. A parity check does not catch performance traps, unsafe blocks or surprising dependencies, so read the generated crate like any pull request.
  • Check the build chain. Ports are native code that your machine compiles. That adds a toolchain to CI and to every developer machine. Plan for it.
  • Watch the data boundary. Crossing into Rust has a cost. The tool measures this and refuses slower ports, but only on the recorded inputs.
  • Recorded calls may contain real data. The tool saves up to 500 real calls from your run. If your function handles personal or secret values, review where .fast stores them and keep that folder out of version control.
  • Agent cost and trust. Your coding agent reads the TASK.md and your source. Use the same data rules you use for any agent session.

How it compares with similar tools

fast-anything is not alone. rust-anything uses a similar record, diff and gate loop with shadow mode. The difference is mostly packaging: fast-anything bundles a profiler-driven ranking, a single go command, a report card and a plugin. Another agent-skill tool we covered, ffmpeg-skill, shows the same trend: small tools that hand a narrow, checkable job to your coding agent, then verify the result with a deterministic step. The pattern is worth learning even if you never use Rust.

The bigger idea is that agents are good at translation and poor at knowing whether the translation is right. Tools that pair the agent with recorded ground truth turn a risky rewrite into a series of small, reversible steps.

Bottom line

Use fast-anything when you have a measurable CPU-bound hot spot in a dynamic language and a function that takes plain data. Skip it when your time goes to I/O, or when the slow code mixes in global state. Start with scan, read the ranking, and port one function. Compare bench output with your own expectations before you merge anything.

Repository details, star counts and benchmark figures come from the project README on November 23, 2026 and may change.

Related reading

  • rust-anything: incremental Rust rewrites with recorded behavior parity
  • AWS Kiro PHP-to-Java migration engine and parity harness
  • What are Agent Skills? A complete guide
  • What is MCP? The Model Context Protocol guide
  • Claude Code commands: complete reference
  • ffmpeg-skill: local video editing MCP for coding agents
  • Official: fast-anything on GitHub and on npm
Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Nov 18, 2026

rust-anything: Incremental Rust Rewrites With Recorded Behavior Parity

In November 2026 erkamyaman/rust-anything surged past 2,500 GitHub stars with a parity-first Rust migration loop: record the original, let your agent write port.rs, and refuse to ship until diff and gate pass. This guide explains the CLI, MCP tools, and which languages are production-ready.

Nov 13, 2026

ArtCraft at AI Engineer Code: 17 Rust Crafting Apps and an Open-Source Factory Pitch

At AI Engineer Code Summit, ArtCraft CEO Brandon Thomas pitched a launcher full of open-source Rust rewrites of creative and office software, from PhotoCraft to PdfCraft, plus a future AutoCraft factory. The website and GitHub back much of the catalog; download and parity numbers are still stage claims.

Nov 11, 2026

Herdr: The Rust Terminal Runtime GitHub Trending for Coding Agents

Herdr gained about 2,196 GitHub stars in one week and shows roughly 50,100 stars total. It is a Rust terminal multiplexer aimed at Claude Code, Codex, Cursor, and other coding agents — with detach, multi-machine panes, working or blocked status, and an agent socket API.