you are viewing a single comment's thread
view the rest of the comments
[+] -8 points 5 months ago (8 children)

In a single prompt I would not expect that specific exercise to produce efficient code, but within a few prompts it should. Certainly less time than it would take someone to write it themselves.

There are always creative ways to squeeze extra performance out of code if you spend enough time on it.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 9 points 5 months ago* (last edited 5 months ago) (1 child)

    Certainly less time than it would take someone to write it themselves.

    I mean, sure - for you and I, who aren't qualified to write that specific code, maybe we can prompt the electronic idiot to get there. Of course, neither we nor the electroic idiot knows where there is, and at best we will copy in exisitng better code that we should have imported from a library. So we gave up automated updates to avoid reading the manual pages.

    In contrast, for domains I'm an expert in, babysitting the electric idiot is always a complete waste of time. I can just call the correct library, the correct way, on the first attempt.

    Today's AI really highlights exisitng technical debt. If there's already a mountain of it, I can see how the learning model may help wrangle it, and how it may be hard to see the added costs.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 7 points 5 months ago* (5 children)

    If it can't output ~50 lines of code that is reasonably common from textbooks with one minor modification, I'm not clear what the benefit is

    It's certainly not faster

    I already stated I kept prompting it for over 30 minutes and it still hadn't fully completed the problem

  • source
  • parent
  • hideshow 5 child comments
  • [+] -8 points 5 months ago (4 children)

    Well, if it took you 30 minutes, it’s not the AI’s fault.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 11 points 5 months ago (3 children)

    So, it's the same answer as every other time I've tried to talk to people supporting AI...

    If it didn't work, I just I didn't guide it enough, and if I did guide it, it's a skill issue...

    It is pretty hard to come up with an easier problem for it to solve for an example case

  • source
  • parent
  • hideshow 3 child comments
  • [–] -4 points 5 months ago (2 children)

    Mine worked fine. I didn’t use your prompt cut and paste though. It was inefficient on the first prompt, but it worked, and by the third it was pretty speedy. I used codex 5.5, which imo is better than Claude for the time being.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 5 months ago* (1 child)

    Claude 4.6 was doing shit like

    extern char grid[5][5]

    ...

    fgets(grid[i], 6, fp); grid[i][6] = '\0';

  • source
  • parent
  • hideshow 1 child comment
  • [–] -2 points 5 months ago

    Yeah codex does some stuff where I’m pretty disappointed. It never really gets me 100% to where I need to be without human interaction. But I’m aware it won’t (probably ever) do that and I’m fine with it. It got me 70% there, while I play with my cat… and charge for it. 🤷‍♂️

  • source
  • parent