Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Fast-Anything: Don't rewrite it in Rust. Rewrite the 5% that's slow

Article URL: https://github.com/EL4CTEO/fast-anything Comments URL: https://news.ycombinator.com/item?id=50596155 Points: 171 # Comments: 136

Don't rewrite an entire application in Rust. Focus instead on optimizing the 5% of the code that is currently slow. The tool fast-anything identifies these slow functions, ports them to Rust, and swaps them in seamlessly. A single command enables the ported functions, which are compiled using the developer's Rust toolchain. The ported code is thoroughly tested against real recorded calls and additional edge cases.

If a port is slower than the original, it won't be enabled. fast-anything runs on various systems, including Windows and Linux, and supports multiple programming languages. It only ports the outermost loop or deterministic functions that take plain data, such as numbers, strings, lists, dicts, and typed arrays. With Intel oneAPI, SYCL kernels run on the device and aren't ported.

Ruby, Java, Go, PHP, C, C++, and C# applications can use fast-anything without any additional headers or tools.

Rewritten by urgent.news; may contain errors — check the original.

Source: github.com

Read the original at github.com →

Report a problem with this story

More in Tech

More from Sunday, 22 November 2026 →