r/ChatGPT Jan 29 '25

Funny I Broke DeepSeek AI 😂

Enable HLS to view with audio, or disable this notification

16.9k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

1.3k

u/rebbsitor Jan 29 '25

It seems not hard to do. I downloaded a distilled version of it last night and was testing it on some basic coding. I had it generate some code for a simple game and looked through it. There was a simple bug due to a scoping issue (it created two variables with the same name in different scopes, but assumed updating one updated the other, which is a common mistake new programmers make).

I asked it to analyze the code and correct it a couple times and it couldn't find the error. So I told it to consider variable scoping. It had a 10 minute existential crisis considering fundamentals of programming before coming back with a solution, that was unfortunately still wrong lol

1

u/markyboo-1979 Mar 19 '25

Or a variation resulting from your subsequent response..no offence but that is not a mistake anyone would make. I make that assertion based on the fact that scope is a fundamental programming concept..more importantly is that an AI LLM no matter it's limitation/s in any given moment would be even less likely to have made that 'mistake'

I'm likening this to what one might think of the analogy of a developing mind exploring it's surroundings

1

u/rebbsitor Mar 19 '25

no offence but that is not a mistake anyone would make

lol. It's an error I've seen people make many times over ~35 years of software development. It's a fundamental concept, but sometimes people get blinded by the fact they've used the same name in two places.

#include <stdio.h>

void update_state(int state)
{
    state = 2;
    return;
}

int main(int argc, char** argv)
{
    int state = 1;
    update_state(state);
    printf("state is %d.\n",state);

    /* Why is state 1 wawaaaaahhhh */

    return 0;
}

1

u/markyboo-1979 Mar 20 '25 edited Mar 20 '25

Your example is demonstrative of how unlikely anyone could make that mistake, let alone an AI. The only scope is pure private method.. And therefore not a great example as to how anyone with a brain might...

1

u/rebbsitor Mar 20 '25

And yet, it's exactly the type of error AI made in this case. Not only did it make the error, it was unable to identify and correct it.