Filippo Valsorda :go: on Nostr: I don't understand why AI is being used to generate code instead of flagging ...
I don't understand why AI is being used to generate code instead of flagging potential bugs.
Like, I just spent an hour debugging this
for i := 0; i < n; i += 2 {
x := uint32(f[i]) | uint32(f[i])<<12
I am almost sure a ML model could tell that's likely wrong.
It's also much lower-stakes: if it's wrong it wouldn't be introducing any bugs, just making me dismiss a suggestion.
Like, I just spent an hour debugging this
for i := 0; i < n; i += 2 {
x := uint32(f[i]) | uint32(f[i])<<12
I am almost sure a ML model could tell that's likely wrong.
It's also much lower-stakes: if it's wrong it wouldn't be introducing any bugs, just making me dismiss a suggestion.