I've been using Rust for ~3 years now, and have been trying to learn C++, but I've been so spoiled by the entire Rust ecosystem's user friendliness that it's a very daunting task.
1,100 karma · joined July 12, 2017
I've been using Rust for ~3 years now, and have been trying to learn C++, but I've been so spoiled by the entire Rust ecosystem's user friendliness that it's a very daunting task.
Have you checked out the osdev wiki and forums? There's a good deal of info on both of those topics there.
What are you guys eating if you're not already cooking/eating leftovers 4+ nights a week? This is absolutely mind boggling to me... I eat out maybe 1-3 times per month, I don't think I would even want to go out more than that.
Are people actually eating out 3 or more times a week? I'm convinced that you aren't actually saving that much time vs cooking.
Lets say the current price for insulin is $200. I see this margin, and say "I can produce insulin for cheaper, and I'm happy with selling it for $50". The government is placing restrictions on new competitors, so I can't just come in and sell insulin for $50. There is a restriction on competition, which causes artificial prices
Some people handle stress in positive ways - for example, I find I work much better under some degree of stress (e.g. deadlines) - without stress, I would just procrastinate indefinitely. Under emotional stress, I typically go hard in the gym.
Other people seem to breakdown under stress though, and I can't imagine that's healthy.
I strongly prefer aisle seats. I once had a girl ask me to switch seats with her so that she could sit next to her boyfriend. Since she had a middle seat, I politely declined, explaining that I would only switch with another aisle seat. She proceeded to throw a fit, calling me an asshole, etc, etc. I paid extra (how have we even come to this?) to be able to pick my seat, I'm not going to give it up for free.
Don't let people bully you.
struct S {
a: Cell<u64>
}
struct T {
b: u64
}
To mutate field `b` on `T`, we need a mutable object or reference. However, we can mutate field `a` on `S` via an immutable reference. Typically this is used to encapsulate some kind of interior state that isn't visible outside of the struct's methods, and helps in certain situations where using a mutable reference might cause some hair pulling due to the borrow checker