Computers already know how to program themselves. The stronger and faster a computer is, the more bloated its code can afford to be. You'll never get a computer writing efficient code. The problem is whether or not you are going to have a domestic market for writing code, the same way we no longer have a domestic market doing industrial manufacturing. We already see a good portion of code being locally handled by cheaper, imported programmers, or outsourced wholesale to a foreign country.