« first day (1547 days earlier)      last day (1944 days later) » 

12:02 AM
@E_net4wisheshappyholidays o_o
 
12:18 AM
@Shepmaster Don't you look at me like that... :[
 
12:45 AM
k.
@E_net4wisheshappyholidays ಠ_ಠ
Now. How do I mash clippy into rustfix
 
 
3 hours later…
3:37 AM
fn x() {
    crate<u8>::foo();
}
error: unmatched visibility `pub`
 --> src/lib.rs:2:5
  |
2 |     crate<u8>::foo();
  |     ^^^^^
wat
 
 
2 hours later…
 
3 hours later…
8:53 AM
fingers crossed :D
 
mmm, github has unlimited private free repos now
so great
I can finally move off bitbucket
 
Do you really need one? WHy don't you make it public? ;) (I mean, nobody is interested in your code anyway *scnr*)
 
@hellow my clients are
 
ihh, clients
 
yes, some people actually make money with coding
who would have thought
 
8:59 AM
^^
 
9:12 AM
Still limited to 3 persons. Why not use a private instance of gitlab ?
 
why not using a private git server in the first place? ;) I mean, git is not github and you can even use a shitty ftpserver for your git. You even don't have to trust them, because git uses has integrety
 
@DenysSéguret By private instance you mean something I actually need to configure and prepare a machine for?
@hellow yes why not live in caves without electricity or running water
 
because then we can't code ;)
 
@BartekBanachewicz A private server is handy for more than just sharing code...
 
@hellow neither we can with a shitty ftp server for code
@DenysSéguret yeah, not for storing code
 
9:15 AM
but really, what's the point? Do you want issue trackers and pull requests? Or do you really use git as a git?
 
@hellow I do want issue trackers and pull requests, yes.
 
okay
 
and I want reliable infrastructure which I don't have to maintain myself
administering servers properly is hard, and gets much easier when done en masse
if you're not a professional sysadmin, you're probalby doing it wrong
 
yes, probably ^^
 
so I gladly push that off to github staff and just use their services
 
9:17 AM
If you can live with the restrictions, sure :)
 
what restrictions (note that me having to ask speaks volumes about how important they are)?
 
this coorprate internet is so shitty... roughtly five times a day we don't have internet for ~1 minute... I don't know what they are doing..
Mainly the restriction is 3 collaborators for private repositories
But afaik you can't use things like travis for private repos as well
@Boiethios when I remove the dependecy of foo in the proc macro crate, I will get
6 | #[derive(Dump)]
  |          ^^^^ use of undeclared type or module `foo_dump`
which means I have to use foo_dump in foo, but then it would be a cycle again because foo_dump depends on foo?
 
9:33 AM
@hellow well, you need to pay for travis then IIRC
 
@hellow I'm sorry, I cannot help right now, but you should have a foo_core with your traits, and your foo depends on foo_core and foo_derive. But foo_derive should not depends on anything else necessary to code generation (no "domain" code).
 
thanks :) I will try to come up with something
 
9:50 AM
To say the thing differently, you do not need to depends on foo::Bar to generate some code with foo::Bar tokens. The derive crate only needs your code to be syntactically valid.
 
10:04 AM
there are an increase of the number of question since the new years or it's me ?
 
 
3 hours later…
1:10 PM
@DenysSéguret yes ^^
the edition feature was unstable until 1.31 blog.rust-lang.org/2018/12/06/…
 
he found it alone, in fact (that's why I removed my comment here)
 
i know :)
@DenysSéguret btw: miaou.dystroy.org/3 your certificate is invalid, you should use a proper one, e.g. from let's encrypt :)
 
Hu ? It does come from let's encrypt and I thougt it to be valid
 
oh! nevermind
my cooperate firewall doesn't like your url and intercepts it... stupid thing, sorry!
 
ok thanks
 
1:15 PM
The content is blocked due to the following condition: Blocked Category (Games) lul
 
well... miaou is mostly used by gamers (of free mmorpg)
 
ahh
 
@hellow During a time, I had everything related to Rust categorized as "gaming" at work :D
 
1:54 PM
@hellow heh, that's not a firewall, that's a mitm
 
the firewall is doing mitm, yes :)
sophos firewall if you are interested in things like that
I never did that in my old company where I worked as a sysadmin
 
I'm decidedly not
I hate firewalls
they're universally horrible
 
^^
nah, firewalls are great, if you want to keep your hue light in your home and not be part of a bot network
 
somehow things that should amount to "return (port in allowed ports)" manage to cut the network speed by an order of magnitude
@hellow if I ever get wifi connected home appliances, it'll be a on a dedicated wifi with no internet access
but frankly there's little chance I will after my washing machine
reminds me I still have to leave an angry rant on LGs website
 
