OHREN_Lab

Open source오픈소스fast-anythingfast-anything

fast-anything, an MIT-licensed CLI that has a coding agent port only the few slow functions of an app to Rust and swaps them in only when replayed real calls give the same resultsfast-anything, 앱 전체가 아니라 느린 함수 몇 개만 코딩 에이전트에게 Rust로 옮기게 하고 실제 호출을 다시 돌려 같은 결과일 때만 바꿔 끼우는 MIT 라이선스 CLI

fast-anything is an MIT-licensed CLI that finds the functions where an app spends its time, has a coding agent port only those functions to Rust, and swaps a port in only when replayed real calls give the same results. It installs through npm or cargo, needs a Rust toolchain, and works with Python, Node.js, Ruby, Java, Go, PHP, C and C++ apps. The README says a port that matches but is slower per call is not enabled, and FAST_ANYTHING_DISABLE=1 runs the original code at any time.fast-anything은 앱에서 시간을 가장 많이 쓰는 함수를 찾아 코딩 에이전트가 그 함수만 Rust로 옮기게 하고, 녹화한 실제 호출을 다시 돌려 같은 결과일 때만 바꿔 끼우는 MIT 라이선스 CLI입니다. npm이나 cargo로 깔고 Rust 도구 모음이 있어야 하며, Python · Node.js · Ruby · Java · Go · PHP · C · C++ 앱을 다룹니다. README는 모든 경우가 맞아도 호출당 더 느리면 켜지 않고, FAST_ANYTHING_DISABLE=1로 언제든 원래 코드를 돌린다고 적었습니다.

Checked확인일

fast-anything is a CLI that, instead of rewriting a whole app in Rust, ports only the few functions where the runtime sits, and its code is MIT-licensed. It finds those functions, has a coding agent port only them to Rust, proves the port gives the same results on real recorded calls and swaps it in, all in one reversible command. The README says nothing is enabled until every case matches, a port that is right but slower per call because calling into Rust costs more than the work saved is not enabled either, and FAST_ANYTHING_DISABLE=1 runs the original any time.fast-anything은 앱 전체를 Rust로 다시 쓰는 대신 시간을 가장 많이 쓰는 함수 몇 개만 옮기는 CLI이고 코드는 MIT 라이선스입니다. 그 함수를 찾아 코딩 에이전트가 그 함수만 Rust로 옮기게 하고, 녹화한 실제 호출에서 같은 결과를 내는지 확인한 뒤 바꿔 끼우며, 명령 하나로 돌고 되돌릴 수 있습니다. README는 모든 경우가 맞기 전에는 아무것도 켜지 않고, 맞더라도 Rust를 부르는 비용 때문에 호출당 더 느리면 켜지 않으며, FAST_ANYTHING_DISABLE=1로 언제든 원래 코드를 돌린다고 적었습니다.

It installs globally through npm or with cargo install fast-anything, and ports are compiled with the local Rust toolchain from rustup. Supported languages are Python 3.10+ (PyO3), JavaScript and TypeScript on Node 22+ (napi-rs), Ruby 3.3+, Java 22+, Go 1.22+, PHP 8.1+ and C and C++ with gcc or clang. --agent takes claude or any command that reads a prompt on stdin, and without it TASK.md can go to any tool.npm 전역 설치나 cargo install fast-anything으로 깔고, 옮긴 코드는 내 Rust 도구 모음(rustup)으로 컴파일합니다. 다루는 언어는 Python 3.10 이상(PyO3), Node.js 22 이상의 JavaScript · TypeScript(napi-rs), Ruby 3.3 이상, Java 22 이상, Go 1.22 이상, PHP 8.1 이상, gcc나 clang의 C · C++입니다. --agent에는 claude나 표준 입력으로 프롬프트를 읽는 아무 명령을 넣고, 없으면 TASK.md를 쓰는 도구에 넘깁니다.

