Comment by atq2119
17 hours ago
Interesting, but note that the first bug pointed out by Claude is probably a false positive.
In the original version of the code, if a link is removed and it is the last link, then the condition `remove_idx == worst_idx` must be true, which leads to falling back to the most general update function, which handles the case of an empty list correctly.
(Of course, the suggested fix doesn't hurt, and people may disagree about which version of the code is clearer.)
To paraphrase Rowling, LLMs are rather cleverer than most software, and so their mistakes tend to be correspondingly cleverer. The trick is to ensure that their mistakes don't become correspondingly huger.
No comments yet
Contribute on Hacker News ↗