hn.today

Opus 5.5 and Fable 5.2 made my overoptimized Rust code more overoptimized

minimaxir.com10 points4 comments
Screenshot of Opus 5.5 and Fable 5.2 made my overoptimized Rust code more overoptimized

The piece describes using Claude Opus 5.5, and later its Fable 5.2 sibling, to push Rust projects beyond optimizations already achieved with GPT-based agents. The author’s process asks models to improve benchmark speed while guarding against regressions and benchmark cheating. Opus produced 1.2-1.5× speedups in a single pass on several already-optimized projects, often by profiling first with samply, testing possible changes, and revisiting newly exposed bottlenecks. It sometimes replaced the standard PNG library with bespoke parallel or streaming code. These gains came with tradeoffs: Opus tends to add substantial code and technical debt, and Claude Code hides live benchmark output. The author found the Claude desktop app more usable for monitoring its background tasks than other available setups.

A separate, unexpectedly fruitful experiment asked Opus to reduce peak memory use. It achieved substantial reductions across projects such as an HDBSCAN clustering crate and an in-memory text search tool, mainly through streaming and more careful vector sizing; further prompts sometimes improved the reductions, though memory work rarely yielded major speed gains. The author argues that performance work should include profiling and resource use, not just runtime benchmarks, and that software quality cannot be measured by speed alone. For example, a Rust UMAP implementation had beaten Python’s umap-learn by 4-15×, yet its visual clusters on the MNIST digit dataset appeared to fall short - evidence that subjective-looking outcomes can expose real quality failures.

Read on minimaxir.com4 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Source Control from Hell

Source Control from Hell

An early software job relied on a shared folder, manual change descriptions, and a tech lead copying code by hand, with coworkers announcing when they needed access to avoid overwriting each other. Discovering Git showed Alex how version control could make collaboration faster and safer, but his company kept its old process for years because it worked well enough for them. (frantic.im)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.