fast-anything

Speed up a slow Python, Node.js/TypeScript, Ruby, Java, Kotlin, Go, PHP, C, C++, C# or R app by porting its hottest pure functions to Rust and proving each port gives the same results on real recorded calls. Use when the user wants their Python code faster, asks about hot paths or profiling, or says "rewrite the slow part in Rust".

分类
通用
版本
v1.0.0
作者
杨桐(@userxr3s18)
下载
0
收藏
0
发布
2026-11-28
更新
2026-11-28
TRACE 评分
2.8 / 5

内容概览

The fast-anything CLI measures, records, builds, checks and swaps. You write the Rust. (The same steps are MCP tools: fast scan, fast port, fast verify, fast enable, fast bench, fast report.) 1. Scan : fast-anything scan -- python app.py, using the command the user runs their app with (a representative workload, not the test suite). Pick the top function marked "port it". Skip anything under 2% of the run: porting it can't make a visible difference. 2. Port : fast-anything port <id . It re-runs the app, records up to 500 real calls, and creates .fast/ports/<id / with a stub src/lib.rs and a TASK.md. Read TASK.md fully. 3. Write the Rust in src/lib.rs (Ruby, Java, Go, PHP, C, C++, C : src/port.rs; src/lib.rs there is generated glue): - Same semantics: Unicode code points (.chars(); JavaScript compares UTF-16 units), integer ranges, float operation order, error cases. - Fast: borrow, no ne…

查看 SKILL 详情