^^
My wife made be buy a new printer (why should we, we do both have one at work...), but nevertheless I don't want it to do anything expect printing in my home, so I block it from the outer world
 
in other things,
my coworker sent me this
I wonder if it's possible to use Glium in the browser
 
@PeterHall watafaq ^^ I mean.. sheep is really nice when it comes to duplicates IMHO. He first posts a comment that he thinks that this is a duplicate, asks if that is correct and suggests to edit the question otherwise....
 
@hellow Maybe I should do that, too.
 
@hellow The guy didn't actually give an example of course...
 
2:29 PM
> after complaining to stackoverflow help
wonder what that is
 
@Shepmaster we never reached a conclusion on vs ..
Worth a meta post?
 
@PeterHall true fact. seems useless other than the links in it, right? Was our last suggestion to have procedural-macro / macro-by-example (names bikesheddable)?
 
what about proc-macro?
 
@Shepmaster Yeah. Well... I was spitballing at the time. But I said something along those lines
 
2:44 PM
@PeterHall I don't think a meta post is a terrible idea. If nothing else, it would allow the room members to talk about it in a more async fashion. Best case we get some useful feedback from outside
 
@hellow but why buy it, home printer are almost useless and a waste of ressource
 
I second that!
but my wife wanted one... *rolling eyes*
 
@Stargateur To print things
That's the primary purpose of a printer
 
But normally I print private things at work because why not ^^
 
@Boiethios printer that are not used daily loose ink, just use the printer of your work is way better
 
2:51 PM
Oh, sure. But first, the printer at work is really annoying to use (must login with several steps), and sometimes, my wife needs to print something while I'm at work. So she must wait 2 days to do it.
 
This is one of the downsides of working at home... dealing with shitty printers...
 
Or you can buy/rent an expensive one :P
 
@Boiethios why doesn't she mail the document to you ? My wife is in a room 10 meters from me and she mails me things to print all the time
 
I bought a ~$300 laser printer. Works well
 
@Boiethios I think the next one will be a laser, yes. I'm fed up with the HP/canon extorsion on ink cartdridges
 
2:53 PM
Because sometimes she needs to scan something before printing. And better buy an all-in-one printer than a scanner.
 
I bought an all-in-one HP printer, and it works very well in Linux.
 
I dunno about the all-in-one though. We got a separate scanner. They are both wireless
 
> Discontinued Product ^^
 
3:04 PM
@hellow sure, but it wasn't when I bought it ;-)
$130, it seems
Wonder where I got 300 from
 
european price ? ^^
 
Nah, I most likely just mis-remembered. My dad is an artist and I convinced him to buy a color laser printer once. That was thousands of dollars. I wonder if that ever worked out to be a savings...
@DenysSéguret congratulations, by the way!
 
thanks
 
@Shepmaster laser are very good
 
3:13 PM
Is there any blog, or other source, focusing on rust micro optimization ? Should I dive into llvm's IL if I want to know the rust specific performance pitfalls ?
 
@Shepmaster I got one before, the scan somehow have a bug, and I can't print anything because scan was block
 
@PeterHall Thank you!
 
How would those tags be discovered by people asking questions ?
 
3:30 PM
stackoverflow.com/questions/54094676/… => The proposed duplicate suggests RefCell, and that's great for the duplicate, however in practice there are more choices than that: (1) clone one element, to avoid the borrow, (2) use Cell if the elements are Copy and you need dual mutability, (3) use RefCell as the silver-bullet.
Should we add a complete answer to the proposed duplicate before closing? Laying out the alternatives and when you'd pick one rather than the other?
 
> have you benchmarked to see what the "cost" is?
how would he benchmark and measure this specific cost ? Especially without alternative
 
@DenysSéguret: If you have a benchmark, you can profile.
 
@MatthieuM. I could update my answer, but it will be difficult to make it fitted to the question.
Or one can create a self-answered question with the right stuff.
 
4:02 PM
@Shepmaster: They also have a memory cost :) — Matthieu M. 40 mins ago
haha
 
4:28 PM
hm I need to decide between hardware tinkering and rust tinkering today
 
@Stargateur: It's actually a pretty important consideration in a number of cases. For example, I've had a map long -> long that was accessed in a latency-sensitive path. The actual payload is 16 bytes per entry. In a std::map you get +3 pointers worth of data per node (parent/left child/right child) + 1 pointer for the color (red/black tree), and thus each node is 64 bytes, or x4 the original size oO
That's the difference between getting the map in L1 and not...
 
@MatthieuM. If I need perf I will not use any map
 
4:48 PM
hum... a 15% gain in file search speed by using dirEntry.metadata() instead of path.metadata() when iterating
 
@DenysSéguret They wouldn't be. They would have to be re-tagged :/
 
