« first day (1546 days earlier)      last day (1933 days later) » 

12:04 AM
@trentcl some SO search protips: add "is:q" and sometime try quotes. example.
 
@Shepmaster neato 👍
 
the quotes are hit-and-miss
but narrowing to questions only usually improves the duplicate probability
 
@Shepmaster makes sense. Especially when searching for error text
 
12:52 AM
@trentcl reduced
 
@Shepmaster I assume you uncommented the loop yourself since it's still commented out in the OP's link
and with the loop commented out it's fixed by NLL
 
1:07 AM
@trentcl I started with this link
@trentcl you find any dupes?
Candidates I found
1
Q: error: `line` does not live long enough but it's ok in playground

KadokI can't figure it out why my local var line does not live long enough. You can see bellow my code. It work on the Rust's playground. I may have an idea of the issue: I use a structure (load is a function of this structure). As I want to store the result of the line in a member of my struct, it ...

1
Q: Value does not live long enough when trying to set a variable outside a loop from inside the loop

AgenerickI'm making a Discord chat bot using discord-rs, starting from this example. Everything was working and compiling fine until I tried to modify a value that is declared before a loop. I'm trying to change prefix to the second word that is entered in a command: extern crate discord; use discord::D...

 
@Shepmaster well I'm tempted to focus on the non-loop version where the fix is moving the input declaration to the top of main (or just switching to the 2018 edition)
but that might be a little too pedantic
 
both of which are the same "set a variable outside of the loop to a value inside the loop" core issue
 
@Shepmaster I like this one, it seems a pretty straightforward port
 
Yeah, and even matches the words I just said (without me realizing it)
Care to cast a close vote to get your name in the lights?
Then I can swing in with Mjolnir
 
sure
ah no
I VTC'd because of the lack of MCVE
which still hasn't really been fixed :/
 
1:20 AM
true
 
 
8 hours later…
9:28 AM
assert_eq!(a, b.map(|x| &x[..])); doesn't compile anymore
wtf²
 
@Stargateur If that ever compiled, the question is: was it correct?
 
@hellow it should no ?
 
doesn't compile with 1.21.0
 
-_-
I remember compile this
 
doesn't compile with 1.14.0
 
9:37 AM
Oo
 
doesn't compile with 1.1.0 ^^
so, I guess no
 
@hellow can this is because retro bug fix ?
 
I'm not sure when rust hits 1.0, but that code might come from before that time
Oh boy! Error messages where ugly back then... I'm so glad it is fancy dancy now :)
 
@hellow yeah ^^
 
 
1 hour later…
10:56 AM
@hellow ew why do you have green terminal font
 
@BartekBanachewicz good contrast to black background ;)
 
@hellow so is gray
 
@BartekBanachewicz Do you know a movie called Matrix?
 
and gray actually looks great with colorful messages from rustc
@Boiethios no I have never literally heard about it in my life ever
 
:')
 
10:57 AM
@hellow I use a variation of base16-tomorrow-mod
 
@BartekBanachewicz hmmm, you're right... Maybe I consider using it ^^ Do you have a good color value? #DBDBDB looks promising, but too thing IMHO
 
see above
 
thanks :)
 
I still use Monokai in ST, but I'm considering switching to this actually
I've made my ST sidebar black (dark) recently and it's been great
 
I use Solarized, I think
 
11:01 AM
I used Solarized for quite a while, but the blueness of the background turned out to be too annoying
 
@BartekBanachewicz I like it
 
I like how bright stuff gets bold as well
it's an option of Mintty I think
on OSX I use the regular Terminal app but I've just ported the colors over
Actually that's one reason why I bothered to make a custom set in the first place, I move around OSes a lot, and I like a consistent experience
 
11:35 AM
BTW, I did read a bit about those immediate mode guis through the weekend
I even started implementing my own, limited version of it according to the paradigm
but I was so sick I couldn't really get anywhere
 
 
2 hours later…
1:08 PM
Nice, show the code when it's finished
 
1:36 PM
it's never finished lol
but it's all on GH in the most recent form pretty much erry day
I commit everything
 
I might need some help explaining "What is the benefit of implementing Default for a struct" codereview.stackexchange.com/questions/211023/…
Is that worth a SO question? :|
 
In this precise case, I don't know, but it is always better to use the standard semantic
 
@hellow better drop new if you implement default no ?
 
@E_net4wisheshappyholidays oooh honey
@Stargateur great, now 75% of your problems are solved! :Р
 
@hellow There's no introspection in Rust, you can't try to invoke a constructor with no parameter and hope it works in generic code: a trait MUST describe the available functionality. Using Default is the way to ensure that whoever wishes to use the struct where Default is required will be able to without wrapping it.
 
