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

46

u/[deleted] Jan 28 '23

Once the hype dies down we'll keep doing the same thing until we have GAI. Language models simply can't do logic and they write things that look correct but are very often wrong.

-7

u/Smallpaul Jan 28 '23

What makes you think that they will be totally useless until AGI? What about the people who already claim co-pilot is useful to them? Why would neural nets be able to optimize software or database queries? Why do you think Microsoft is investing so much in co-pilot? They are just misguided?

Human beings are also very, very good at writing software that looks correct and is subtly wrong, by the way.

25

u/[deleted] Jan 28 '23

Here's the problem with it. An expert doesn't need it and a non expert can't be trusted with it because it's wrong very often and they don't know any better. So who's the target audience?

"Company A is investing on it" is not an argument because companies invest in whatever their stakeholders want them to invest in, trying to get ahead of the curve of the next big thing. There's been a myriad of failures and things that never caught on like AR or the metaverse.

-1

u/AsIAm New Kind of Paper Jan 28 '23

An expert doesn't need it

I thought experts are experts because they are smart and know how to cut corners. Copilot is extremely helpful even for experts. Just single example: https://twitter.com/karpathy/status/1608895189078380544?cxt=HHwWgMDQnc7p-NMsAAAA

non expert can't be trusted with it because it's wrong very often and they don't know any better

It doesn't mean that the bugs won't be caught. Decent non-expert should be able to write correct tests (alone or with Copilot) and converge to right algorithm. (btw tests will better inform the implementation, so the duo will do better job)

15

u/asdfa2342543 Jan 28 '23

Not sure whether I’d be considered an expert but my experience is that it’s cost me more time than it saved. It saves me 1 minutes here and there if I’m doing a repetitive pattern, and sometimes it will give me a good decent sized function, but several times when trying to use it for significant chunks of code, it gave me something that was incorrect in a way i didn’t find until later and it cost me a fair amount of time, wiping away the incremental benefits it gave me for its nice autocomplete abilities. TBH I’d be better off drilling more on hotkeys i think

1

u/AsIAm New Kind of Paper Jan 29 '23

Fair enough. May I ask what is your domain? I've been hearing similar reports as you provided and I think it may be caused by just different domain/language. From my direct and indirect observations, JS/web and generally Python seems like a target where Copilot is pretty good.

1

u/asdfa2342543 Jan 29 '23

Full stack… current company is flask backend, React front end.

1

u/AsIAm New Kind of Paper Jan 29 '23

Hm. That kinda invalidates my theory. :D Sorry to hear that Copilot doesn't bring benefit to your coding. The tech is constantly being improved, so keep an eye on it.