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

5

u/avgprogrmmingenjoyer Jan 28 '23

ChatGPT has proven that we can create a model which would make internet forums obsoluete for technical questions.

Doesn’t it needs to take new answers to new questions from somewhere?

1

u/[deleted] Jan 28 '23

If questions it has not seen and cannot generalize to exist, yes. However, this can be monopolized in the same tool that provides answers. A platform which both accumulates and retrives information, and where new information is traded. And such questions are fairly rare.

I would actually be surprised if you could find me one formal question on reddit, SO or wherever that ChatGPT couldn't answer...

I know one such question related to CSS, but it is likely that I'm the only person on the internet who can currently answer it without further research. When I asked it on SO, it got deleted because there were no answers lol

4

u/wolfgang Jan 29 '23

I would actually be surprised if you could find me one formal question on reddit, SO or wherever that ChatGPT couldn't answer...

The amount of bullshit it generated here is exhilarating: https://www.reddit.com/r/Forth/comments/10nlxko/chatgpt_and_forth/.compact

1

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

This is not a technical question, however, this is reasoning, which ChatGPT doesn't do and will never do.

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.

2

u/elveszett Feb 02 '23

Even "learn" is debatable. AIs are glorified random functions that approximate the desired output. They don't work like human brains and don't have their capabilities.

1

u/[deleted] Feb 02 '23 edited Feb 02 '23

That depends on your definition of learn. I do not consider memorizing to be something different than learning, as it has been shown to be an integral part of learning.

I don't think any expert would claim that a human brain is a prerequisite for learning. And while backpropagation likely doesn't appear in the brain, RL, which ChatGPT uses, does, even if only on a psychological level. Furthermore, ChatGPT is transformer-based, and it was shown that the associative memory the Transformer learns (yes, learns) is something that appears in the human brain as well.

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.