logoalt Hacker News

girvoyesterday at 9:45 PM2 repliesview on HN

I’ve struggled to get Opus to not write the weirdest possible Rust, ignoring all idioms and so on. Any tips?


Replies

nyssostoday at 10:25 AM

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.

antonvstoday at 3:05 AM

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.