1:44 PM
@набиячлэвэли that could last for a while
 
@MatthieuM. thanks
 
4
Q: Most idiomatic way to create a default struct

BoiethiosTo create a default struct, I used to see fn new() -> Self in Rust, but today, I discovered Default. So there are two ways to create a default struct: struct Point { x: i32, y: i32, } impl Point { fn new() -> Self { Point { x: 0, y: 0, } }...

 
@Stargateur something something 1% of the problems cause 98% of problemacy
 
@Boiethios thx for the luink
@hellow you grilled my edit xd
 
@Stargateur in sheps answer? I'm sorry :(
 
1:51 PM
@hellow well, we was just doing the same thing xd
 
puh :) Is there a stackoverflow query mechanism to get all posts that refer to the old clippy link?
 
@Stargateur better to have both. One can call the other.
 
Yes, that's what says your answer :P
 
@hellow ask this to master @E_net4wisheshappyholidays
 
@hellow I guess so, SO has a powerful query mechanism, but I never bothered to learn it.
 
1:53 PM
Oh, indeed. I was about to upvote that
 
XD
multi account detected
 
“this answerer knows what they are talking about”
 
I also sometimes have some kind of recursive autosatisfaction, and I like that.
 
guess who didn't remember his password and just try them all
 
@Stargateur use a passwordmanager for exactly that purpose ;)
 
1:58 PM
and why captcha is broken at the exact same timing ?
 
@Stargateur What is this I don't even
 
@E_net4wisheshappyholidays that not you who already make some request on the stackoverflow database ?
 
@Stargateur SEDE queries, yeah.
What old Clippy links do you speak of?
 
@E_net4wisheshappyholidays github.com/rust-lang/rust-clippy/wiki
 
2:15 PM
@hellow Now you understand why I spent a chunk of time updating older questions error text
 
mmm, so it seems that Rust also has no static reflection?
 
@Shepmaster I really do appreciate what you are doing to the rust community :)
 
I hate how people say that languages have no dynamic reflection while they allow the static reflection
 
what is static reflection? :/
The Any thing?
 
knowledge about types during compilation time
 
2:19 PM
Is there a way to have a list of my own deleted questions?
 
runtime or dynamic reflection is knowing that during runtime
which means you can always implement dynamic reflection on top of static reflection
 
Thks
 
I'm not sure if they work tbh ^^
tried three, none of them worked
 
@hellow May 25 '15 at 0:33 => Version 1.0.0 (2015-05-15). It also could have been written against 0.13 or 0.12.
 
2:24 PM
My first version of rust was 1.15-ish
I have no clue what happened before that
 
Thanks you. This one works :P
 
Amusingly, you have to see deleted questions (10k+) to find that answer
 
I can't, because I don't have enough reputation? But I even can't look at my own deleted questions
^^
 
20
Q: Show me my own deleted questions and answers on my profile page

TheLethalCoderFirst off let me start by saying I know about a highly popular request on the main meta. However that is status-declined and hasn't had any official response for a while now. I have also seen related support requests and even another feature request from 2014 but that again is status-declined. ...

@hellow as the kids say... "git gud" ;-)
 
2:26 PM
5k more to go... maybe at the end of this year ^^
 
2:45 PM
@hellow Hmm. Something like this?
I could only capture 2 occurrences, though.
 
need to add a third hat
 
You could create a third post and check if it works ]:->
 
@Stargateur Remember the old proverb: with great tower of hats comes great responsibility.
 
@hellow 5k can theoretically be done in a month or so
 
but yeah, looks good!
@BartekBanachewicz propably, but I'm not a full-time SO karma reputation farmer ^^
 
2:47 PM
@BartekBanachewicz Not with Rust only answers ^_^
 
@BartekBanachewicz Some people would call that the greenhouse effect. I cannot recommend it. :[
@hellow Greenhouse all right.
 
@BartekBanachewicz farming karma is go on javascript/C/whatever popular and answer every god damn question that have already be answered 50 times, and get upvote
 
@Stargateur And don't forget to comment "why the downvote?" to gain compassion upvotes. :P
 
I stopped paying attention to the language
I just answer anything I find interesting
heck, I've given answers in languages I had no idea about at the time :D
 
@E_net4wisheshappyholidays I see you are a man of culturel as well ;)
 
2:49 PM
@E_net4wisheshappyholidays does that work ? Can I do that before I get downvoted ?
 
0
Q: How to add a hidden file in collab version control

StargateurI would like to push a file, let call it .config, to collab version control. But by default, its ignore all hidden files. How can I force a file to be add ? I look in .collabignore but it's doesn't look there is the rule .*. I also search but didn't find any thing that would fix the problem. Wit...