5:43 PM
@MatthieuM. one of the answers
The other is zero-overhead
And yes, I think it would be fine to have more alternate answers, such as one containing Cell
 
This really looks like an exact duplicate. And OP doesn't answer comments. Am I right in assuming this would have been closed since a long time were it not the reddit rant ?
 
@DenysSéguret I'm not worried about this Reddit rant at this second. Previous ones have led me to use the comment before hammering, so I might indeed learn and improve.
I still prefer if there have been any other people who vote to close. This makes me feel better that I'm not just single-handedly controlling everything
And it shows the OP that it's not just one opinion.
I really wish that gold-badge meant I could pick 1-5 close vote's worth.
"I feel 3 votes confident this is a dupe"
 
I often feel this way when looking at js questions
(I have a few hammers myself)
 
5:59 PM
@PeterHall so maybe [rust-macros] and [rust-procedural-macros] and we remove [macro]?
 
Yeah
but I'd shorten it to [rust-proc-macros]
 
"yuck"
I don't have the strongest opinion, but in a vacuum I'd spell it out
 
synonym it
 
6:38 PM
@Shepmaster don't worry, close hell out of stuff
 
7:00 PM
@BartekBanachewicz I don't see what exactly should be improved but we should worry when people think SO is very unwelcoming to Rust coders
 
Yep.
I try to tailor duplicates to the exact question in the comments.
e.g.
 
 
1 hour later…
8:05 PM
> create an account, ask anything about Rust, Shepmaster will find something wrong with your question and try to delete it.
> Even if nothing is wrong, as with my last question he will just mark it as duplicate. He doesn't make any effort to actually answer the question, or even understand it. This is usually after an actual helpful person answers the question.
> No other language has this problem with a moderator. I have to ask my questions on reddit because he won't stop. Every single one of my questions. It's so bad I stopped using stack overflow.
@PeterHall ^ If you care to try and figure out the questions in question, we can review them here
Or whoever the other participant was (@hellow maybe?)
At least the OP of that Reddit post says
> every forum thread, Stack Overflow question and GitHub issue I found myself in, everyone was kind and helpful.
 
@Shepmaster but you are not moderator ;)
 
@Stargateur And the number of times I attempt to delete a question is minuscule. That's a problem of a person not using the same terminology and / or understanding the medium.
Just like people get angry that things on SO can be edited by other people.
 
That doesn't surprise me, every noob always want other people fix their code for them without have to provide any effort, like copy paste the "solution". That not solve the problem because the next time they will face to similar situation they will need to ask again someone fix their code for them. I also notice this in my school.
with your work here where you close as duplicate, that is not surprising that you have some folk that are not happy.
 
8:52 PM
@Shepmaster My jimmies were rustled!
:(
 
@E_net4wisheshappyholidays in which particular way?
 
@Shepmaster Meh, just the part where they don't understand how SO works in general.
And in the end, what we get back from them is toxicity against other users and giving SO a bad name.
Recently I was indirectly called a fascist from someone who unpleasantly complained about downvotes. :-(
 
9:09 PM
@E_net4wisheshappyholidays well... are you a fascist? Sadly, can't tell easily these days (half /s)
 
@Shepmaster I once took one of those online tests for a political wing check, and got centrist.
Fun (not) fun
 
@E_net4wisheshappyholidays oups you did it again
 
@Stargateur Nothing new under the sun.
 
@Shepmaster feel old yeah
@E_net4wisheshappyholidays not politic but 16personalities.com/profiles/5f57936cf40c9
amazing test BTW
@Shepmaster meh I try hard to find this pop corn link in reddit snif
 
9:28 PM
@Stargateur it's starred over on the right of the chat
 
on SO ???!!!
 
8 hours ago, by Peter Hall
@Shepmaster https://www.reddit.com/r/rust/comments/acljyp/new_to_rust_very_happy_to_be_here/‌​eday71y/?context=1
 
some lecture to improve my english skill... I still have hope
@Shepmaster oh I see I miss it
 
9:55 PM
@Stargateur That is fun indeed. It appears I'm a virtuoso. :o
 
@E_net4wisheshappyholidays I advise you to add your email, that create an account for you, this allow you to keep your previous result.
@E_net4wisheshappyholidays also do you think the test is close of what you think you are ?
currently, every time I send the test, it guess right, not 100% match but it really did a great job for a automatic test
 
@Stargateur Well, most of the descriptions in there feel somewhat accurate, although it did not capture all of my personality traits.
 
10:11 PM
and all personality listed are all very different that not like some "your name personality" where there are so not accurate that anyone match with the description.
That surprise me to read them all, and see that every time the test guess right for people that I know, including myself
 

« first day (1547 days earlier)      last day (1944 days later) »