Re:TIL you can de-obfuscate code with ChatGPT
by aliqot on Tuesday January 24, 2023 @10:03AM
(#34504404)
I've had a few instances where it returned bad code or was unable to solve a challenge, however most were fixed by better prompts, or by clarifying prompts. In a way I think there is a two-way "learning" process going on here. I'm training it how to give me what I ask for, and it trains me how to ask for what I want it to give me.
Re:TIL you can de-obfuscate code with ChatGPT
by macNchz on Tuesday January 24, 2023 @10:34AM
(#34504842)
The tricky bit IMO is when you’re at the threshold of being able to identify errors it makes. I tested some situations a while ago where I asked for some physics calculations functions. I’m an experienced programmer but haven’t really done anything with physics since high school 20 years ago. The code returned looked plausible and would run, but going through it line by line and looking up the real formulas it turned out to be super wrong.
Re:TIL you can de-obfuscate code with ChatGPT
by alexandrius on Tuesday January 24, 2023 @10:58AM
(#34505227)
Right? Devs are so butthurt that, are dismissing this all together. It’s called denial.
Re:TIL you can de-obfuscate code with ChatGPT
by dsabanin on Tuesday January 24, 2023 @11:32AM
(#34505891)
Did you actually ever receive 100% factually correct answers from anything before for anything other than strictly mathematical statements?
Regardless, I find it silly to focus on the small flaws when we're witnessing a foundational shift in what kind of problems we can solve.
Re:TIL you can de-obfuscate code with ChatGPT
by nprateem on Tuesday January 24, 2023 @04:31PM
(#34510738)
But they're not small flaws if you're relying on it to eg replace a person's job.
If i ask it for the dimensions of a product and it gives the wrong figures it should just tell me it doesn't know instead of inventing something.
That's the problem. It doesn't tell you when something is wrong so you can never trust if it's right unless you happen to know the field. That makes it far less useful.
Just be happy with plausible sounding answers people. Sheesh!