Stream: advent of code

Topic: 2023 Day 7


view this post on Zulip Oskar Hahn (Dec 07 2023 at 09:08):

Here is my day7: https://github.com/ostcar/aoc2023/blob/main/days/day07.roc

Spoiler

view this post on Zulip Fabian Schmalzried (Dec 07 2023 at 10:07):

Here is mine. Did a lot of copy paste for part2 and it does not look so nice, but It was quite nice to implement with the use of dbg.

view this post on Zulip Johan Lindskogen (Dec 07 2023 at 11:17):

My solution :blush: Quite happy with the outcome! Feels like I'm starting to learn to think in roc! https://github.com/lindskogen/advent-of-code-2023/blob/main/day07/main.roc

view this post on Zulip Ryan Bates (Dec 07 2023 at 22:01):

Here's my day 7: https://github.com/ryanb/advent-2023-roc/tree/main/day07

view this post on Zulip Ryan Bates (Dec 07 2023 at 22:07):

Johan Lindskogen said:

My solution :blush: Quite happy with the outcome! Feels like I'm starting to learn to think in roc! https://github.com/lindskogen/advent-of-code-2023/blob/main/day07/main.roc

Nice solution! I like your handling of tags.

view this post on Zulip Elias Mulhall (Dec 07 2023 at 22:08):

@Ryan Bates you should upgrade to basic-cli 0.7.0, unless you're also running an old (pre december 1st) version of the compiler
https://github.com/roc-lang/basic-cli/releases

view this post on Zulip Ryan Bates (Dec 07 2023 at 22:09):

@Elias Mulhall thanks, I'll do this. I have been just using the same template I did before Dec 1 but on a newer nightly so can upgrade.

view this post on Zulip Elias Mulhall (Dec 07 2023 at 22:10):

Cool, if you've noticed dbg not working at all that should fix it

view this post on Zulip Ryan Bates (Dec 07 2023 at 22:20):

Oskar Hahn said:

Spoiler


Spoiler Reply

view this post on Zulip Asbjørn Olling (Dec 07 2023 at 22:52):

https://gitlab.com/AsbjornOlling/aoc2023/-/blob/main/07/main.roc
Back on track!

I got stuck on Day 5 part 2 for yesterday and the day before.
I think I've just dug myself a hole made of confusing code.

Today I decided to screw it and just went on. Solved day 6 and 7 now.

I'm pretty happy with my Day 7. I came up with a pretty nifty way to pattern match hand kinds, that turned out to be easy to extend for part two.

view this post on Zulip Ayaz Hafiz (Dec 09 2023 at 01:28):

My day 7: https://gist.github.com/ayazhafiz/fd747f93604b103464824175e51591dc

view this post on Zulip timotree (Dec 10 2023 at 01:25):

My day 7: https://github.com/timotree3/aoc2023/blob/main/roc/day7.roc

view this post on Zulip Jonas Schell (Mar 03 2024 at 22:39):

If I keep going at this pace, I'll be done before the advent of code this year. :laughing:
Because I had a logical bug, I wanted to refactor to get some more guarantees to narrow down the search space. This led to a quick trip to opaque-types-land, followed by a visit to refactoring-is-as-nice-as-in-Elm-garden! I love that opaque types have their own syntax!

My solution: https://github.com/Ocupe/advent-of-code-2023/tree/main/day_07


Last updated: Jul 06 2025 at 12:14 UTC