A single fast-anything go --agent claude -- python app.py runs the whole loop, and step-by-step commands exist too. scan profiles the app and ranks functions by time and how portable they are, port records up to 500 real calls and creates a one-function Rust crate with TASK.md, and verify builds the port and replays every recorded call. enable and disable swap the Rust in or out through one marked block that is removed byte for byte, while bench, report and doctor time the app, write a report for a PR and check the setup.fast-anything go --agent claude -- python app.py 한 줄이 전 과정을 돌리고, 단계별 명령도 있습니다. scan은 앱을 프로파일링해 걸린 시간과 옮기기 쉬운 정도로 함수 순위를 매기고, port는 실제 호출을 최대 500개 녹화해 함수 하나짜리 Rust crate와 TASK.md를 만들며, verify는 빌드한 포트에 녹화한 호출을 다시 돌립니다. enable과 disable은 표시한 블록 하나로 Rust를 끼우고 빼며 뺄 때는 바이트 그대로 지우고, bench · report · doctor가 시간 재기 · PR용 보고 · 환경 확인을 맡습니다.

Terminal recording from the fast-anything README: the command fast-anything go --agent claude -- python app.py profiles app.py and ranks fuzzy.find_duplicates first, records real calls, has claude write the Rust port, builds it, replays recorded and derived calls with the same result, switches the function to Rust and times the Python and Rust runs.
Image: fast-anything README.그림: fast-anything README. Copyright (c) 2026 EL4CTEO · MIT License Open original원본 보기

In the README example, a port that looked right compared bytes instead of characters, and 148 of 500 real calls caught it. Besides recorded calls, it derives edge cases such as NaN, ±infinity, -0.0, zero and ±1, non-ASCII text, empty and up to 16× bigger inputs and shrunk inputs, lets the original answer them, and requires floats to match within 1e-9.README의 예에서는 겉보기에 맞던 포트가 글자 대신 바이트를 비교했고, 실제 호출 500개 가운데 148개가 이를 잡았습니다. 녹화한 호출 말고도 NaN, ±무한대, -0.0, 0과 ±1, 비ASCII 글자, 빈 입력과 16배까지 큰 입력, 줄인 입력을 만들어 원래 코드의 답과 견주고, 실수는 1e-9 안에서 같아야 합니다.

In README results measured on an i5-10500 with Windows 11, a Python fuzzy dedupe of 700 names went from 4.91s to 42ms (116×) and the TypeScript version from 3.11s to 155ms (20×). Java went from 3.50s to 1.18s (3×), or 11× on the function alone, with the rest being JVM startup. Porting only the inner levenshtein function gave just 35× and 1.9×, so the tool ports the outermost loop it can.README가 i5-10500 · Windows 11에서 잰 결과로 Python fuzzy dedupe(이름 700개)는 4.91초에서 42ms로 116배, TypeScript는 3.11초에서 155ms로 20배 빨라졌습니다. Java는 3.50초에서 1.18초로 3배였고 함수만 보면 11배이며 나머지는 JVM 시작 시간이라고 적었습니다. 안쪽 levenshtein 함수만 옮기면 35배와 1.9배에 그쳐, 도구는 옮길 수 있는 가장 바깥 루프를 옮깁니다.

There is a Claude Code plugin, an MCP server built into the binary with 8 tools for Claude Code, Cursor and others, and a skill that teaches any agent the loop.Claude Code 플러그인과 바이너리에 든 MCP 서버(Claude Code · Cursor 등에서 도구 8개), 다른 에이전트에 이 순서를 가르치는 skill이 있습니다.

It ports top-level, deterministic functions that take plain data such as numbers, strings, lists, dicts and typed arrays, which in Java and PHP means static methods, plus plain functions in PHP. The speed figures are the maker’s own measurements on its own examples, and how much any other app gains depends on where its time goes.옮기는 대상은 숫자 · 문자열 · 리스트 · dict · typed array 같은 평범한 자료를 받는 최상위 결정적 함수이고, Java는 static 메서드, PHP는 static 메서드와 일반 함수입니다. 속도 숫자는 만든 쪽이 자기 예제로 잰 값이고, 다른 앱에서 얼마나 빨라지는지는 그 앱의 시간이 어디에 쓰이는지에 달려 있습니다.

All algoit posts알고IT 글 목록

Follow our AI news onAI 소식 팔로우하기X Instagram Threads