Makes me wonder if AI can take something from the top layer, go through the entire stack, and compile something in machine code directly, all statically linked, with bounds checking. Basically a next-gen transpiler/compiler.
Could a commercial AI do that? Yes. Will it? No. Follow the money. Firstly RAM is free, because the customer pays for their hardware, not the app creator. Secondly the driver behind AI coding is not to make things better, it is make thing cheaper by making them faster, quality is not a requirement.
There are two exceptions to this. Firstly the AI providers internal programs. Training an AI is resource heavy so you can be sure they have optimised that as much as possible, to save their own money. Secondly open source, where the driver is functionality, not profit. First we need to see the AI hype bubble burst and AI to settle down in to being an evolving tool. Then maybe what you are thinking could happen.
Dennis Ritchie is twice as bright as Steve Jobs, and only half wrong. -- Jim Gettys