|
|
|
|
|
by rfgplk
8 days ago
|
|
The quality of the code is irrelevant, the only two metrics that matter are a) security and b) performance. If the AI produces code that is secure enough (aka clearly passes security checks/fuzzes/linters/LLM reads) and perform well enough in general and targeted benchmarks then it's good enough. The actual code style, abstractions are by-and-large irrelevant today. An LLM could even insert inline ASM into Rust, and if it performs well, well, it performs well. |
|
You don't care at all about (c) maintainability or fragility?
One of the biggest problems I see is LLMs duplicate sources of truth they have no business duplicating... all the time. E.g. if an internal constant in some code is X then they just hard-code X in fifty other places far away and code based on that. And it's not just constants, they often duplicate entire pieces of logic too. So everything is fine and dandy when the code is fresh, but the next time the original is updated, the rest of the code breaks, because nothing forces this update to update too. Of course the garbage tests they produce never test such hidden assumptions either.
And this is before I get to other things, like (d) test costs and (e) the limits of test matrices. That "inline assembly" you just inserted now requires you to test everything on older CPUs that may lack newer instructions. And on other architectures too. That's a huge cost and this kind of thing exponentially grows your test matrix. Or, more likely, you end up with a breakage on some CPU because you didn't care.