No tea!? I hope that at least you live in northern hemisphere. Not having tea is easier in warm summer climat.
Get well soon.
I like tea all year round, winter or summer. Though I prefer iced tea in the summer.
I love magrebian mint tea in summer. You drink it hot yet it is so refreshing
Get well soon! I'll use that time to catch up
Ouch! I hope you get well soon.
Oh god! I feel this ... I've bitten into my inner cheek real bad in the past! Hope you heal well!
I don't know where you got up to last stream but I'm presuming you've gotten a fair way through the smart pointers chapter (perhaps finished it).
Any one have thoughts on them or general experience with the concept? I don't and am curious what everyday use cases they offer (as I'm unclear)
As far as Box
is concerned, I get the use case for large data structures, where moving a pointer around is cheaper but because it also owns its data you don't have to worry about lifetimes.
I've seen (and posted somewhere here before) about how a struct
should never have a reference as a field but should have a box
instead ... not sure I appreciate what that scenario looks like.
Rc
seems genuinely useful as a way of just opting out of lifetimes and ownership when the data doesn't need to be mutable.
And then RefCell
, especially in combination with Rc
, seems ideal for constructing interesting data structures that seems much more natural for package development rather than in application, but feels like a nice technique for when the time comes. Anyone aware of some good patterns of general use with RefCell
and Rc
?
I'm currently reading through the concurrency chapter and it seems that the smart pointers of most practical use might be the concurrent equivalents: Arc
(concurrent equivalent of Rc
) and Mutex
(concurrent equivalent of RefCell
).
Beyond all of that ... this stream is pretty close to finishing the book and moving on to other more practical things ... any one have any thoughts on what to do that could work well at a collective level?
Learning Rust and Lemmy
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
- Rust for Lemmings Reading Club (portal)
- Rust beginners challenges (portal)
- Heroically Helpful Comments
Policies and Purposes
- This is a place to learn and work together.
- Questions and curiosity is welcome and encouraged.
- 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.
- 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
- Lemmy.ml rule 2 applies strongly: "Be respectful, even when disagreeing. Everyone should feel welcome" (see Dessalines's post). This is a constructive space.
- 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.
- Posts and comments should be (more or less) within scope (on which see Policies and Purposes above).
- See the Lemmy Code of Conduct
- Where applicable, rules should be interpreted in light of the Policies and Purposes.
Relevant links and Related Communities
- Lemmy Organisation on GitHub
- Lemmy Documentation
- General Lemmy Discussion Community
- Lemmy Support Community
- Rust Community on lemmy.ml
- Rust Community on programming.dev
Thumbnail and banner generated by ChatGPT.