top | item 14588002

(no title)

rustacean | 8 years ago

Thank you. But it seems not finished? I am trying to implement some basic data structures and algorithms in Rust, but the compiler nearly kills me. Is there any data structure & algorithms implementation tutorials for Rust newbies, like Learning_ Rust_With_Entirely_Too_Many_Linked_Lists[1]?

[1]:http://cglab.ca/~abeinges/blah/too-many-lists/book/README.ht...

discuss

order

kazagistar|8 years ago

Data structures and algorithms are possibly the hardest part of Rust to dive into unless you have a really good reason. The best advice for newbies is to learn with other stuff and use existing algorithms. Of course, if you are trying to implement stuff for a class or something similar then you might be out of luck, and might consider trying the Rust IRC and such to work through the errors as they come up.

EbTech|8 years ago

I made this cookbook specifically to show it doesn't have to be so hard. While designing an industrial-strength data structure library is an advanced skill, there are easier ways to implement the core ideas that should suffice for contest and coursework purposes. Very few people have to build actual libraries.

lgas|8 years ago

> Data structures and algorithms are possibly the hardest part of Rust to dive into

What else is there?

freeordead|8 years ago

So what is the point of a language in which things are hard to implement?