12 views xd
 
@Stargateur I'm so deep in The Culture series I can't read this the original way now
 
@Stargateur would be appropriate ;)
 
@DenysSéguret I am joking, of course. I flag comments of this sort whenever I see them.
Whether they do increase the chance of pity upvotes, I do not discard nor guarantee such a possibility.
 
@DenysSéguret seeing the up/downvote ratio is something that takes a certain amount of rep, so you could easily fool those people. I'd probably just assume someone downvoted and then undownvoted.
 
2:56 PM
I'll tell you whether I can get 5k this month using this trick
but I imagine you have to answer first... so maybe not this month in fact
 
And you better answer to javascript questions than Rust ones to gain the 5k
 
@Shepmaster There is actually a way to see this ratio even below 1000 rep. It's just not exposed in the UI.
 
@E_net4wisheshappyholidays Really? :O
 
@Boiethios just one question, asked over and over.
 
@Shepmaster Not to mention that it they can be guessed with a careful examination of the reputation gains and losses over time.
 
3:00 PM
@E_net4wisheshappyholidays so we gonna fix these?
 
@Shepmaster ... Like, OK. One to each? x)
 
I can do it, just making sure that we are at the point of doing it
@E_net4wisheshappyholidays also https://github.com/Manishearth/rust-clippy/blob/master/README.md
Oh, you got a wildcard
just seems... small
Could also run against code review, I suppose
 
@Shep I don't know what's going on, but we're prolly overlooking something.
 
3:24 PM
Are you folks sure that people have posted old Clippy links often?
 
no... I just was curious
 
Well, there you have it. :) It's nothing to be worried about.
 
But something is not right in your query, because my post on codereview is not shown, when I alter your query to show all clippy things
select Id as [Post Link], OwnerUserId as [User Link] from Posts
  where
    Tags like '%rust%'
    and lower(Body) like '%clippy%'
8
A: Fahrenheit and Celsius converter in Rust

hellowThe first thing I always do is running clippy. You will catch some things that are not neccessary, e.g. fn main() -> () can be reduced to fn main() let t = String::from(convert_type); is simply let t = convert_type The bad things are c * (9 / 5) which is always c because of integer arithm...

 
@hellow The SEDE database is only updated once a week.
 
You only searching in posts, but not in answers? :/
My answer is from November
 
3:26 PM
@hellow AFAIK Posts includes both questions and answers
 
even with the tag?
 
yep, it's the tag thing
I'm not very familar with SQL syntax ^^ I'm sorry for using the incorrect terminology
thing instead of where clause for example ;)
 
Alrighty. Enjoy!
 
<3
 
3:30 PM
(I ought to get back to work :x)
 
^^ gogo
 
@E_net4wisheshappyholidays that user is the worst
 
4:07 PM
@Shepmaster wat?
 
@E_net4wisheshappyholidays I don't know that those links work like I expect. I think when I click on it, it's been modified to what I last typed.
 
 
1 hour later…
5:21 PM
is fredmorcos one of you ?
 
@DenysSéguret not me, but now i'm curious
 
I just received a big PR focused on "fixing" clippy things
(which would be painful to merge as I made many changes since)
and one of those changes I'm curious about. This line: github.com/Canop/broot/pull/1/…
 
@hellow look at this hot meta post: meta.stackoverflow.com/questions/378602/… ;-)
 
Is i32::from(a) much better than a as i32 ?
 
It's a bit safer as you won't be truncating
if a is i64, for example.
 
5:28 PM
Oh, ok, it's safer meaning here there wouldn't be a bug silently introduced. OK
 
cast is evil
 
5:53 PM
@DenysSéguret yeah, I shouldn't have used "safe" given its larger meaning in Rust
 
BTW my code still has the possible bugs of the unsafe pointer operations you do when playing with graphs ... except it's made from operation on integers used to fetch things in arrays, instead of directly mem access...
(a little less bugs tbh)
 
 
1 hour later…
7:00 PM
@DenysSéguret Right. you won't ever access something of the wrong type or out of bounds. It might not be the data you expect, however.
 
7:31 PM
heh
I wonder what prompted the text on the dashboard
must've been a hella misunderstanding
 
"[Pre-RFC] Abandonning Morals In The Name Of Performance: The Raw Entry API", haha, I like the title
 
Which lights is it referring to? My first thought are the turn signals, as those probably don't need to be used in a race.
 
8:06 PM
@Shepmaster some auxiliary communication lights prhaps
 
8:25 PM
first crate published (on request)
 
 
1 hour later…
9:50 PM
@DenysSéguret linky?
 

« first day (1546 days earlier)      last day (1933 days later) »