‹ BackHN Continuity

Thread

Writing Rust code that's fast by asking agents to make the code faster

114 points · 63 comments · mooreds

  1. onlyrealcuzzo · · focus · HN ↗
    I'm finding the bottleneck writing Rust code to be that compiling and running tests is too slow compared to TypeScript - which is unfortunate, because I want all of the guarantees of Rust - I just don't particularly care if it runs at the fastest speed possible - at least not at the prototype stage, or ever for a lot of what I'm doing (though I do want the guarantees regardless).

    I wish it could run interpreted to massively speed up development, and that it had a Mull-like mutant testing framework so that mutants didn't take hours and tens-to-hundreds of gigabytes of space.

    1. Fordec · · focus · HN ↗
      I ran into this exact issue and had Claude write a test run scheduler to avoid cargo process contention and migrated to nextest within it. I have --release build cycles on my local machine down to about three seconds from what was for the same project 60+ seconds before investing in the changes.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.