« first day (2100 days earlier)      last day (1393 days later) » 

12:05 AM
When shep ask a question:
 
 
11 hours later…
11:03 AM
Do not forget to vote on the candidates for SO moderator: stackoverflow.com/election
 
@E_net4alreadyvoted Or consider not doing so to signal management there's something horribly wrong with SO
 
@PeterVaro Moderators play in the interests of the community. Not voting doesn't help.
 
@E_net4alreadyvoted I know what they do, I've been around for years. But by not doing so we could sabotage the activity on SO until the management realises based on their analytics that things are not going well..
 
@PeterVaro Meh, we tried. And one may do it again if the time is right. But for now, the platform needs more moderators.
 
:shrug:
 
12:06 PM
@E_net4alreadyvoted there is no point to vote I don't know any of them
 
12:28 PM
@Stargateur You can read their answers to the questionnaire.
 
 
2 hours later…
2:48 PM
@Stargateur Agreed. And I don't believe a vote will get the "best" people. My vote doesn't count because it's essentially random - even if I read the posts and determine which of the candidates can promote themselves the best - so what?
 
3:30 PM
What is the difference between func(&mut scope: Scope) and func(scope: &mut Scope)?
 
@Ghostff one compile the other don't
 
@Stargateur It's fn scope_thing(mut scope: Scope), to make scope mutable inside the function, so do you don't have to shadow it right?
 
3:45 PM
@Jason yes
you can do some pattern matching like fn func((a, b): (i32, i32)) {}
 
4:11 PM
@Stargateur please can you point me to a use case where func(&mut scope: Scope) is ideal.
 
@Ghostff it's doesn't compile
 
4:24 PM
It's not the best example, but I liked not having to create an extra variable that would "shadow" `n`:

fn to_digits(mut n: i64) -> Vec<i64> {
let mut digits = vec![];

while n > 0 {
digits.push(n % 10);
n /= 10;
}

digits.reverse();

digits
}

fn main() {
let digits = to_digits(42); // [4, 2]
}
 
Thanks Guys, I get it.
 
:-) 🦀
 
JetBrains IDEs gives you an "OK" when you do func(&mut var : ...)
 
4:36 PM
@Ghostff Well... That works but perhaps not in a way that you would be expecting to work.
Stargateur was explaining that &mut var is a pattern. So pattern matching is used as a way to dereference the mutable reference into a variable var.
 
 
3 hours later…
7:16 PM
posted on July 14, 2020 by Rust Security Response WG

This is a cross-post of the official security advisory. The official post contains a signed version with our PGP key, as well. The Rust Security Response Working Group was recently notified of a security issue affecting token generation in the crates.io web application, and while investigated that issue we discovered an additional vulnerability affecting crates.io API tokens. We have no evi

2
 
> "API keys for crates.io were generated using the PostgreSQL random function, which is not a cryptographically secure random number generator ... API keys were being stored in plain text"

Really.... :v
 
that not really a big issue
 
7:50 PM
Perhaps not, in some people's opinion, but if there're problems like these in the parts that are very easy to avoid messing up, it's likely that there might be bigger problems lurking around that have not yet been "found".
 

« first day (2100 days earlier)      last day (1393 days later) »