tlent
Re:Learning Rust via Advent of Code
on Monday February 04, 2019 @11:52AM (#19077873)
As someone who also completed Advent of Code in Rust this year this was very interesting. I agree it is a great way to learn more about a new language. Thanks for sharing!
It seems like we ran into a lot of the same pain points like parsing, lack of a min-heap, etc.
Regarding HashMap initialization the best way I'm aware of to do what you are looking for is with lazy_static[0]. Maybe not very clean or idiomatic though.
For sorting I found the best solution to that problem was using sort_by_key with a tuple like (a.year, a.month, a.day, a.hour, a.minute).
[0]: https://github.com/rust-lang-nursery/lazy-static.rs#example
Re:An Experimental Course on Operating Systems
on Saturday January 13, 2018 @02:34PM (#16140903)
Would it be possible to use the much cheaper Raspberry Pi Zero W instead of the 3?