Skip to main content
AdOpenFree logoPromote your productReach more potential users and drive product growth and revenue.Advertise
Favicon of fast-anything

fast-anything

Free Listing

fast-anything profiles an app, ranks functions by time and portability, and helps a coding agent port only the slow functions to Rust. It records real calls, verifies the port against them and extra edge cases, then swaps it in reversibly.

Visit EL4CTEO/fast-anything

Overview

fast-anything is a command-line tool for profiling a running application, ranking functions by time spent and portability, and helping a coding agent port only the slowest suitable functions to Rust. It records real calls, builds a one-function Rust port, verifies it against recorded and derived cases, and can enable or disable the swap reversibly. It supports Python, JavaScript and TypeScript runtimes, Ruby, Java, Kotlin, Go, PHP, C, C++, C#, and R, and is available as an npm package or Rust crate.

Key Features

  • Profiles a running app and ranks functions by time spent and how portable they are.
  • Records up to 500 real calls and creates a one-function Rust crate plus a TASK.md file for a coding agent.
  • Verifies the port by replaying recorded calls and deriving extra edge cases; nothing is enabled until every case matches.
  • Rejects a port that is correct but slower per call than the original because the Rust boundary costs more than the work saved.
  • Enables or disables the Rust swap through a single marked block; FAST_ANYTHING_DISABLE=1 runs the original.
  • Ships as a Claude Code plugin and an MCP server, and --agent accepts claude, codex, or any command that reads a prompt on stdin.

Use Cases

  • Teams with a real performance bottleneck in a supported language who want measurable gains without a months-long migration.
  • Finding slow functions in Python, Node, TypeScript, Ruby, Java, Kotlin, Go, PHP, C, C++, C#, or R applications.
  • Using a coding agent or a TASK.md handoff to port a hot deterministic function to Rust while preserving behavior.
  • Producing benchmark results and a PR-ready report after enabling a port.

Getting Started

  • Install globally with npm i -g @el4cteo/fast-anything or with cargo install fast-anything.
  • Run the whole pipeline with fast-anything go --agent claude -- python app.py, replacing the final runtime command as needed.
  • Use the step-by-step commands scan -- <cmd>, port [id], verify, enable, disable, bench, report, and doctor.

Deployment & Requirements

  • Ports are compiled with your Rust toolchain, so rustup must be set up.
  • Supported runtime versions include Python 3.10+, Node 22+ with Bun or Deno 2+, Ruby 3.3+, Java 22+, Kotlin/JVM with JDK 22+, Go 1.22+, PHP 8.1+, .NET 8+, R 4.0+, and gcc, clang, or Intel oneAPI for C and C++.
  • PHP support uses the FFI extension; Go uses cgo; C and C++ use LoadLibrary or dlopen; Ruby, Java, Go, PHP, C, C++, C#, and R need no headers, bindings, or extra tools beyond the C bridge.
  • With Intel oneAPI on Windows, run fast-anything from a shell where setvars.bat ran.

Before You Adopt

  • License: MIT. Review its terms before using, modifying, or distributing the project.
  • Compiling ports depends on the user's Rust toolchain being set up.
  • Correctness alone does not guarantee enablement; a port that is slower per call than the original is not enabled because the Rust boundary can cost more than the work saved.
  • SYCL kernels are not ported because they run on the device.

Comments

Sign in to leave a comment.

More like fast-anything

Favicon of Doop

Doop

Free ListingStars: 2.2K

Design with AI agents on a live shared canvas

MCP Servers & Tool Connectors

Doop is an open-source alternative to Paper.design: a multiplayer design canvas where humans and AI agents design together live, with MCP built in and automations for shipping with taste.

Favicon of Mailflare

Mailflare

Free ListingStars: 3.6K

Professional email for individuals and teams

MCP Servers & Tool Connectors

Mailflare is a self-hosted, open-source email inbox for custom domains. It offers shared inboxes, multiple accounts, security, backups, and deployment on Cloudflare or Docker, keeping data on infrastructure you control.

Favicon of 矩媒 MatrixMedia

矩媒 MatrixMedia

Free ListingStars: 1.3K

Multi-platform video publishing for account matrices

MCP Servers & Tool Connectors

Open-source Electron and CLI tool for batch video publishing across Douyin, Kuaishou, Xiaohongshu, WeChat Channels, Bilibili, and more, with a CLI, local HTTP API, and MCP for scripts and AI orchestration.