Original link: Optimizing Python scripts with AI / Daniel Lemire blog.
So AI failed here. Just one case, so it would be inappropriate to conclude that AI will always fail for such work, but it does prove that AI can fail for such work.