Published a YouTube video
Hosted a live stream on Twitch
Used Rust
+1
Live streamed another episode of Learning Rust with Advent of Code on Twitch:


Advent of code in Rust - solving day 6/2021 (Twitch Live 2022-02-14)



https://www.youtube.com/watch?v=k2ESIi0ygAY&

In this episode, we completed day 6 of Advent of Code y2021 using Rust!

Today's challenge was all about simulating fishes breeding other fishes over time and figuring out how many fishes in total would be present after a certain amount of iterations.

We did solve this challenge in an efficient way by realising that 1 fish could be in 1 of 9 possible configurations at a moment in time and count how many fish would exist in each possible configuration. This way we kept the state small even for trillions of fishes after a few hundred turns.

During the stream we did some refactoring to make the code simpler and faster.

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