Advent of Code 2021 - all solutions

So I finished all the 2021 solutions in Erlang with a total runtime of < 10s which I am very happy with:

Year    Day    Name                     Time (msecs)
------  -----  -----------------------  --------------
2021    24     Arithmetic Logic Unit    0.338
2021    10     Syntax Scoring           0.717
2021    2      Dive!                    0.773
2021    1      Sonar Sweep              0.849
2021    6      Lanternfish              0.963
2021    13     Transparent Origami      2.112
2021    3      Binary Diagnostics       2.619
2021    14     Extended Polymerization  4.008
2021    16     Packet Decoder           4.83
2021    8      Seven Segment Stretch    7.495
2021    9      Smoke Basin              13.564
2021    4      Giant Squid              23.715
2021    22     Reactor Reboot           40.28
2021    11     Dumbo Octopus            58.305
2021    7      The Treachery of Whales  91.935
2021    21     Dirac Dice               140.429
2021    17     Trick Shot               160.075
2021    12     Passage Pathing          274.693
2021    5      Hydrothermal Venture     321.489
2021    18     Snailfish                409.204
2021    15     Chiton                   732.866
2021    25     Sea Cucumber             781.054
2021    19     Beacon Scanner           1934.517
2021    23     Amphipod                 2031.776
2021    20     Trench Map               2361.754
               Total time               9.43458 secs

All solutions can be found here: GitHub - jesperes/aoc_erlang: Advent of Code Solutions in Erlang.

9 Likes

Awesome stuff Jesper, I wonder if anyone else completed all of them? :003:

I guess @bjorng did? :lol:

2 Likes

I’ve done all the previous years in Erlang, but this is the first year that I managed to break the 10s barrier.

5 Likes

I participated for the first time, and sometime it was painful - but no doubt it’s real fun in general. Thank you @bjorng for letting know about AoC in the mailing list and thank you @jesperes for the benchmark and additional motivation to revisit some of 25 days without haste :wink:

3 Likes

It was my first time too. I like the idea very much and I had great time working in AoC, though often it was tough time as well :slight_smile: You can find my Erlang solutions to all problems at GitHub - wojteksurowka/aoc2021

3 Likes