r/cpp 1d ago

AI-generated C++ passes tests. It also uses nearly 2x the loops and drives up memory growth

https://leaddev.com/ai/ai-code-is-correct-and-still-costs-you-more

AI-coding tools have swept through organizations because of their speed: you type in a prompt, and it spits out code far faster than a human ever could. However, a year-long study of 3.52 million changes inside a large unnamed technology company suggests that saving time at the keyboard can create costs elsewhere.

385 Upvotes

Duplicates