Forked from narimiran's AoC 2017, I plan to progressively fill in my solution for Advent of Code 2018.
My goal is to have fun and learn Nim. Since I know better Python, I will try first to solve the puzzle using Python. Then port the code to Nim. Since I really want to learn Nim, I will not submit a solution until the Nim code works.
Task | Python solution | Nim solution | Learning Notes |
---|---|---|---|
Day 1: Chronal Calibration | day01.py | day01.nim | At first I was not able to get Nim as fast as Python, still have to check exact times (remember to use d:release flag for nim) |
Day 2: Inventory Management System | day02.py | day02.nim | Had some hard time finding out an issue with CountTable in proc (see mega thread in forum), in the end my solution was more correct than the python one |
Day 3: No Matter How You Slice It | day03.py | day03.nim | Learned about objects and custom types in nim, code with a lot of parallelism between python and nim (I did not use numpy and arraymancer, but I should later on) |