News for hackers. Stuff that matters.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by girvo on Saturday May 09, 2026 @05:45PM (#48078568)
I’ve struggled to get Opus to not write the weirdest possible Rust, ignoring all idioms and so on. Any tips?
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by antonvs on Saturday May 09, 2026 @11:05PM (#48080611)
Give it coding guidelines. It'll largely try to do what you ask.

Left to itself, it often follows human developers who conceive of their goal as "get the program working, the end justifies the means." Which makes sense because there are a lot of systems like that in the training corpus.

Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by nyssos on Sunday May 10, 2026 @06:25AM (#48082636)
Be absolutely ruthless with technical debt. Opus is perfectly capable of producing idiomatic code in any mainstream language you please, but will seize on any opportunity to justify writing basically-python instead because that's "consistent" with the "convention". Deprive it of that excuse.
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by girvo on Sunday May 10, 2026 @05:00PM (#48087952)
Yeah that’s basically what I mean! I have no issues wrangling it myself, but now I’m curious how those who are managing “fleets” of agents while shipping four features a day are doing it. They’re not, I’d assume?
Re:Bun's experimental Rust rewrite hits 99.8% test compatibi... by saghm on Tuesday May 12, 2026 @04:26PM (#48114039)
I found that turning on every possible clippy lint and telling it that it has to run clippy as well as tests before it can claim it's finished helped a decent amount. Of course, if you have a decent-sized codebase of Rust you're happy with, it helps immensely, since it will tend to listen to follow instructions to follow existing patterns.