When computer generated simulations can write programs that were never part of their designer's original programming....please let us know, by offering us a link to the research.
AI remains in the sci fi sphere....
"In traditional programming, an engineer writes explicit, step-by-step instructions for the computer to follow. With machine learning, programmers don’t encode computers with instructions. They train them. If you want to teach a neural network to recognize a cat, for instance, you don’t tell it to look for whiskers, ears, fur, and eyes. You simply show it thousands and thousands of photos of cats, and eventually it works things out."
source
You're stuck talking about traditional programming. But that's not what's going on now; the leading edge is machine learning, machines programming themselves with code that not only wasn't written by the programmer but is often beyond his/her comprehension. In short, machines are being made to be like human beings, learning like human bengs and making choices like human beings.
And I didn't have to hunt for that quote; thousands of similar results popped up in a quick google search. Nor is it talking about research, it's talking about machines actually in use.
AI is with us now. If you're defining that term as from movies such as
Terminator, yes it's science fiction, but that's a tautology because you're pulling your definition from science fiction, not from what's actually going on in technology. In actual technology, there are robots who can be shown a picture and told "build this", and they assemble a blueprint, locate and organize the parts to fulfill the blueprint, distribute the necessary tasks among themselves, and complete the building all without anyone ever having written a single line of code for them saying how to do any of that. Those are actual machines; in terms of simulations we already have "machines" that choose their own tasks and complete them -- just as we do as living organisms.
We don't have Asimovian robots yet, but we're actually not all that far off in terms of self-motivation for machines; what is really lacking is self-awareness.