Live data from Hacker News

Exercises to Learn Rust

rust-exercises.com

1–10 of 129 posts

Re: Exercises to Learn Rust

#4
> To verify your solutions, we've provided a tool that will guide you through the course. It is the wr CLI (short for "workshop runner"). Install it with:

> cargo install --locked workshop-runner

I have no idea what this program / package manager is so I was going to throw my hands up and say great another mac-only tutorial, but apparently this is a package manager for rust, and also apparently it comes pre-installed on manjaro lol

edit:

I'm confused, on the home page I clicked "next" which takes me to this exercise: https://rust-exercises.com/01_intro/01_syntax but on that ostensibly "first" exercise they write:

> The previous task doesn't even qualify as an exercise, but it already exposed you to quite a bit of Rust syntax. Let's review the key bits!

And keep referring to some prior exercise, that I can't find anywhere. Is there an "exercise 0" hiding somewhere?

Re: Exercises to Learn Rust

#5

[flagged]

I don't know rust, generally don't advocate writing things in rust but I find the people complaining about the people advocating for rust to be completely insufferable. People are talking about it because it's cool and new and shiny and they like it, you see it a lot because there's lots of people who find it cool and new and shiny.

Re: Exercises to Learn Rust

#8

[flagged]

> I do not understand why there are so many zealots around the language.

Neither did I. But then I took the time to learn the language, and I understood what all the hype was about. Maybe you should too, instead of just whining about it.

Re: Exercises to Learn Rust

#9

[flagged]

> Other than safety and the like...

This statement does a lot of work. Safety without compromise in speed on modern architectures is rather valuable. I dont think you understand the importance of that statement and why it is being used in the kernel. Depending on what you do, you may never need to code in rust (I dont) but dont underestimate how much humanity meeds that combination of safety and speed.

Re: Exercises to Learn Rust

#10

[flagged]

> Other than safety and the like.

I think these are some good points:

https://github.blog/2023-08-30-why-rust-is-the-most-admired-...

On the one hand, "safety" avoids the "use after free" or other bugs which plague programs written in C. For systems programming, that is significant.

On the other hand, the "safety" allows for much easier concurrency.

The higher-level stuff like "pattern matching" is really nice. It's nice enough that it motivated efforts like https://github.com/borgo-lang/borgo

Somewhat implicit is that Rust has enough of a community that there are many good packages/libraries and tools around it.

Post reply on HN