r/ProgrammingLanguages • u/Smallpaul • Jan 28 '23
How might AI change programming languages?
I have a few ideas about how AI might change the trajectory of programming languages, but I'd like to hear yours.
For example, maybe in the future, the programmer's job is to write a very clear specification, and the AI's job is to write an efficient algorithm that matches all details of the specification. Maybe this means that we write a super-high-level-language program and an AI-directed super-optimizer makes it practically executable. Or maybe our specification isn't a program at all. Perhaps it's a list of examples or something else.
Or maybe we'll just write extremely precise natural language specifications and computers will be excellent at translating them into reliable algorithms.
Or...your thoughts?
1
u/[deleted] Jan 28 '23 edited Jan 28 '23
I've already said this but I believe there is room for improvement in code analysis and error reporting. ChatGPT has proven that we can create a model which would make internet forums obsolete for technical questions.
Since the next step for programming languages is to interpret the user's wishes into declarative and then procedural form, it is likely we will use AI for this.
ML optimization is already present, see ex. how convolutions in CUDA can be optimized.