Hacker News new | ask | show | jobs
by ChrisMarshallNY 1134 days ago
Yesterday, I had a sticky Swift/iOS issue.

Checked SO, Apple Discussions, etc. Then, on a whim, I asked ChatGPT for a suggestion.

> They are also prone to confident assertions of statements that are blatantly false.

It suggested something that referenced a nonexistent property of a standard UIKit class. It wouldn't even compile.

It was quite positive that this would fix my issue.

After refreshing a couple of times (and also mentioning the first one sucked), it finally gave me something that still didn't work, but gave me an avenue that I could explore, and that finally yielded the solution.

I suspect that the reason for the confident assertion that included an illegal property, was because it was trained on Swift code that was extended (I do that a lot, myself. In fact, I ended up creating my own extension that added the nonexistent property).

Modern programming languages allow you to extend even language primitive types, and JavaScript has allowed that kind of thing for many years.

It may be a while before we can entirely trust ChatGPT to give us all the answers.

To be fair, however, it did help me to land upon the correct solution, but I still had to fire up some candlepower of my own.

3 comments

It may be a while before we can entirely trust ChatGPT to give us all the answers.

I find the whole premise of ChatGPT -- or indeed, neural network systems in general -- to be untrustworthy. That does not mean useless! But more like a first approximation solution that still needs to be checked.

I expect that, with more and more training, GPT systems will make fewer and fewer errors, but I still find the fundamental concept something that needs to be double-checked through some other (possibly automated) means.

That's basically the boat I'm in. I really like it, it's a good bit of software, but it's like having an error-prone person to bounce ideas off of.

It doesn't always directly give me an answer I can use, but it's extraordinarily handy to be able to copypaste a large server log into it, ask what it means, and give suggestions based on that. Often just knowing the proper-nouns to look up can be immensely useful.

GPT4 is significantly better at code fyi, not sure if you used default ChatGPT (which is 3.5turbo). Premium ChatGPT gives you access to GPT4, but the API gives you even more access with the ability to edit the "system" prompt which Sam Altman's said is very important and which I can attest to from my testing.
I did and do try it with GPT4 and the API and a custom prompt to help me in rust.

Expecting only knowledge from 2021 it is hit and miss. Helped me to write some scripts but still fails to recognize tasks that are not possible in the language and halluciantes a plausible solution.

It tends to suggest non non compiling and (after being asked to do so) "corrects" bugs (some real some imaginary) and sometimes gets stuck.

Helpful yes, but not yet the invincible overlord some people imagine it to be.

There’s also the code interpreter functionality that’s in alpha access. Not everyone has access to it but it allows you to upload spreadsheets, code files, etc and then uses gpt4 to try and interpret and fix the code.