Live data from Hacker News

Show HN: ChatGDB – GPT-Powered GDB Assistant

github.com

41–50 of 57 posts

Re: Show HN: ChatGDB – GPT-Powered GDB Assistant

#41
post #31

Earlier quoted context omitted.

That's why LLMs are best suited to programming. You know pretty quickly if it's lied to you.

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 th…

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: Show HN: ChatGDB – GPT-Powered GDB Assistant

#42
post #31

Earlier quoted context omitted.

That's why LLMs are best suited to programming. You know pretty quickly if it's lied to you.

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 th…

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: Show HN: ChatGDB – GPT-Powered GDB Assistant

#43
post #37

Earlier quoted context omitted.

I use GDB all the time… but never directly, always through an IDE’s debugging abilities. So I can’t see any use to tools like this one? Dunno maybe I’m missing something and lots use it directly, but IDE integration is what makes it super useful for JTAG debugging of firmware at work for me.

I do embedded development, so I’m usually attaching a gdb session to the server spawned by this esoteric chip’s programmer/debugger. I could possibly make use of this I suppose.

I think I’m reasonably spoiled by ESP-IDF and the STM32 toolchains integrations into VSCode; aside from launching OpenOCD myself I never have to manage GDB directly

Re: Show HN: ChatGDB – GPT-Powered GDB Assistant

#44

Did anyone use this for an actual project. I am wondering how those chatX applications actually help. When I had to use a dissasembler the issue was not commands, because those become muscle memory after a few hours of use. (LLM solutions are anti muscle memory because for the same prompt you can get diff results) The issue I had was wrapping my brain around what is actually going on, keeping track of pointers, addre…

> When I had to use a dissasembler the issue was not commands, because those become muscle memory after a few hours of use.

My few hours of usage is 30 different 5 minute stints over the course of 6 months. I don't remember anything between usages. English debugger prompts will be amazing.

Re: Show HN: ChatGDB – GPT-Powered GDB Assistant

#45
post #34
post #27

The core “program” is just two lines! https://github.com/pgosar/ChatGDB/blob/ee9d64b441939df163dc5...

Whats the opposite of perl? because that one line's eminently readable

It's called "conversational programming" and it was all the rage in the '60s or '70s. Maybe it's time for a resurgence?

Re: Show HN: ChatGDB – GPT-Powered GDB Assistant

#46
post #45
post #34

Earlier quoted context omitted.

Whats the opposite of perl? because that one line's eminently readable

It's called "conversational programming" and it was all the rage in the '60s or '70s. Maybe it's time for a resurgence?

SQL grew out of that trend btw :)

Re: Show HN: ChatGDB – GPT-Powered GDB Assistant

#48
post #31

Earlier quoted context omitted.

That's why LLMs are best suited to programming. You know pretty quickly if it's lied to you.

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 th…

My theory, it's like gambling, sometime's it a payout others it's bland, so it your waiting for the dopamine hit.

Re: Show HN: ChatGDB – GPT-Powered GDB Assistant

#49
post #10

“ChatGDB, find me the memory leak!” is what I would want to say! Not really dictate commands I don’t know I may even need.

https://github.com/openai/triton/pull/1358#issue-1628393794 >One fun thing - after tracking down the code to the block of C++ code, ChatGPT-4 is what actually found the memory leak for me :) although I can't imagine what the prompt was.

I don't have gpt4 tho we could test with a prompt like:

"Thinking step by step, what does this code do, is there a problem?"

Post reply on HN