News for hackers. Stuff that matters.
Re:Bevy: A Game Engine in Rust by freedomben on Monday August 31, 2020 @03:29PM (#24335113)
Possibly OT but: For a very experienced dev who knows numerous languages ranging C/C++/Go to Ruby/JavaScript to Elixir, what's the most effective way to learn enough rust to be dangerous?

I like the Rust book a lot but it's a bit too slow moving. It explains concepts I already know so I have to skim, but then I miss something.

Perhaps the best thing doesn't exist yet! Maybe I'll write it someday. But I thought I'd ask ;-)

Re:Bevy: A Game Engine in Rust by brundolf on Monday August 31, 2020 @03:35PM (#24335158)
I agree that the Book unfortunately moves a little slow for an experienced programmer, but I think it's still important to push through at least most of it and get all those little tidbits.

After that I really like this resource, which gets much more practical about problem-solving borrowing issues and introduces some really important tools from the standard library: https://rust-unofficial.github.io/too-many-lists/

If the Book teaches you what features Rust has, this teaches you how to use Rust in practice. It also taught me that it was a fool's errand to go and try to implement all the core data structures as a part of my learning process, because that kind of pointer-twiddling is one of the hardest possible things to do in safe Rust :)

Re:Bevy: A Game Engine in Rust by freedomben on Monday August 31, 2020 @03:39PM (#24335191)
Oh wow, thanks for the recommendation! This is remarkably similar to how I learned C++ back in college. It was a data structures class and we built a few of them. Nothing cemented the concepts as well as building our your own linked list. I will definitely give this a read :-)
Re:Bevy: A Game Engine in Rust by lewisinc on Monday August 31, 2020 @03:42PM (#24335213)
I'd suggest picking something small that you personally want to get started. For me, I wrote Dingus (https://github.com/davidarmstronglewis/dingus), which is really just a simple CLI that reads environment variables from a file and either executes a command with those loaded or drops you into a shell. I was finding myself constantly populating my shell environment with different variables depending on various contexts and figured I would canonicalize the process and learn more about Rust in the process.

I still use the tool today (although I'm still not sure it's the most elegant solution :P), and I've taken that knowledge I picked up in the process for other projects I've since done in Rust.

If I were where you are, I'd do something similar: carve out a simple project that you could complete in a day (or two) in a language you're more familiar with, and try to do it in Rust.

I'd also recommend joining the Rust Discord channel to field any immediate questions you might have (and going to the Forums if there's something more involved you'd like opinions on).

Good luck :)

Re:Bevy: A Game Engine in Rust by echelon on Monday August 31, 2020 @03:46PM (#24335239)
Not a resource, but some advice for learning:

Even though the two concepts are intertwined, you'll master borrowing well before you master lifetimes. And that's okay.

Early on you'll probably not need to author many structs that require lifetime annotations. If you think you need to, you're either purposefully building something complicated and/or memory-limited, OR you're using the concept without understanding and not needing to do so.

If you can stay away from writing your own explicit lifetimes on structs and interfaces while you're learning, it becomes a much easier process.

Once you've mastered this stuff, Rust is seldom more difficult than any other language.

It's like that quote from the Matrix. You get used to it. Pretty soon you won't even see the borrow checker.

Re:Bevy: A Game Engine in Rust by MayorMonty on Monday August 31, 2020 @03:32PM (#24335142)
Rust By Example helped me to get off the ground pretty quickly and give me some ideas when I was stuck. But honestly just making something is the best way to learn rust, the compiler will hold your hand enough for it to be a pretty good learning experience
Re:Bevy: A Game Engine in Rust by umanwizard on Monday August 31, 2020 @03:33PM (#24335151)
I assume by "the Rust book" you mean "The Rust Programming Language".

There is also "Programming Rust", which you might like better.

Re:Bevy: A Game Engine in Rust by anarchyrucks on Tuesday September 01, 2020 @10:42AM (#24342282)
Solve some of the Advent of Code challenges and you should be good to go.
Re:Bevy: A Game Engine in Rust by moomin on Monday August 31, 2020 @03:34PM (#24335154)
One of the smartest people I know swears by “Too many linked lists”.