News for hackers. Stuff that matters.
Re:Programming with Natural Language Is Going to Work (2010) by omginternets on Tuesday May 23, 2023 @07:24PM (#36052098)
Sure, if the natural language we're talking about is formalized to the point of basically being math. Let's not confuse that with "everyone will be able to program", though.
Re:Programming with Natural Language Is Going to Work (2010) by 6gvONxR4sf7o on Tuesday May 23, 2023 @07:37PM (#36052182)
I'd love if the ambiguities could be a dialogue of question/answer, rather than being fully specified ahead of time like we generally have programming today. It seems much more efficient.
Re:Programming with Natural Language Is Going to Work (2010) by dools on Tuesday May 23, 2023 @07:39PM (#36052202)
That's what programming with ChatGPT is like.
Re:Programming with Natural Language Is Going to Work (2010) by 6gvONxR4sf7o on Tuesday May 23, 2023 @07:41PM (#36052213)
Yep! And I'd bet that's a huge part of why it took off. An equally capable model with a "write a better prompt and try again" UX wouldn't be nearly as useful.
Re:Programming with Natural Language Is Going to Work (2010) by anothernewdude on Tuesday May 23, 2023 @07:56PM (#36052314)
A massive pain in the ass?
Re:Programming with Natural Language Is Going to Work (2010) by dools on Tuesday May 23, 2023 @11:47PM (#36053837)
Have you not spent much time working with ChatGPT? Or maybe you haven't upgraded to plus so you get GPT4? It's so fucking good. It's a bit like pair programming. Even though it can't always give you the result you want, it does so an appreciable percentage of the time and it's a fabulous way to think through problems, especially as a complement to the "google -> stackoverflow -> copy -> paste" style programming when you're trying things out or unsure of how to do something.
Re:Programming with Natural Language Is Going to Work (2010) by cookieperson on Wednesday May 24, 2023 @07:28AM (#36056523)
Do people actually do that much copy paste programming? People I work with are more inclined to read the docs and lean on intellisense. The people I've seen cling to chatgpt have been spending a lot of time forgetting LSPs exist and wondering why some hallucinated method doesn't exist... They also tend to think really long 1 liners are good code over explicit easy to read 3 liners...
Re:Programming with Natural Language Is Going to Work (2010) by dools on Saturday May 27, 2023 @01:30AM (#36092314)
> Do people actually do that much copy paste programming?

So much:

https://stackoverflow.blog/2021/12/30/how-often-do-people-ac...

Re:Programming with Natural Language Is Going to Work (2010) by cookieperson on Saturday May 27, 2023 @07:22AM (#36093797)
Yea but when you really look at the numbers most people are copy pasting git commands, npm package manager commands, warning suppression syntax, etc. That's not really programming and is a symptom that the tools people are using stink or that they don't use those features very often. Not to say there aren't millions of other copy pasted but most of the remaining ones seem to be about data science, which is again a good hint that an API is complicated, and the fallout there isn't too bad because as data scientists work they check their manipulations.
Re:Programming with Natural Language Is Going to Work (2010) by grt_thr on Tuesday May 23, 2023 @08:04PM (#36052355)
The ambiguity is exponential. I wish that the people hyping on llms read the older literature and sentence parsing.

The only reason why people are so impressed is that chatgpt sometimes gives better results than Google. Which just ought to tell you hiw bad google has gotten.

Re:Programming with Natural Language Is Going to Work (2010) by wolfgang42 on Tuesday May 23, 2023 @09:20PM (#36052870)
Well, programmers provide a natural language interface and somehow we usually manage the ambiguity and complexity OK.

In my experience, a lot of support requests for bespoke/in-house software go like this:

> User: Why is my wibble being quarked? This shouldn’t be happening!

> Dev: Wibble ID, please?

> User: ID 234567. This is terrible!

> Dev: [rummages in git blame] Well, this wibble is frobnicated, and three years ago [links to Slack thread] you said that all frobnicated wibbles should be automatically quarked.

> User: Yes, but that was before we automated the Acme account. We never frobnicate their wibbles!

> Dev: ...so, is there a way for me to tell if a client wants their wibbles unfrobnicated, or should I hard-code an exception for Acme?

(And then, six months later: “Why are none of Acme’s wibbles being frobnicated automatically?”)

If you could introduce an AI assistant that could answer these questions instantly (instead of starting with a support ticket), it’d cut the feedback loop from hours or days down to seconds, and the users (who are generally pretty smart in their field, even if my frustration is showing above) would have a much better resource for understanding the black box they’ve been given and why it works the way it does.

Re:Programming with Natural Language Is Going to Work (2010) by wolfgang42 on Wednesday May 24, 2023 @12:11AM (#36054001)
Oops, only now do I realize that should have been “we never quark their wibbles” and “a client wants their wibbles unquarked.” (Hopefully doesn’t make a difference to comprehension since they’re nonsense words anyway, but there you go.)
Re:Programming with Natural Language Is Going to Work (2010) by marcosdumay on Wednesday May 24, 2023 @12:38AM (#36054145)
> If you could introduce an AI assistant that could answer these questions instantly

If you have some change documentation so good that you are able to answer that kind of question for things that a previous developer changed, you may have a chance of making the computer answer it.

Personally, I have never seen the first part done.

Re:Programming with Natural Language Is Going to Work (2010) by wolfgang42 on Wednesday May 24, 2023 @01:09AM (#36054303)
Yes, obviously the computer can’t find answers that have been lost to the mists of time; pointing to a specific discussion is a best-case scenario, and relies on a good commit history.

But even just providing a brief explanation of the current code would be a great help (even if it gets confused and gives bad answers occasionally; so do I sometimes!); and even when the history is vague you can usually pull useful information like “this was last changed eight years ago, here’s a ticket number” or “it’s worked like this since the feature was added, I have no idea what they were thinking at the time” or “the change that caused this to start happening claims to be a refactor, but seems to have accidentally inverted a condition in the process”.

And in a magical world where the AI is handling this entire conversation automatically, it would naturally write a good commit message for itself, quoting the discussion with the relevant user, so it has something to point to when the topic comes up again. (And it’d be in all the Slack channels, so when someone mentions in #sales-na-east that Acme has asked about quarking services, it can drop into the conversation and point out that the Wibble Manager might need changing before that turns into an urgent change request because we’ve accidentally sent them a batch of unquarked wibbles. Well, one can dream, anyway.)

Re:Programming with Natural Language Is Going to Work (2010) by qumpis on Tuesday May 23, 2023 @09:39PM (#36053022)
There's no need to detail how individual bricks of a house will be laid out when discussing the overall plan of it. Current LLMs, from my experience, don't branch out too well when facing ambiguity, but rather pick the most likely answer consistent with the history. But it's imaginable that these concerns will be addressed once systems start maximizing the returns over whole conversations and not just individual interactions.
Re:Programming with Natural Language Is Going to Work (2010) by grt_thr on Tuesday May 23, 2023 @10:32PM (#36053405)
> But it's imaginable that these concerns

It's also imaginable that we can build an engine that runs on entropy. Doesn't mean it's possible.

Re:Programming with Natural Language Is Going to Work (2010) by Paul-Craft on Tuesday May 23, 2023 @10:52PM (#36053506)
Yeah. I actually mis-parsed the headline myself, before noting the date. I was thinking "is going to work" meant it would be happening in more and more workplaces.
Re:Programming with Natural Language Is Going to Work (2010) by 6gvONxR4sf7o on Tuesday May 23, 2023 @11:10PM (#36053620)
But that's exactly the point. The game of 20 questions is exponential as well. To uniquely identify a thing, the more specific you go, the level of precision needed to be unambiguous blows up. However, as a dialogue, you don't have to fully spec out every branch of the tree ahead of time. They ask a yes or no question and the ambiguity decreases exponentially for every question asked.

By having a dialogue, you can resolve only the ambiguities pertinent to the specific question at hand.

Re:Programming with Natural Language Is Going to Work (2010) by cookieperson on Wednesday May 24, 2023 @07:24AM (#36056491)
Google search has eroded a lot over the years. I think some of that is scale, but also adversarial SEO listings, etc. The biggest jump in its degregation Ive noticed happened around the time chatgpt launched after it's beta. Now every major search engine has an LLM product... Has had me wondering...
Re:Programming with Natural Language Is Going to Work (2010) by quickthrower2 on Wednesday May 24, 2023 @07:01AM (#36056305)
Sounds like agile (small a) as opposed to waterfall.
Re:Programming with Natural Language Is Going to Work (2010) by shrimp_emoji on Tuesday May 23, 2023 @07:38PM (#36052200)
Isn't ChatGPT (or some now not that far fetched futuristic version that's superior) a 5GL? You ask it for a program in English, and it codes it for you. You've just coded in natural language.
Re:Programming with Natural Language Is Going to Work (2010) by takeda on Tuesday May 23, 2023 @07:42PM (#36052217)
I would love to see somebody writing a compiler that way.
Re:Programming with Natural Language Is Going to Work (2010) by n8cpdx on Tuesday May 23, 2023 @07:46PM (#36052241)
Re:Programming with Natural Language Is Going to Work (2010) by ilaksh on Tuesday May 23, 2023 @10:07PM (#36053224)
The original version of my site aidev.codes was a bit like that. The concept was to keep refining the spec and each time it would regenerate starting with whatever section had been modified. There was even a way to clone an "app spec" like with Codepens.

People generally didn't seem very interested. Also the bigger problem was that the gpt-3.5 models really wouldn't return the same thing consistently so a minor change could throw other things off.

Also a conversation feels like a much more intuitive way of doing it. So I switched to that.

Re:Programming with Natural Language Is Going to Work (2010) by goatlover on Tuesday May 23, 2023 @07:49PM (#36052259)
You still have to make sure the code runs correctly and incorporate it into the rest of the code base. You also need to have some idea of what sort of code you're asking for, particularly if it has to fit with existing code.
Re:Programming with Natural Language Is Going to Work (2010) by captnObvious on Tuesday May 23, 2023 @08:41PM (#36052589)
Check out chatgpt code interpreter. One step down…
Re:Programming with Natural Language Is Going to Work (2010) by quickthrower2 on Wednesday May 24, 2023 @07:03AM (#36056317)
It can do that if constrained. There was a show HN of an app generation tool that was quite impressive: perhaps because it only created web apps and didn’t worry about stylistic design.
Re:Programming with Natural Language Is Going to Work (2010) by bee_rider on Tuesday May 23, 2023 @08:21PM (#36052472)
I guess this will open up programming to anyone who can handle the math required to describe the behavior of a program. Unfortunately it is not even clear to me that this population is anywhere near as large as the existing population of programmers.
Re:Programming with Natural Language Is Going to Work (2010) by speed_spread on Tuesday May 23, 2023 @08:26PM (#36052498)
It'll be the same way everybody can program with Excel right now. Things will work fine, until they don't anymore, at which point a professional will be brought in to help fix "the bug". Obviously, that bug will the obvious result of the whole thing being a horrible mess and will be unfixable without a proper rewrite.

_Maybe_ the AI will be able to help with the rewrite, generating test cases and translating business logic, which would be nice.

Re:Programming with Natural Language Is Going to Work (2010) by qumpis on Tuesday May 23, 2023 @09:34PM (#36052978)
I think many people give up too quickly (as could perceived by those professionals who had to put sweat when learning how to put things back when they break). But a capable language model might serve as a debugger: "you're stuck? About to call a professional? No worries, explain to me what you see and let me ask you questions in order to find a fix together"
Re:Programming with Natural Language Is Going to Work (2010) by noisy_boy on Tuesday May 23, 2023 @10:00PM (#36053182)
I think it'll evolve into the AI Assistant being an always-on/always-available app/service/client (ala Siri/Alexa) coupled with a much more powerful online service. Advantage is that once the client is installed, it has access to practically everything the user is doing (which is what the tech companies dream of) and can actually ingest the inputs without the user having to summarize/translate into a text box (problem with Excel? AI assistant can read the excel sheet that has the issue so you can just ask questions).

I also think that the main two reasons behind Alexa/Siri not seeing very high adoption rates are misinterpretation of the voice commands + quality of results. With LLMs, at least the first issue should improve dramatically and if the popularity of ChatGPT is anything to go by, the second issue should also see improvements.

Re:Programming with Natural Language Is Going to Work (2010) by cableshaft on Tuesday May 23, 2023 @10:31PM (#36053402)
I'd much rather program with the help of ChatGPT 4, as it is right now, over programming with Excel (I've done both). And at least on a smaller scale, the code generated by ChatGPT hasn't been a mess at all.

Sometimes it's incorrect or insufficient and it can't handle the more complex solution I'm asking of it, but the code isn't messy and doesn't require me to rewrite it from scratch, just fix what's incorrect.

Re:Programming with Natural Language Is Going to Work (2010) by geysersam on Tuesday May 23, 2023 @09:08PM (#36052783)
I don't see why you need a language "formalized to the point of math" to instruct a computer to follow simple instructions (Write a crud API for this and this, it should have these endpoints etc.)

Of course there will be ambiguity, but you could say anything higher level than assembly is also ambiguous, but that's not usually a problem.

I think it's reasonable to expect that more people will be able to program if this becomes reality. Just as going from assembly to c allowed more people to program.

Re:Programming with Natural Language Is Going to Work (2010) by cableshaft on Tuesday May 23, 2023 @10:37PM (#36053430)
Eh, I was using it to help generate animated backgrounds with various custom geometry and animations tonight for a game of mine, and it performed admirably but it was struggling a bit.

I wouldn't mind if it had a bit more formalization to the point of math to it for those bits. Was still good enough that I got some usable options from it, though.