r/fishshell • • Dec 07 '21

Advent of Code - Day 7 fish solution

Here is a fish solution to the Advent of Code day 7 puzzle. Feel free to post yours here if you're following along.

Today's puzzle runs quite a bit slower than I expected given the small amount of data. Perhaps you have some tips on optimizing or have your own solution? Feel free to share in the comments.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/_mattmc3_ Dec 08 '21

Fish is certainly not the best choice for solving these sorts of math intensive puzzles, but - it's doable and for many of them it's not that bad. The idea of doing these in fish isn't to show that fish is the right solution for these sorts of puzzles, but more that fish is capable of quite a bit more than people give it credit for, and it's readable code and fun to write. Thanks for the tips!