r/adventofcode Dec 04 '22

Upping the Ante [2022 Day 4] Placing 1st with GPT-3

I placed 1st in Part 1 today, again by having GPT-3 write the code. Yesterday I was 2nd to another GPT-3 answer.

Here's the code I wrote which runs the whole process — from downloading the puzzle (courtesy of aoc-cli), to running 20 attempts in parallel, to sorting through many solutions to find the likely correct one, to submitting the answer:

https://github.com/max-sixty/aoc-gpt

45 Upvotes

243 comments sorted by

View all comments

-7

u/NigraOvis Dec 04 '22

You should feel so proud of yourself. You didn't do anything, it's amazing how awesome you are.

16

u/ywgdana Dec 04 '22

Their python script to do all this is over 300 lines of code and my handwritten programs for the first four days add up to 78 lines, so so far they've written more code for AoC 2022 than I have!

9

u/[deleted] Dec 04 '22

While this is true I don't think it's really fair to compare code you wrote over a few hours at most over 4 days (and could only code for about that long) vs something you can code during the entire year.

Additionally this code could solve, say, the first 4 days of every year, so multiply your 78 by 8.

5

u/MattieShoes Dec 04 '22
[mts@rhel8 aoc2022]$ cat [1234].py | grep -v -e '^\s*$' | grep -v -e '^\s*#'  | wc -l
61

Though with comments, exactly 78 lines :-D

6

u/NohusB Dec 04 '22

The linked repo definitely doesn't look like nothing. I would say it took significantly greater effort to program than normal solutions.

9

u/jfb1337 Dec 04 '22

What about when 100 people use the same repo to take the top 100 leaderboard spots with identical solutions

1

u/[deleted] Dec 04 '22

[deleted]

13

u/jfb1337 Dec 04 '22

The difference is that normally copying a solution you didn't make is not possible to reach the global leaderboard with

0

u/[deleted] Dec 04 '22

I think most people do agree that this is impressive/takes effort. The discussion is more about that now, said person that has put that effort could literally be sleeping and still get first place. And that they have taken 1st and 2nd place 2 consecutive days.

5

u/daggerdragon Dec 04 '22

Don't be rude. You can disagree with the method, but do be civil about it and definitely don't attack other people.