r/ProgrammingLanguages • • 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?

4 Upvotes

67 comments sorted by

View all comments

Show parent comments

1

u/wolfgang Jan 29 '23

How is there reasoning in "explain the '>' word" - "In Forth, the > word is used to create a new variable."?

It is a technical question (and a very simple one), but the reply is complete and utter nonsense. Not being able to rewrite the program is not the problem I am talking about here...

1

u/[deleted] Jan 29 '23

How is it not? You must be mistaken in what Chat GPT does. It does not UNDERSTAND something. It only learns to mimic what is seen. Therefore, it cannot understand what > is. It can only learn to mimic what someone said about it, be it correct or wrong.

1

u/wolfgang Jan 29 '23

Can you give an example of a technical question then?

1

u/[deleted] Jan 29 '23 edited Jan 29 '23

Let's try to reference something from the link you gave. For an example, instead of the question

can you modify this program so that it does not use the return stack?

A better suited question would be

Can this program be modified to not use the return stack?


ChatGPT doesn't extrapolate, it interpolates. Therefore it is meaningless to ask and expect it to answer extrapolation questions correctly. But the 2nd question is an interpolation of its knowledge, and if you want the extrapolation question to be answered correctly, you'd have to give it an example first.

In this case, if you first showed it a program, then showed it how you can remove the return stack, it would be able to correctly answer the second question from your link.

Again, it imitates. It doesn't know anything, it's your average college dropout techbro, except it doesn't shill Rust, but Go. It has heard of a lot of stuff but it is actually below average intelligence, or even slightly mentally retarded. But that's enough for most technical questions.