Stream: advent of code

Topic: 2024 Day 14


view this post on Zulip Oskar Hahn (Dec 14 2024 at 08:08):

https://github.com/ostcar/aoc2024/blob/main/day14.roc

Part1 in 1.167ms
Part2 in 303.218ms

view this post on Zulip Oskar Hahn (Dec 14 2024 at 15:21):

@Anton Could you try this? Part 2 is a bit special and I don't know if an AI can solve it

view this post on Zulip Anton (Dec 14 2024 at 15:21):

Sure :)

view this post on Zulip Anton (Dec 14 2024 at 15:29):

Good pick, this is the first time the tests with the example input passed but the the answer on the full input was wrong (on part 1).

view this post on Zulip Anton (Dec 14 2024 at 15:42):

No, it can't make part 1 work :sad robot:

view this post on Zulip Anton (Dec 14 2024 at 16:08):

Hah, I added "Make sure your solution is robust and can handle varying inputs" and now it works :)

view this post on Zulip Anton (Dec 14 2024 at 16:44):

spoiler

view this post on Zulip Brendan Hansknecht (Dec 14 2024 at 17:11):

I know with some of the original coding AI's, it helped to kinda give them a person before asking them to solve problems. I wonder if that would help Claude in general or if that is now stale and doesn't matter.

view this post on Zulip Anton (Dec 14 2024 at 18:19):

Looks like it's still useful. Next time I'm stuck I'll try "You are Richard Feldman..." and "You are Brendan Hansknecht..." :big_smile:

view this post on Zulip Oskar Hahn (Dec 14 2024 at 18:20):

part2

view this post on Zulip Brendan Hansknecht (Dec 14 2024 at 18:26):

Just steal a description of richard from one of his conference talks and change it to second person

view this post on Zulip Luke Boswell (Dec 14 2024 at 18:52):

The clone wars of the future... who knew Richard was the original.

view this post on Zulip Robin Camarasa (Dec 15 2024 at 21:23):

Here is my solution: https://github.com/RobinCamarasa/Advent-of-code/tree/master/2024/day14/RobinCamarasa


Last updated: Jul 06 2025 at 12:14 UTC