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.
Published at
2023-10-23 18:10:50Event JSON
{
"id": "70d389f5fa905d1adc09671db278390871930ed3f84bb7a1280a593b0dc7dee8",
"pubkey": "75c4441558d260c0ca589ce8fa89fd5052eccf0b09fca823796810a986ad1c8e",
"created_at": 1698084650,
"kind": 1,
"tags": [
[
"proxy",
"https://abyssdomain.expert/users/filippo/statuses/111285675682565376",
"activitypub"
]
],
"content": "I don't understand why AI is being used to generate code instead of flagging potential bugs.\n\nLike, I just spent an hour debugging this\n\nfor i := 0; i \u003c n; i += 2 {\n x := uint32(f[i]) | uint32(f[i])\u003c\u003c12\n\nI am almost sure a ML model could tell that's likely wrong.\n\nIt's also much lower-stakes: if it's wrong it wouldn't be introducing any bugs, just making me dismiss a suggestion.",
"sig": "241901497d282329d542388db89a4ae5b4239137356e72fe95c565a71938358fa7f6675907f6bdb79a76308f2d52c469fe3d1fa927d9a11da3018063b3614025"
}