« first day (2331 days earlier)      last day (1144 days later) » 

6:07 AM
@EnnMichael There are many kinds of tyrannic rulers. Such a concept could be very convenient to a parent (trust me, it's not so easy to teach kids), or just enlightened leaders really wanting people to stop eating some meat which is dangerous on hot climates, to stop bringing at their mouth the hand they used to wipe their ass in a country with scarce water, etc.
 
 
2 hours later…
8:14 AM
Good morning!
 
8:56 AM
Morn
 
9:54 AM
Guess which site also has a tag. :)
2
 
@E_net4wantsmoreflags Easy: that's Miaou
 
@E_net4wantsmoreflags I see they're fond of capitalizing it as well
0
Q: RUST! are items more rust prone in an free standing shed than in my garage?

Cool Pontiacmy garage is not heated or cooled but it seems tools dont rust there as much as in my free standing shed. why is that. can i simply cover outdoor metal items with a tarp to inhibit large % of rust by not allowing moisture to settle on them at night?

 
 
1 hour later…
11:01 AM
Given that to_string() and to_owned() now have the same performance characteristics for str, both calling .to_owned(), if I'm not mistaken, is there one that you prefer?
 
I have done both, but I still use to_string more frequently. No real rationale to this decision, though.
 
Just do like everybody: use both randomly in your code. I have functions with both, and maybe some String::from or into() in the lot
 
@E_net4thecircusstopper Haha, I feel the exact same way and I was hoping there'd be a definitive answer!
 
Primarily opinion based.
 
In fact you often have hints from the surroundings. Sometimes the intent is clearly just to make it owned, some times there are other conversions with string building
 
11:04 AM
.into() is a bit of a different story, though. This one can lead to minor breaking changes.
 
yeah, I'm not a fan of the whole From/Into practice
 
@DenysSéguret Yes, I try to go by intent, to make it clear to the reader what is happening. Sometimes I feel one or the other fits better.
 
@E_net4thecircusstopper Wym
 
I think I've found a use for a twitter poll.
 
@Jason I'm 100% certain there were already dozens polls on this precise topic
 
11:08 AM
@EnnMichael For deref-coerced values, x.into() could be calling an impl of Into for the Deref::Target of x. But adding an impl of Into directly for the type of x can change the behavior of the program.
 
Isn't there a similar problem for clone, though?
...Or any other trait, for that matter?
 
Well, yes.
Which is one of the reasons we have this recommendation
"The Rc::clone(&from) syntax is the most idiomatic because it conveys more explicitly the meaning of the code. [...] this syntax makes it easier to see that this code is creating a new reference rather than copying the whole content of foo."
 
@Jason In general to_string is more explicit than to_owned. But it depends on the context: if the context requires something to be ToOwned or Into<X>, From<X> or whatever other options are out there, then I use those, because in that context, that's more explicit. But if there's no special requirement in the context, then I prefer the to_string. I think the rule is as simple as whatever is more descriptive and more self-explanatory if there are multiple choices available.
 
@E_net4thecircusstopper Oh, I hadn't read that, but I like that a lot! It somewhat bothered me in it giving the illusion of possibly being an expensive clone.
 
@DenysSéguret Why did you write miaou in JS though
I was so confused
 
11:19 AM
Because I wrote it in 2013 and that websockets in rust in 2013 weren't quite hot ?
 
@PeterVaro Thanks and good morning Peter! I agree. I think that settles it then. :-)
 
The truth is I was curious about express and I wanted to try it
 
That's understandable. But wouldn't it have been easier to write it in TS, at least?
 
In 2013 TS was more like a POC
 
Maybe TS wasn't so hot back then either huh
Lol I see
Well, I like how you didn't use any ORM
 
11:23 AM
Miaou always had a very low amount of bugs and a very fast dev pace. Having a simple plugin based codebase, based on the syntactic power of JS is key
You have no idea of the number of features, like games, graphs, tags, multirooms presence, video, etc. in Miaou
An example of the features:
 
