this post was submitted on 05 Apr 2024
46 points (96.0% liked)

Learning Rust and Lemmy

391 readers
1 users here now

Welcome

A collaborative space for people to work together on learning Rust, learning about the Lemmy code base, discussing whatever confusions or difficulties we're having in these endeavours, and solving problems, including, hopefully, some contributions back to the Lemmy code base.

Rules TL;DR: Be nice, constructive, and focus on learning and working together on understanding Rust and Lemmy.


Running Projects


Policies and Purposes

  1. This is a place to learn and work together.
  2. Questions and curiosity is welcome and encouraged.
  3. This isn't a technical support community. Those with technical knowledge and experienced aren't obliged to help, though such is very welcome. This is closer to a library of study groups than stackoverflow. Though, forming a repository of useful information would be a good side effect.
  4. This isn't an issue tracker for Lemmy (or Rust) or a place for suggestions. Instead, it's where the nature of an issue, what possible solutions might exist and how they could be or were implemented can be discussed, or, where the means by which a particular suggestion could be implemented is discussed.

See also:

Rules

  1. Lemmy.ml rule 2 applies strongly: "Be respectful, even when disagreeing. Everyone should feel welcome" (see Dessalines's post). This is a constructive space.
  2. Don't demean, intimidate or do anything that isn't constructive and encouraging to anyone trying to learn or understand. People should feel free to ask questions, be curious, and fill their gaps knowledge and understanding.
  3. Posts and comments should be (more or less) within scope (on which see Policies and Purposes above).
  4. See the Lemmy Code of Conduct
  5. Where applicable, rules should be interpreted in light of the Policies and Purposes.

Relevant links and Related Communities


Thumbnail and banner generated by ChatGPT.

founded 9 months ago
MODERATORS
 

Hey!

I'm a professional software engineer with several years of experience using Rust. Unfortunately I don't really have the time to contribute to Lemmy directly myself, but I love teaching other people Rust so if:

  • You are curious about Rust and why you should even learn it
  • You are trying to learn Rust but maybe having a hard time
  • You are wondering where to start
  • You ran into some specific issue

... or anything to do with Rust really, then feel free to ask in the comments or shoot me a PM ๐Ÿ™‚

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 7 months ago (1 children)

(Iโ€™m still developing an opinion on Golang, not sure how I feel about it).

I don't have concrete experience with Go but I've read enough about the language to form an armchair opinion. If you ask me, it seems pretty bad. It's like you just took C and you threw a garbage collector and an async runtime on top and called it a day. No lessons learned from any of the 40 years prior of programming language theory, just C with a garbage collector. I think the only reason anyone is using Go is because it's Google and they pushed it a lot. If someone made Go today and wasn't a billion-dollar corporation and tried to convince people to use it, nobody would use it.

I have plans to eventually convert the C code of the terminal based browser, links, to a Rust project to learn more about how a very basic browser is built.

I usually use reqwest for HTTP request stuff. But if your goal is to learn about more low level stuff, you might want to use a lower level library like hyper or even just only using the stuff in the standard library.

Iโ€™d also like to do the same for the TUI system monitoring tool btop, which is written in C++.

I'm a big fan of bottom, which is a TUI resource monitor. Maybe you'll get some inspiration from there.

But what do you make of this plan? Are their any caveats or concerns I should be made aware of in regards to this endeavor?

I can't really think of any problems. I think it sounds like a good idea to build some concrete stuff and see what you run into. Just realize that it might take a while before you get used to writing idiomatic Rust code, so don't expect your first project to be your prettiest work... ๐Ÿ˜…

[โ€“] [email protected] 2 points 7 months ago* (last edited 6 months ago) (1 children)

Definitely. Okay, that's about all I have to ask now. I'm bookmarking this thread though to refer back to. You've given me some great insights and resources, and have also pointed me in the right direction going forward.

For now I'll be just making my way through the Book. I also have Programming Rust, by O'Reilly, Command Line Rust by O'Reilly, and Rust for Rustaceans to reference along with the plethora of online resources.

I might PM you some time in the future (if that's okay) should I get stuck on something I can't figure out through the usual means (i.e. documentation, stack overflow, etc.).

Again, can't thank you enough for the help. Cheers!

[โ€“] [email protected] 2 points 7 months ago

plethora of online resources

There's also zero2prod.com which is really nice as well. There's even a free sample of the book online.

I might PM you some time in the future (if thatโ€™s okay) should I get stuck on something I canโ€™t figure out through the usual means (i.e. documentation, stack overflow, etc.).

Feel free to but also consider just posting a thread here so others can also see and learn ๐Ÿ™‚. Just be sure to @ me to make sure I see it.