We might not even need libraries after all, since APIs, libraries and abstractions in general exist for humans to grasp complexities. Abstractions have their merits, but they have downsides too, and AI might be a way to solve them. The interesting part for me is where that ends, because it's systems all the way down, and even on a higher level abstractions exist to allow humans to make sense of the world. Services, products, companies, political parties, what if in the future we don't need any of it anymore because the abstraction is obsolete?
Libraries do a LOT more than that. Abstractions also make LLMs more efficient, and lets some problems be handed off to much cheaper algorithms. They also mean that the way data is handled can be standardized which means you don't have to design an entire protocol from scratch every time you want to send data somewhere.
Every advantage libraries have given us still exists in the world of AI.
They also help AI to manage complexity, in just the same way.
Indeed.
Perhaps we will go from:
framework X -> avoid writing boiler plate
to
AI -> avoid writing boiler plate
And AI may generate the more explicit boiler plate more reliably directly, than the higher level framrwork with leaky abstractions.
What about readability? Are people going to give up on reading and understanding the code? Maybe the abstractions aren't only necessary for writing the code?
Where we're going, we won't even need programming languages or libraries at all. AI's will just generate pure binaries full of magic, right? /s
The libraries are there for avoiding repetition. It is useful on its own without other benefits like implicit/explicit boundaries, readability by humans etc. If all lego(base unit software) pieces were unique shaped it might fit your requirements more efficiently but the cost of building those unique shaped legos explodes with the size of the lego piece required.
LLMs compress the known shapes well and fit them to solve for a problem but they are still not good enough to build from scratch a large new lego piece which fits a full problem perfectly. And such a large lego piece might not be the most efficient solution either and might be difficult to prove so.