Re:Tell HN: A new way to use GPT-3 to generate code (and eve...
by TakeBlaster16 on Saturday August 20, 2022 @01:12PM
(#32533598)
I had no idea GPT-3 could write code! It seems to do pretty well even with a one-sentence prompt:
---
EDIT: It even does Rust, I'm blown away! (I'll forgive the compile error, it's close enough)
[ Parent
| on HN ]
Re:Tell HN: A new way to use GPT-3 to generate code (and eve...
by goodside on Saturday August 20, 2022 @01:19PM
(#32533650)
In general, anything that has a “textbook” solution is easy. What it’s doing here is more recitation than synthesis. Where it becomes harder, and where my method is necessary, is when you need to specify the structure of the solution yourself because the model can’t get there on its own.
Re:Tell HN: A new way to use GPT-3 to generate code (and eve...
by lossolo on Sunday August 21, 2022 @11:57AM
(#32541405)
Exactly, that's why GPT3 generated things that were not included in task description in C++ example like reading the numbers first and then printing them. Same thing in Rust, here vectors are static, while in C++ you were asked. All because of examples on which the model was trained.
Re:Tell HN: A new way to use GPT-3 to generate code (and eve...
by b20000 on Saturday August 20, 2022 @06:38PM
(#32535772)
the reason it does well is because you gave it a question that might come up in coding interviews.
Re:Tell HN: A new way to use GPT-3 to generate code (and eve...
by michannne on Saturday August 20, 2022 @06:51PM
(#32535858)
I think that's amazing on its own. Rather than having to do a leetcode hard on the fly, you can just ask for the solution. You'll still need to know the problem space in order to properly optimize it, but it can save a lot of time.