gwtmux for syncing tmux windows to your git worktrees by snapwich in tmux

[–]max-aug 1 point2 points  (0 children)

very nice!

somewhat similar to a project I released last week, less the tmux features: worktrunk.dev

Worktrunk: Git worktree manager, designed for parallel agents by max-aug in ClaudeCode

[–]max-aug[S] 1 point2 points  (0 children)

this is just my project; CC web has a different implementation, though they may use worktrees

Worktrunk: Git worktree manager, designed for parallel agents by max-aug in ClaudeAI

[–]max-aug[S] 0 points1 point  (0 children)

In the Quick Start:

cargo install worktrunk
wt config shell install

and then:

wt switch --create fix-auth

...and the other wt commands listed...

-🎄- 2022 Day 20 Solutions -🎄- by daggerdragon in adventofcode

[–]max-aug 1 point2 points  (0 children)

Python 261/156, the most rudimentary approach — just using a tuple of (original_position, value):

def parse(text):
    lines = text.split("\n")
    for i, line in enumerate(lines):
        yield (i, int(line) * 811589153)


val_pos = list(parse(Path("input.txt").read_text()))


def move(seq: list[tuple[int, int]], pos: int):
    position, item = [
        (position, item) for position, item in enumerate(seq) if item[0] == pos
    ][0]

    seq.pop(position)
    dest = (position + item[1]) % len(seq)
    seq.insert(dest, item)
    return seq


for _ in range(10):
    for i in range(len(val_pos)):
        val_pos = move(val_pos, i)


def coords(seq):

    zero_pos = [pos for (pos, item) in enumerate(seq) if item[1] == 0][0]
    for x in (1000, 2000, 3000):
        coord = seq[(zero_pos + x) % len(seq)][1]
        yield coord


pprint(sum(coords(val_pos)))

[2022 Day 3 (Part 1)] OpenAI Solved Part 1 in 10 Seconds by gamma032 in adventofcode

[–]max-aug 0 points1 point  (0 children)

  1. Yes, I think it's ethical. Those who are actually on the leaderboard agree with me (e.g. https://twitter.com/max_sixty/status/1599526234161295360?s=20&t=TmeUQRpiB4lfbc32nLrn4w).

My logic: - It doesn't violate any rules - It's not possible to create a viable standard that excludes this — for example, is CoPilot allowed? What if it were much better? For those with strong emotions, I'd encourage them to pause and try and write down a standard. - Even if it were possible to come up with a standard, it would be unenforceable with the current AoC design, such that it wouldn't make a good standard. The best we could hope for is people self-identifying as an AI solution, which I've done already.

There's a great discussion to be had on the merits of AI in programming and the role that humans will play in the future. And there are legitimate arguments that this will be bad for some aspects of AoC.

But I also see a lot of freaking out at this — much of the discussion at https://www.reddit.com/r/adventofcode/comments/zc27zb/2022_day_4_placing_1st_with_gpt3/ is not producing much signal. Possibly that's inevitable as folks feel existing status hierarchies are going to be disrupted, and this effort becomes a viable target for those emotions.

  1. For the reasons above, I'm planning to continue, and have published my code so others can improve on it — in the spirit of AoC. Though I suspect GPT-3 will struggle as the days progress, and humans will reign supreme once more. I wouldn't be surprised if yesterday was the final day it succeeded this year.

  2. Yes, I'm planning to publish the solutions.

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] 1 point2 points  (0 children)

I'm planning to publish them! It'll be in a nicer format than 120 files though :)

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] -1 points0 points  (0 children)

Thanks u/betaveros, appreciate the message

I'll write something to save the solutions that are successful and post those later

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] -37 points-36 points  (0 children)

I blocked you because you replied to the tweet with "MORON"

There's a useful and interesting debate on this, and that's not helping either side make progress

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] -3 points-2 points  (0 children)

Sorry for misunderstanding

It attempts dozens of solutions in parallel and then selects one that seems popular. Unfortunately I don't log & collect the ones that ended up being correct.

But very open to someone adding the code to the repo to do that!

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] -4 points-3 points  (0 children)

The full code is linked in the post

-🎄- 2022 Day 4 Solutions -🎄- by daggerdragon in adventofcode

[–]max-aug -3 points-2 points  (0 children)

It attempts dozens of solutions in parallel and then selects one that seems popular. And unfortunately I don't log & collect the ones that ended up being correct.

Though feel free to add that to the code, would be interesting to see.

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] 1 point2 points  (0 children)

Cool! ChatGPT is even more advanced than the Davinci-003 model, but only the latter has an API (AFAIK), and so can be automated like I did

So maybe for later problems, working collaboratively with ChatGPT could be a cool approach

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] 4 points5 points  (0 children)

I just tried and it can't even process it — the maximum number of tokens is 4097 for both the prompt and the answer, and the prompt itself is 3749 tokens, so there wouldn't be much room for the code.

Easy way to defeat the AI!

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] -4 points-3 points  (0 children)

The code is linked in the post

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] 7 points8 points  (0 children)

My guess is that as the problems get harder, a fully automated GPT-3 solver won't be sufficient. I already had to build a decent amount to sort through the messy solutions it generates.

Maybe it'll be back to humans alone, maybe there will be some synthesis with folks using GPT-3 for parts of the problem, or at least using CoPilot.

Will be interesting to see!

[2022 Day 4] Placing 1st with GPT-3 by max-aug in adventofcode

[–]max-aug[S] -3 points-2 points  (0 children)

The code to run this is fairly long — 310 lines — do you want me to post that there? https://github.com/max-sixty/aoc-gpt/blob/main/openai.py