These are chat archives for rust-lang/rust

20th
Sep 2016
Dmitry Gritsay
@d-unseductable
Sep 20 2016 06:26
thank you @mhsjlw :)
Arthur Silva
@arthurprs
Sep 20 2016 08:38
@Fleshgrinder if you are still trying to optimize that AND your u64 keys are from a random source (or are already a hash) you can use this https://is.gd/AqwKsj
Michael Howell
@notriddle
Sep 20 2016 21:02
Since when does rust-lang have a gitter room?
mhsjlw
@mhsjlw
Sep 20 2016 21:03
since forever :D
It does not list this Gitter channel. I found that out from a Gitter suggestion.
Jonathan Turner
@jonathandturner
Sep 20 2016 21:09
some of us didn't know about it either
not sure when it got started
Ian Henry
@eeyun
Sep 20 2016 21:14
@jonathandturner do you see more traffic in here or in irc?
Michael Howell
@notriddle
Sep 20 2016 21:17
According to https://gitter.im/rust-lang/rust/archives/all, it dates from October of last year.
Or maybe they only hold onto logs for a year.
Nope, neither. They just only show the last year.
This might be the first post. Hard to tell, since it doesn't really say https://gitter.im/rust-lang/rust/archives/2014/10/09
It doesn't 404 when I replace 2014 with 1993.
Jonathan Turner
@jonathandturner
Sep 20 2016 21:27
@eeyun - tbh, I don't spend a lot of time in @rust on irc, mostly on the other channels
mhsjlw
@mhsjlw
Sep 20 2016 21:41
rust-lang/rust-www#529
please hop on that pr and make productive suggestions :D
JP Sugarbroad
@taralx
Sep 20 2016 22:14
What does 'static lifetime mean when it shows up on traits?
e.g. trait Xyz : 'static
often seen with Send
Does it mean that the object implementing the trait has to live forever?
Michael Howell
@notriddle
Sep 20 2016 22:22
It has to be able to live forever, meaning it can't contain any non-'static references.
JP Sugarbroad
@taralx
Sep 20 2016 22:23
ah, ok
Why would someone use that restriction?
Michael Howell
@notriddle
Sep 20 2016 22:24
&'static u32 : 'static, for example.
You need to make that restriction if you're going to push the reference to a thread that never terminates.
If you can statically guarantee that the thread won't hold onto the object forever, you can have a stricter bound.
JP Sugarbroad
@taralx
Sep 20 2016 22:26
Ah, hence Send + 'static