Advent of code in Rust - solving year 2020 exercise 17 p2 (Twitch Live 2021-09-06)
In this episode, we completed the second part of Advent of Code y2020 ex17!
This exercise is an interesting variation of Conway's Game of Life but with additional dimensions! Part one is in 3D while part 2 is 4D.
In our first iteration of the solution, we literally duplicate all our code (every type and every function) to support the 4D variation of the problem.
After that, we started to generalize our solution using const generics (https://rust-lang.github.io/rfcs/2000-const-generics.html) and wrapper types.
We took a few shortcuts (read "CLONE LIKE THERE IS NO TOMORROW") that are maybe worth revisiting, but all over we are quite pleased with how the final generalized solution looks!
For all the source code check out the official GitHub repo: https://github.com/lmammino/rust-advent
For seeing the next episodes live check out our Twitch channel: https://twitch.tv/loige