Solved day 8, but it's really slow :snail: :laughing: https://github.com/lindskogen/advent-of-code-2023/blob/main/day08/main.roc
I have something similar and it runs for about 5s :oh_no:
remarks
BTW, you can use //
for integer division (shorthand for Num.divTrunc), no need to transform to floats.
I didn't know this //
existed in roc
.
Thanks :)
https://github.com/ostcar/aoc2023/blob/main/days/day08.roc
Why I did not like day8
Here's my solution for day 8. I got it down to 1 second for both parts (with roc dev
).
https://github.com/ryanb/advent-2023-roc/blob/main/day08/main.roc
Note on performance
Here's my solution for day 8: https://github.com/timotree3/aoc2023/blob/main/roc/day8.roc
Algorithm
Last updated: Jul 06 2025 at 12:14 UTC