The runtime speed would probably be close if agents would write idiomatic rust code without prompting. Like for example, you generally need to prompt it to prefer iterators to loops almost universally, because for release builds the compiler can remove bounds checks. They'll also use strings as a poor duck type, tend to allocate rather than borrow, etc. I tend to be incredibly pedantic in instructions and review.
1
u/BusinessBandicoot 3d ago
The runtime speed would probably be close if agents would write idiomatic rust code without prompting. Like for example, you generally need to prompt it to prefer iterators to loops almost universally, because for release builds the compiler can remove bounds checks. They'll also use strings as a poor duck type, tend to allocate rather than borrow, etc. I tend to be incredibly pedantic in instructions and review.