2 ms·
I've written a few pieces of code with the help of AI. The trick is that I don't need the help. I could see where the bugs are. The AI could do certain things
by kazinator 3y ago
I've written a few pieces of code with the help of AI. The trick is that I don't need the help. I could see where the bugs are.
The AI could do certain things much faster than I would be able to by hand. For instance, in a certain hash table containing structures, it turned out that the deletion algorithm which moves elements couldn't be used because other code retains (reference counted) pointers to the structures, so the addresses of the object have to be stable. AI easily and correctly rewrote the code from "array of struct" to "array of pointer to struct" representation: the declaration of the thing and all the code working on it was correctly adjusted. I can do that myself, but not in two seconds.