Live data from Hacker News

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

twitter.com

21–30 of 31 posts

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

#22

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.

I'd like to see this done with tests as the input, and the working app as the output. Then writing an app would be as simple as defining the tests it must pass.

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

#23

Earlier quoted context omitted.

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…

Totally agree with you! I'm definitely not arguing that GPT-3 is necessarily the foundation; I'm arguing that it's part of the research process by which we build the foundation.

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

#24

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.

The prompt contained a few react examples with annotated English descriptions that were similar enough. You’re not seeing the entire prompt and as impressive as this is, it’s likely that you’d end up writing more code trying to get it to do what you want than if you just wrote it yourself. Future GPTs may of course be better, but there’s a bit of “magic” to these demos that the author isn’t super upfront about.

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

#25
post #2

Fun gimmick, but nothing more.

It looks like a gimmick but it certainly is not. This is a highly underrated demo.

GPT3 incorporated into IDEs can provide a productivity boost. Imagine this coupled with a testing framework. I would not trust a GPT3 produced code base, after it does not "understand" what it is doing but if it passes all tests, I might be able to. Would you?

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

#26
This will work really really well for schema design and generation. A very structured problem with a reasonably small set of good solutions. This is something that you can already do with schema design tools - where you draw a schema and it produces it. But imagine doing it through a textual description sounds even more impressive especially if it can auto-magically fill in all the fields I might possibly need. Again, these are not seismic game changers but productivity enhancers.

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

#27

Earlier quoted context omitted.

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…

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.

This is perfectly fine. In fact it's the only way forward currently. Unless you have some alternative which is more promising? GPT models are like large convolutional networks in 2012 - they were so much better than all existing CV approaches at the time that it didn't make any sense to keep working on those other approaches.

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

#28

Earlier quoted context omitted.

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.

we just need an adversarial network to generate unit tests

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

#29

Earlier quoted context omitted.

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

I'd like to see this done with tests as the input, and the working app as the output. Then writing an app would be as simple as defining the tests it must pass.

> Then writing an app would be as simple as defining the tests it must pass

In most cases, if you can define the tests, you have already figured out 80% of the solution.

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

#30
I've seen numerous tweets from this guy and they frankly annoy me. If u are about to bring down the hammer on my career, using btw exclusive access to an API that you have through connections, then just do it already. Stop with this teasing videos bullshit that we've seen many times.. as if you were stirring up a frenzy at a games con with demo reels. Show me the money or take your smug twitter Avatar profile and gtfo
Post reply on HN