Hacker News new | ask | show | jobs
by Freak_NL 2395 days ago
I tried AoC in Rust two years ago, and you really don't need anything beyond the excellent standard library. Rust has lots of nice features that make working with the type of input AoC gives trivial.

By limiting yourself to the standard library at first, I find that you can get a good feel for the language itself.

You could look up some of the published solutions from last year to get a feel for what is possible.

Example: https://github.com/bertptrs/adventofcode/tree/master/2018/sr...

This person kept a minimal common library for recurring functionality and a small wrapper application that launches the code for each puzzle. It looks like a really clean approach.

1 comments

I would recommend against a common framework if this is your first venture into rust: I tried exactly this last year, but since I was learning a lot about the language along the way I kept having to go back and update previous days to reflect framework updates.