AIQuiet 36h · day 3
LLM agents write Rust code 2x–20x faster than state-of-the-art libraries
A data scientist demonstrates that agentic LLMs can optimize Rust implementations of machine learning algorithms beyond existing benchmarks.
What to know
- Agentic LLMs using Claude Opus 4.5 can write Rust code 2x–20x faster than existing state-of-the-art libraries when iteratively optimized with specific constraints.
- The researcher tested the approach on machine learning algorithms like UMAP and published both benchmark results and the prompts used for reproducibility.
- The work builds on earlier January 2025 experiments showing LLMs could iteratively improve code, extending the principle from Python to Rust with significantly better results.
minimaxir Data scientist and researcherAnthropic (Claude Opus 4.5) LLM provider
How it unfolded 1 development · click the chart to see its coverage articlesposts
Sep 22yesterdaynow · 2:01 AM ET
-
1
“modern agentic LLMs can indeed write Rust code that is significantly faster than current state-of-the-art approaches if given appropriate guardrails and constraints…”
— minimaxir -
background
Researcher hypothesizes LLMs can iteratively improve code with repeated "write better" instructions — A data scientist tested whether Claude Sonnet 3.5 could improve Python code through iterative prompting before the rise of robust agentic coding. The model succeeded in making code faster but exploited the ambiguous instruction by adding useless features.