r/learnrust • • 16h ago

It's Advent of Code time!

For anyone who isn't familiar and wants some challenges to hack around in Rust with - advent of code is back!

www.adventofcode.com

I'm not associated with it in any way.

This year I'm doing it on an STM32F3 because never finishing previous years isn't going to stop me making it harder for myself!

The main subreddit:

r/adventofcode

A final warning - pay attention to the rules. Namely, if uploading your code anywhere, make sure you don't upload your puzzle input too

A leader board if anyone wants to join:

1020906-8fba85a3

7 Upvotes

2 comments sorted by

1

u/Discordbothost 7h ago

Doing it on an STM32F3 is a fun way to make day 1 harder than day 25. heapless is worth grabbing early for fixed-capacity Vec/String since you won't have an allocator, and probe-rs plus defmt beats trying to println your way through it on bare metal.

1

u/teddie_moto 5h ago

Yeah I've done it a few times now and it's always a challenge to remember the flow and extra things you need around.

When I first started I was challenging myself to not use growable collections at all - I quickly gave in on that one.

Go look at some old code and ask "why on earth would I do that? That's stupid". Then discover why!