It isn't brand spanking new, but I first learned about this stuff today.
Basically, as long as the program can prove that the change will be more useful than its current code, it will change itself to adapt.
A significant development for artificial intelligence researchers: to write a program that can not only learn, but also improve and adapt.
It's a difficult read, though.
http://www.fhi.ox.ac.uk/__data/assets/pdf_file/0014/16421/Ultimate_Cognition_a_la_Godel.pdf