Live data from Hacker News

GPT-3 can generate a React app from natural language description

twitter.com

11–20 of 31 posts

Re: GPT-3 can generate a React app from natural language description

#11
Soon machines will steal all the copy-pasting from Stackoverflow jobs.

But really, this is super impressive for ML. It's not software development, though. It's analyzing a corpus and performing a search.

The nasty bit is that if that is all it takes to do most software dev jobs, and hey, we might find that most software dev really is just pattern matching and regurgitating those patterns—as the project gets more complex, the specifications will have to be more complex and we'll end up mostly back where we started.

Re: GPT-3 can generate a React app from natural language description

#12

I don't really understand. How is GPT-3 able to do this? Understanding English is one thing, but how did it learn JavaScript, HTML, CSS, and the React framework?

Apparently it was trained over GitHub repositories. https://youtu.be/fZSFNUT6iY8

What I'm wondering is how it matched up the natural english description with the repository content though.

Re: GPT-3 can generate a React app from natural language description

#13
post #2

Fun gimmick, but nothing more.

This comment seems short-sighted. Code that can generate a working set of interlinked page elements from natural English? How on earth is that a gimmick? This is incredible. This is the Pong to the Crysis of 25 years from now, when we can describe entire applications into existence. I can't fathom the mindset that dismisses this as a gimmick. Is the first step on every journey meaningless? And this isn't even the fir…

It's only a tiny step above searching Github and copy-pasting.

Searching and copy-pasting isn't the hard part of software development. Guaranteeing validity, safety and performance is the hard part.

This doesn't get us any closer to the goal. (In fact it's the opposite, a big step back.)

Re: GPT-3 can generate a React app from natural language description

#14

Earlier quoted context omitted.

Apparently it was trained over GitHub repositories. https://youtu.be/fZSFNUT6iY8

What I'm wondering is how it matched up the natural english description with the repository content though.

Probably through tutorials and verbosely-commented code examples?

Re: GPT-3 can generate a React app from natural language description

#15
post #2

Fun gimmick, but nothing more.

This comment seems short-sighted. Code that can generate a working set of interlinked page elements from natural English? How on earth is that a gimmick? This is incredible. This is the Pong to the Crysis of 25 years from now, when we can describe entire applications into existence. I can't fathom the mindset that dismisses this as a gimmick. Is the first step on every journey meaningless? And this isn't even the fir…

[deleted]

Re: GPT-3 can generate a React app from natural language description

#16
post #8

Earlier quoted context omitted.

For now... :)

I did not see your comment was a reply on another comment, and thought it referred to the post title. :-D

That could very well be the reality. Everyday more people are training this thing on god knows what tasks.

Re: GPT-3 can generate a React app from natural language description

#17

Earlier quoted context omitted.

This comment seems short-sighted. Code that can generate a working set of interlinked page elements from natural English? How on earth is that a gimmick? This is incredible. This is the Pong to the Crysis of 25 years from now, when we can describe entire applications into existence. I can't fathom the mindset that dismisses this as a gimmick. Is the first step on every journey meaningless? And this isn't even the fir…

It's only a tiny step above searching Github and copy-pasting. Searching and copy-pasting isn't the hard part of software development. Guaranteeing validity, safety and performance is the hard part. This doesn't get us any closer to the goal. (In fact it's the opposite, a big step back.)

This is something nobody's ever done before, and which nobody could have done before. How can you dismiss it so easily? If this is a step back, what does a step forward even look like?

Generating code with guaranteed validity, safety, and performance are worthy goals, but how can you work on them without having an AI that can generate any code in the first place?

I'm just endlessly confused by this mindset. If you wanted a palace and someone built you the foundation, would you deride it as being nothing like a palace and in fact a step AWAY from a palace?

Re: GPT-3 can generate a React app from natural language description

#18
post #11

Soon machines will steal all the copy-pasting from Stackoverflow jobs. But really, this is super impressive for ML. It's not software development, though. It's analyzing a corpus and performing a search. The nasty bit is that if that is all it takes to do most software dev jobs, and hey, we might find that most software dev really is just pattern matching and regurgitating those patterns—as the project gets more comp…

this is great for all the people who hate gluing together boilerplater and pipes. in my opinion, the hardest part of development is the "natural language description". gathering requirements, making sure everyone is on the same page with what is being requested, etc. if we're able to quickly generate prototypes from that language that greatly reduces the cycle time from ideation to prototype. what I forsee is that companies will need less developers overall, but more companies will bring in technical talent they wouldn't have otherwise, knowing it's that much easier to get working code

Re: GPT-3 can generate a React app from natural language description

#19
post #11

Soon machines will steal all the copy-pasting from Stackoverflow jobs. But really, this is super impressive for ML. It's not software development, though. It's analyzing a corpus and performing a search. The nasty bit is that if that is all it takes to do most software dev jobs, and hey, we might find that most software dev really is just pattern matching and regurgitating those patterns—as the project gets more comp…

this is great for all the people who hate gluing together boilerplater and pipes. in my opinion, the hardest part of development is the "natural language description". gathering requirements, making sure everyone is on the same page with what is being requested, etc. if we're able to quickly generate prototypes from that language that greatly reduces the cycle time from ideation to prototype. what I forsee is that co…

The trick will be whether the code generation works well enough most of the time, but if it generates some 1% weirdness that becomes a needle in the haystack. It seems to be it will be great for product manager/business person prototypes and potentially helpful for "hyper auto-complete" for a developer, but likely not for automating mission critical code.

Re: GPT-3 can generate a React app from natural language description

#20

Earlier quoted context omitted.

It's only a tiny step above searching Github and copy-pasting. Searching and copy-pasting isn't the hard part of software development. Guaranteeing validity, safety and performance is the hard part. This doesn't get us any closer to the goal. (In fact it's the opposite, a big step back.)

This is something nobody's ever done before, and which nobody could have done before. How can you dismiss it so easily? If this is a step back, what does a step forward even look like? Generating code with guaranteed validity, safety, and performance are worthy goals, but how can you work on them without having an AI that can generate any code in the first place? I'm just endlessly confused by this mindset. If you wa…

> If you wanted a palace and someone built you the foundation, would you deride it as being nothing like a palace and in fact a step AWAY from a palace?

Depends on whether it's actually possible to build a palace on top of the foundation. If I know the foundation is going to crumble under the extra weight of the walls, then yes, it's a step backwards.

This is a fantastic achievement, and I think people who are saying it's nothing new are kind of being obstinate. But there is real debate over whether GPT is a foundation we can build on.

It's not as simple as just saying, "generate the code, and then we'll come up with ways to make sure the code is correct." Fundamentally, that might require us to generate the code differently than GPT does. GPT's foundation might crumble under the weight when we try to put walls on top of it.

This is particularly worrisome with GPT because it's still a very active area of research, so we don't know for sure that GPT's weaknesses aren't intrinsic to its design. We could end up devoting a ton of time to pushing GPT to its limits only to find out that the entire process has to be scrapped and that we'll need to start over from the beginning.

I think people have a tendency to see something new and either only see the capabilities or only see the weaknesses. There's been some really startlingly impressive things coming out of GPT-3, in particular the 'infinite' text adventure someone posted a while ago. But all of those projects have also had substantial weaknesses, and the weaknesses are forming a pattern across all of the projects. There are certain tendencies that GPT seems to universally have around recycling content, going off on weird asides -- stuff that should have proponents at least slightly worried, even while they rightly praise its advances.

Post reply on HN