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
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 You can find my Erlang solutions to all problems at GitHub - wojteksurowka/aoc2021
It was such a fun to revisit AoC2021 with C++, improving at last day 23 (hooray) and compare it to Erlang. More often than not I tried to repeat C++ solutions by the corresponding Erlang code, so funnier it was to see how eventual implementation differs and a cunning scheme designed for one language doesn’t work for another. Final timings say us nothing as always but I share them anyway.
$ ./aoc2021
25 C++ days:
Time elapsed:
day 1: 1.4ms
day 2: 0.9ms
day 3: 1.1ms
day 4: 7.1ms
day 5: 5.5ms
day 6: 0.1ms
day 7: 3.4ms
day 8: 9.7ms
day 9: 12.2ms
day 10: 0.3ms
day 11: 63.5ms
day 12: 141.5ms
day 13: 3.7ms
day 14: 3.4ms
day 15: 1732.7ms
day 16: 0.5ms
day 17: 2.7ms
day 18: 122.1ms
day 19: 75.5ms
day 20: 130.2ms
day 21: 89.6ms
day 22: 1061.7ms
day 23: 5845.2ms
day 24: 0.1ms
day 25: 173.7ms
Average: 379.5ms
2> aoc_tc:run().
25 Erlang days:
day 1: 0.702ms
day 2: 0.531ms
day 3: 0.952ms
day 4: 12.308ms
day 5: 250.932ms
day 6: 0.379ms
day 7: 4.208ms
day 8: 1.595ms
day 9: 4.938ms
day 10: 0.422ms
day 11: 29.911ms
day 12: 35.826ms
day 13: 2.442ms
day 14: 3.953ms
day 15: 1353.175ms
day 16: 0.61ms
day 17: 1.511ms
day 18: 74.62ms
day 19: 34.571ms
day 20: 1743.531ms
day 21: 86.588ms
day 22: 1288.99ms
day 23: 2200.571ms
day 24: 0.006ms
day 25: 2209.278ms
Total: 9342.55ms
Average: 373.702ms