Live data from Hacker News

Exercises to Learn Rust

rust-exercises.com

101–110 of 129 posts

Re: Exercises to Learn Rust

#102
post #96

I skimmed through a few sections in which my rust knowledge is basic at best (threads). Really enjoy the no-nonsense, not-a-word-wasted style. My first thought after spending 30 minutes with this that it could easily become my new no. 1 recommendation for rust onboarding, toppling the zero2prod book. Then I figured out why this felt familiar, it's from the same author :D Will definitely dive into it this weekend.

Zero2prod doesn't really teach Rust, it's more about setting up an API for people who already know Rust.

well, you don't need to know Rust to complete Zero2prod but you need to have a backend background for sure.

Re: Exercises to Learn Rust

#104
post #96

I skimmed through a few sections in which my rust knowledge is basic at best (threads). Really enjoy the no-nonsense, not-a-word-wasted style. My first thought after spending 30 minutes with this that it could easily become my new no. 1 recommendation for rust onboarding, toppling the zero2prod book. Then I figured out why this felt familiar, it's from the same author :D Will definitely dive into it this weekend.

Zero2prod doesn't really teach Rust, it's more about setting up an API for people who already know Rust.

I read the book while knowing almost nothing about the language, but yes I did complement it with "the rust programming language" book at the same time.

I still think zero2prod is extremely beginner friendly, you don't need to know rust well to follow it. You can just dive into rust concepts as you read it.

Re: Exercises to Learn Rust

#105
post #96

Earlier quoted context omitted.

Zero2prod doesn't really teach Rust, it's more about setting up an API for people who already know Rust.

And it also isn't 100% best-practise, more like all-practise. It tries to show any and every way you could approach a problem while somehow keeping it minimal. Really like it but if you follow the tutorial 1:1 you'll most likely get frustrated

> Really like it but if you follow the tutorial 1:1 you'll most likely get frustrated

I went through it and hated it. It's very tedious and I felt like I learned nothing from following along.

Re: Exercises to Learn Rust

#107

What do you folks normally do after learning a language like this? (Assuming you don't use it for your day job.)

I'm trying to write a Rust program to transform gamepad inputs to MIDI events -- mainly CC, so that one can control a filter with a joystick for example. But it should also be possible to play notes. (The field of MIDI controllers appears quite limited, and "pads" available on some keyboards are not fun to use at all.)

I implemented this in a webapp, but it's really awkward to have to go through the browser back in the DAW. An executable would be more elegant.

PS1: Some DAWs allow for gamepad input, but it's usually limited, difficult to configure, and buggy (Reaper for example has a bug that was first raised in... 2009 and never fixed).

PS2: I had hoped LLMs would help... but boy do they not! ;-)

Re: Exercises to Learn Rust

#108

Earlier quoted context omitted.

> crab-in-a-human-skull cover Anyone know the story behind this?

Author here! To be fair, there is no particular backstory. I picked a hermit crab as the book logo since crabs are strongly associated with Rust due to Ferris, Rust's mascot. I then landed on that style (and the skull) because they looked sick and distinctive. The cover images of many technical books are incredibly dull these days.

IMO thats a better reason than "long winded explanation of symbolism" :D

Re: Exercises to Learn Rust

#109
post #7

Worth noting that this set of exercises was created by the author of "Zero to Production in Rust", the well-reviewed book with the crab-in-a-human-skull cover[1]. [1]: https://www.zero2prod.com

Also the same one who is making a new web server framework for Rust called Pavex, which is apparently pretty novel in how it works compared to others like Actix Web and Axum [0][1]. [0] https://www.lpalmieri.com/posts/a-taste-of-pavex-rust-web-fr... [1] https://blog.logrocket.com/using-pavex-rust-web-development/

Here’s a great podcast episode with the author discussing Pavex, etc.

https://rustacean-station.org/episode/luca-palmieri-pavex/

Re: Exercises to Learn Rust

#110
post #50

Earlier quoted context omitted.

Office team never was a big .NET fan, and they were partially responsible for Longhorn's failure, see also Hilo C++ tutorial made by the team as part of Vista SDK tutorials, or their love for Webwidgets to C++ code, so that isn't that surprising. It isn't as if C# vlatest wouldn't be able to take up the task, Bing, XBox game servers, and other large scale services are fully on .NET.

But like the Office services, these are all significantly older than Rust. Bing the branding is like 15 years old, the underlying service is older still (as "Live Search") So when this stuff was built the high performance option was C++ and there is an obvious reason to avoid that if you can. Rust means you can have the excellent performance without the absurd foot guns. Whether you chase that depends on other strate…

And the strategic priority of those business units has been to take advantage of all the performance improvements that have come out of Midori toolchain into Core CLR/Native AOT toolchains, while exposing MSIL features only available to C++/CLI to C# as well.

Just like Rust can take advantage of the LLVM IR features used by clang, so does C# in regards to the MSIL used by C++/CLI.

Post reply on HN