Agentic LLMs Can Write Rust Code 2x-20x Faster Than State-of-the-Art Libraries

minimaxir · x · 2026-09-22

Max Woolf publishes a 26-minute deep dive showing that modern agentic LLMs—given the right guardrails and constraints—can iteratively optimize Rust code until it beats current state-of-the-art libraries by 2x-20x depending on domain. His earlier 2025 experiment with "write better code" prompting on Python failed because the instruction was underspecified; with post-Opus 4.5 agentic coding and a Rust+PyO3 approach, the same idea now works, and improvements compound with each frontier model release. He includes both his prompts and benchmark results.

Original post →

More from coding & agent

coding & agent channel →