upvote
> This February I tried again and used Claude to generate Rust code. I have never been more stunned in my life. It's just as good as I am, and 30x faster. No fluff, the code is verbatim just as I would have written.

Having looked at a bunch of known or suspected (based on the intent of the code and/or what I know about the developer(s)) LLM generated rust, there's only a few explanations here:

1. You're way better at prompting than (virtually) anyone else.

2. You're vastly overestimating how good the rust code it produced is.

3. You handheld the model throughout and made lots of edits.

4. Your hand written rust code is very bad.

Because from every example I've seen, these models write horrible rust. Sure, it may technically pass all the tests, but it's horribly pessimized, badly organized, doesn't even attempt to use the type system, if there aren't bugs now there will be the second it tries to refactor or add a new feature, etc. etc.

(I also strongly suspect that the same would be true for other languages, but I can detect it in rust more easily because it's my main language)

reply
I recently tried with C# code and Avalonia on Linux. Total disaster. Could only get things to run after 10 attempts or so, and was only trying a very basic example. For some of the experiments I actually gave up.
reply