(image served by miaou's file hosting)
 
 
1 hour later…
12:39 PM
 
L M A O
 
Blame the intern. Naturally.
 
Yeah, that's what you do when you expect your "judges" to just accept anything because nobody wants to dig deeper
 
@PeterVaro well, there didn't explicitly, there say he have break a rule, I think they should not have talk about it like this, they should have say "A mistake we made by not validating our intern work"
 
@Stargateur That's what I was referring to, yes. Such a silly mistake (and likely many, many others) are not the fault of the intern. It CANNOT BE their fault by definition. They are only interns and need to be supervised. The same for apprentice, junior, medior, senior, etc. level things. If someone fucked up something, their managers have to take the blame.
 
12:48 PM
@PeterVaro clearly, there is no debate here
 
In most industries there are audited practices, and rules you must follow (see ISO9000 for example). Not following these rules is enough to be a breach of contract. But I guess when you work on defense and security for the US government quality and liability don't matter
 
@DenysSéguret you mean the society would have problem cause their break the contract with government for example ?
 
@Stargateur Willing to take executive pay, but not executive responsibility, funny.
I have such a strong dislike for the people that are blaming it on the intern.
 
1:03 PM
@DenysSéguret what do you run miaou on?
Which provider, I mean
 
@EnnMichael dedicated server at ovh. But Miaou is very light, you could make it run on anything
 
Do you have automated deployments?
 
I have a deployement script. But what's exactly your concern here ?
There's a docker solution too
(didn't test it recently but I didn't change miaou in the last 3 years)
 
I dunno
I'm just curious about what you use
Nowadays everybody seems to be crazy about running shit on a rented k8s cluster
 
@EnnMichael I like to have my own server. I can do whatever I want on it. I always make new crazy stuff.
 
1:13 PM
@EnnMichael that nice for scaling but when you only need one server it's pointless
 
Every ten years I change the server and that's all, the bills are constant, I don't care about anything. And one server is enough to run a lot of things
 
clearly
 
Many people who have a super fancy AWS config and wake up with a bill of 10k€ overnight could probably just have used a dedicated
 
@DenysSéguret Is the database on the same server?
 
@EnnMichael yes
with backups every night on another site
 
 
4 hours later…
4:58 PM
@Stargateur I've tried to clarify your addition to the install faq of broot. Can you please check I didn't misunderstood ? dystroy.org/broot/common-problems/…
 
 
1 hour later…
6:19 PM
@DenysSéguret yes, only thing is I give a full example that include the "fr-fr" at the end but that not really important and since you remove the full output, you could have only write "System.Text.UTF8Encoding"
 
Oh, yes, I wanted to remove the fr-FR and missed
 
 
1 hour later…
7:36 PM
Anybody here ever used CouchDB?
 
One more time, I'd like a take function on vecs
 
@DenysSéguret Out of curiosity, how would it work? I'm thinking of Iterator's .take(). Do you want it to take elements at the start of the Vec?
 
just like what I often do:
let mut paths = Vec::new();
paths.append(&mut self.paths);
This could probably be done more efficiently, by giving away the pointer (and thus resetting the capacity of the source vec)
or is there a mem::thing I could use already ?
 
@DenysSéguret Is that a full example? :thinking: Where's the take?
Also, why aren't you implementing it yourself? You can always extend an external type with an internal trait
(I really don't see what's stopping you)
 
@PeterVaro I'm just asking for a facility to not have to do it myself. I'm just lazy
 
7:51 PM
@DenysSéguret Fair deuce, say no more ;)
 
@DenysSéguret There is a std::mem::take, but that doesn't seem to be what you're looking for?
 
8:08 PM
I should really learn more about unsafeto figure out what exactly is going on with the append implementation.
 
@DenysSéguret I don't follow
because mem:take would do what you want
 
That would be the following @Stargateur @DenysSéguret? I'm not sure if I fully understand either:
let mut src = vec!["secret_files", "passwords", "solarwinds123"];
let dst = std::mem::take(&mut src);

println!("src: {:?}", src.capacity());
println!("dst: {:?}", dst);
src: 0
dst: ["secret_files", "passwords", "solarwinds123"]
 
8:59 PM
What tools do you use to profile Rust
I saw a very funny meme once
If someone has it archived somewhere I would appreciate it
It's like a guy holding a gun to his head
And there's some text on the gun which says ".unwrap()"
 
 
1 hour later…
10:03 PM
@EnnMichael Have you looked at flamegraph already? I still need to give it a look.
 

« first day (2331 days earlier)      last day (1144 days later) »