I want to see GPT-4 dealing with this situation: - they: we need a new basic POST endpoint - us: cool, what does the api contract look like? URL? Query params? Payload? Response? Status code? - they: Not sure. Third-party company XXQ will let you know the details. They will be the ones calling this new endpoint. But in essence it should be very simple: just grab whatever they pass and save it in our db - us: ok, cool…
Testing GPT 4's code-writing capabilities with some real world problems
461–470 of 677 posts
Re: Testing GPT 4's code-writing capabilities with some real world problems
#462I guess my genuine question is to the people who are saying this is a big deal and it will take our jobs. I am a bit lucky to where at the moment I am working in a "novel" field. Lets say though for the sake of argument that AI does come for SWE jobs. To be honest? I don't know what to do in that case, I have no backup plan, not enough to retire. The country I've lived in for 9 years is still through a work visa (hop…
Check out my comments higher up in the thread (eg https://news.ycombinator.com/item?id=35197613 ), I really do believe that GPT4+ will be primarily useful as augmenters for capable and dedicated engineers, rather than replacements. It's like a very eager and brilliant junior dev that can solve many problems that you throw at it, but still needs hand-holding, error-checking, and someone who knows how to piece the actu…
Re: Testing GPT 4's code-writing capabilities with some real world problems
#463Re: Testing GPT 4's code-writing capabilities with some real world problems
#464Watching GPT write code hurts my brain. It starts at the first character, works forward one “token” at a time, and ends at the last character. Never moving back. It feels like it knows where it’s going at the first character, even though it doesn’t. It’s like it starts speaking a sentence and, by the time it’s done speaking, it’s written a syntactically correct Node.js application. The way GPT communicates in English…
If it's possible to get so far when that functionality seems in an important sense basically missing, imagine how far it'll go when that does happen.
Re: Testing GPT 4's code-writing capabilities with some real world problems
#465Earlier quoted context omitted.
Being that you and I are talking to each other by forming thoughts in meat that us causing other meat to move around tells me that digital thought still has a lot of scaling room ahead of it. Maybe superintelligence isn't possible for some reason, but the fact we exist should tell you that general intelligence is not magic.
Your brain is analog. Trying to emulate this with a digital computer is bound to come with some computational cost.
Re: Testing GPT 4's code-writing capabilities with some real world problems
#466Earlier quoted context omitted.
5X is a gigantic underestimate of how much developer time has improved. How long would it take a good assembly programmer to implement a CRUD web server connected to a database? Way more than 5x longer what a mediocre Python programmer would need.
an assembly programmer wouldn't write a web server connected to a database, they would implement a tui over tty, and it would be faster.
Re: Testing GPT 4's code-writing capabilities with some real world problems
#467It requires special tools to actually figure out if this is happening. Having seen tests with such tools the problem seems a lot worse than commonly discussed.
Inserting stolen code or using OSS code in violation of licenses is going to be a big mess. Copying snippets versus pulling in dependencies creates tons of issues. Even if you get away with violating licenses you set yourself up for security issues if the tools plagiarize code with vulnerabilities in a way that won’t get updated.
It might mean this stuff is a useful tool for someone with a clue but not for someone who doesn’t know what they’re doing.
Re: Testing GPT 4's code-writing capabilities with some real world problems
#468Earlier quoted context omitted.
They went from 4K to 32k in a few months. Wait a few years.
Few years, yes. I’m with you “the change is coming” but we still need to transfer millions of tokens in and out to cater for context and out of repo intricacies.
Re: Testing GPT 4's code-writing capabilities with some real world problems
#469Anyway, I initially had it write it in Python, and it mostly worked, but I was having some issues getting the data exactly right, and formatted the way I wanted.
Once I had it more / less right in Python, I had it rewrite it as a dotnet console app (C#), which is what I know best.
The only real issue I ran into is it would randomly stop before completing the conversion to dotnet. Like it would write 85% then just stop in the middle of a helper function. Not a huge deal, I just had it complete the last function, and with a little bit of fiddling in VS Code got it running pretty much the way I wanted.
So overall, yeah, not bad. Probably saved me an hour or so, plus I couldn't find great docs for the NHL endpoint, and ChatGPT was able to sus out the correct syntax to get to the data I needed.
I wonder how git Copilot compares, has anyone tried out both?
Re: Testing GPT 4's code-writing capabilities with some real world problems
#470I decided to try out CodeGPT.nvim, and it was a massive help. It didn't provide perfect code, not by a long shot, but it gave me extremely valuable starting points - and did a somewhat decent job of exercising most of the branches (certainly enough for me to be happy): https://gitlab.com/jcdickinson/moded/-/blob/main/crates/term...
Many people have said it, and it's true. Expecting GPT to write a complete solution is just asking for problems, but it is an incredible assistant.