What I learned by solving 50 Advent of Code challenges in Rust - Luciano Mammino

preview_player
Показать описание
In 2020 I started to be a bit more serious about learning Rust. After having read a few books and having done some coding challenges, I decided to start live-streaming my attempts to solve Advent of Code challenges using Rust. Fast forward to 2022 I completed 50 challenges and learned a lot about how to use Rust to solve specific programming challenges. In this talk, I’ll be sharing some common tips and tricks that I discovered while live-coding also thanks to the beautiful Rust community that gave me tons of suggestions! Some topics I’ll be covering in this talk: parsing input, data structures, error handling, iterators, performance, allocating and manipulating 2d matrices, etc.
Рекомендации по теме
Комментарии
Автор

No way an hour just passed… I really enjoyed the presentation, time flew 🎉

nikensss
Автор

wow, this was pretty cool talk. thank you.

theycallmesloth
Автор

coming from JS and C# to rust has been a real breath of fresh air. Iterators in rust are just beyond fun! Great talk tooo.

martynclarke
Автор

This talk was great. I need to remember that traits are so useful and it was good to learn that const generics exist. Thanks for that.

Galakyllz
Автор

Ciao Luciano! What a great debut talk! I'm currently learning rust and can relate to many things you mentioned.

flwi
Автор

Thanks! It was great to see these real-world examples.

maksimivanov
Автор

I really liked your talk, thanks Luciano! Wish you do more talks in a similar format.

privettoli
Автор

Low level programming is another world. Really amazing and educational.

JOHNSMITH-verq
Автор

Really thorough analysis!
I'd love another talk with the listed at the end items.

oleksrow
Автор

I've been surprised that functional solution is so easy to think, since people assumed that functional programming is hard.

KodosUnofficial-jqoo
Автор

Great talk! I have been on and off AOC, and this year I hope to solve the problems in Rust! So thanks for all the helpful pointers!

learnbyexample
Автор

once_cell might be better than lazy_static now (since it's on track to be added to the standard library, and avoids macros).

Also for the top_3 case using smallvec / tinyvec might be a good trade-off between ergonomics and not allocating.

jRsqILVOY
Автор

so, Vector vs fixed size array difference is actually quite big. Compiler can use the fixed size for optimization. array.rev().take(1) can be optimized to array[array.length -1] and so on - the Primagen has video on this :)

Qrzychu
Автор

great presentation / thank you very much.
I currently try to learn Rust on solving AoC 2019 - today on day 14. But I'm not so hardworking in refactoring a running solution 🙂
Congratulations for your learnings on refactoring.

harrymiller
Автор

Very good presentation and thank you for advice and analyses you did.

MaQiavelli
Автор

ah, ma c'è Luciano?! Ok, prima metto like e poi guardo il video

emanuelegurini
Автор

Implement a trait on a trait: 24:20 Cool.

G
Автор

I went to download the slides using the link 48 seconds in and the link has expired. Any chance of posting the slides?

GlynNormington