Live streamed a new episode of solving advent of code in Rust
https://youtu.be/CjC1Nc2pWHs
In this episode, we completed day 3 of Advent of Code y2021 using Rust!
This exercise required us to do some bit manipulation and data filtering to come up with 2 numbers that needed to be multiplied together to get the solution.
Nothing particularly new here, but we took the opportunity to experiment with a bunch of things including using fold with callbacks (https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.fold), filtering vector of references, using cost generics (https://rust-lang.github.io/rfcs/2000-const-generics.html) and finally we did some performance testing.
If you have any suggestion, we'd love to hear it, so please leave a comment or a create a PR!
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
https://youtu.be/CjC1Nc2pWHs
In this episode, we completed day 3 of Advent of Code y2021 using Rust!
This exercise required us to do some bit manipulation and data filtering to come up with 2 numbers that needed to be multiplied together to get the solution.
Nothing particularly new here, but we took the opportunity to experiment with a bunch of things including using fold with callbacks (https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.fold), filtering vector of references, using cost generics (https://rust-lang.github.io/rfcs/2000-const-generics.html) and finally we did some performance testing.
If you have any suggestion, we'd love to hear it, so please leave a comment or a create a PR!
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