News for hackers. Stuff that matters.
Re:ChatGDB, the GPT-Powered GDB Assistant by agentwiggles on Friday April 07, 2023 @04:40PM (#35486702)
Haha, that is really cool. However this is one of those things where I have no idea how to tell if ChatGPT is bullshitting me because I don't know how to GDB on my own.
Re:ChatGDB, the GPT-Powered GDB Assistant by furyofantares on Friday April 07, 2023 @05:36PM (#35487300)
It's also the type of thing where it's extremely unlikely to bullshit.

And ALSO the type of thing where I think you can work out if it's bullshitting you on your own; if it works, it's not bullshitting.

Re:ChatGDB, the GPT-Powered GDB Assistant by majormajor on Friday April 07, 2023 @07:18PM (#35488366)
With technical things "bullshitting" is less of a problem than "wrong version" type of stuff, IME.

GDB... probably a slowly enough moving target, though. ;)

And even on the things I've seen it get wrong, even in higher-churn areas like front-end-Javascript, it's usually "usefully wrong" in that now I've tried one more thing and often end up aware of several more things to look up to try to figure out the right one.

Re:ChatGDB, the GPT-Powered GDB Assistant by teaearlgraycold on Friday April 07, 2023 @07:42PM (#35488628)
That's why LLMs are best suited to programming. You know pretty quickly if it's lied to you.
Re:ChatGDB, the GPT-Powered GDB Assistant by krupan on Friday April 07, 2023 @07:50PM (#35488705)
I’m sorry, but these arguments are terrible. I see them boiling down to this:

“Use GPT to do this thing!”

“But GPT is notorious for confidently getting things wrong”

“That’s ok! Because you’ll know it’s wrong!”

Maybe I’m a little sore right now because I literally just finished trying to have GPT write code for me and it gave me code with all kinds of syntax errors and mistakes. Yes, I know not to trust it because the compiler flagged the problems, but what now? I go write the code myself I guess. Yay GPT?

What problem is GPT solving here then?

Re:ChatGDB, the GPT-Powered GDB Assistant by teaearlgraycold on Friday April 07, 2023 @08:05PM (#35488833)
You can paste the compiler errors in and it’ll revise. But I think it helps to get a sense for what it can do well and what it can’t. It struggles with stuff that involves gnarly type level shenanigans, for example. But every time I’ve struggled with it I ended up realizing I was asking the wrong question. It’s not a magical device that solves all problems for you. It accelerates you when you know very well where you are and have the right idea of where you want to go. Try using it for boring refactoring tasks.

It’s also not bad with explaining code, so it can help with the “where you are” bit, too.

Re:ChatGDB, the GPT-Powered GDB Assistant by furyofantares on Friday April 07, 2023 @08:58PM (#35489245)
It gets it wrong maybe as often as I do on my first shot, but it does it much faster -- MUCH MUCH faster if any of the tech involved is something I'm not familiar with. And no matter who writes the code, me or the machine, I still quickly read it right after it's written.

Look, I've been doing this for 25 years, both as a career and continuously on the side for fun, and I am definitely an expert in a lot of things at this point. I'm allergic to saying crap like that about myself but feel it's necessary in this case, because it has transformed how I use a computer in a few short weeks.

My very first attempt with this stuff was actually a distinctly miserable experience and then something clicked. Wish I could articulate exactly what, but it's now one of the most joyous experience I've had in my career.

Re:ChatGDB, the GPT-Powered GDB Assistant by winstonprivacy on Monday April 10, 2023 @08:13AM (#35511388)
Exactly. I used to dread the 20+ times a day I would have to go to Stack Overflow and wade through a mountain of horse shit in the hopes of finding an answer. Now I can clearly describe the problem as a programmer would and ChatGPT frequently gets the solution on the first or second try.

I had one bad experience last week where I burned 20 minutes as ChatGPT gave me one invalid approach after another. Then I consulted the docs and learned that waht I wanted to do explicitly couldn't be done with that library. Tens steps forward and one step back. Totally worth it.

Re:ChatGDB, the GPT-Powered GDB Assistant by theptip on Saturday April 08, 2023 @01:49AM (#35490903)
When the space of possible commands is large like GDB, it can get you the right incantation faster. It’s great for ramping up on a language or tool you are not fluent in; for example “how do you do X in C++”.

It’s not great IME for writing large chunks of code, though some seem to be having good enough results there.

Re:ChatGDB, the GPT-Powered GDB Assistant by lukeschlather on Saturday April 08, 2023 @02:07AM (#35490956)
GPT is excellent for when you already know that the thing you want to do exists but you can't remember the exact syntax or API method. What might take me 5-10 minutes of googling and reading documentation GPT can usually describe with a single statement of what I'm looking for.
Re:ChatGDB, the GPT-Powered GDB Assistant by amrb on Saturday April 08, 2023 @05:54AM (#35491939)
My theory, it's like gambling, sometime's it a payout others it's bland, so it your waiting for the dopamine hit.
Re:ChatGDB, the GPT-Powered GDB Assistant by saagarjha on Friday April 07, 2023 @11:03PM (#35490070)
I have bad news to tell you about our ability to verify if a program matches a description of what it does on all inputs.
Re:ChatGDB, the GPT-Powered GDB Assistant by furyofantares on Friday April 07, 2023 @11:38PM (#35490295)
Regardless of whether you wrote it or an LLM did, yeah.