« first day (455 days earlier)      last day (4498 days later) » 

Xeo
2:00 AM
> When a flat-chested girl hugs you, she holds you closer to her heart.
 
@Xeo Ohh? You can post your standardese here...
 
Xeo
I love that quote.
 
@RMartinhoFernandes That's context-sensitive
 
Hmm, good point.
 
@Xeo So do men.
 
Xeo
2:01 AM
Err.. nevermind?
 
eeh
if you're too flat chested, then I can't really get my hands on
maybe I'm just picky :P
 
@DeadMG is hard to please as usual.
 
I'm just specific about what I want
 
@RMartinhoFernandes None. The implication was that Xeo, being proficient in all things C++, is prejudicially on my part assumed to be of pale complexion and weak muscle tone, and would thus struggle with a lady of generous maternal endowment.
 
I guess he needs something between the C and D cup.
 
2:02 AM
@DeadMG So you want them somewhat big-breasted, but with a gap between them...
I guess that makes for poor cleavage.
 
@StackedCrooked Did you set this up on purpose for a "C++ cup"?
 
I think that somewhat works fine for me
 
@KerrekSB I actually didn't think of that.
 
Xeo
@KerrekSB What a nice wording you have there.
 
C++ cup. Sounds like a nerd soccer game.
 
Xeo
2:03 AM
@KerrekSB Silly, he isn't @Tony.
 
@RMartinhoFernandes Easy: Two ladies, spaced 1 yard apart.
@StackedCrooked I was thinking Facebook Hacker Cup
 
Xeo
@KerrekSB No, right next to each other, hugging you in-between
 
Two ladies, one cup. Hm, no that doesn't make sense.
 
@StackedCrooked Sure. One is the coder, the other the tester.
 
Xeo
@StackedCrooked "Two girls, one cub." for @DeadMG
 
2:04 AM
Ha, you do need both.
 
Wins you every programming competition there is.
 
@Xeo Lol!
 
Hey, you can't spell "competition" without "comp". How cool.
 
He already has the cub. All that's left is the two ladies.
 
eh
not a two ladies at once kind of guy
 
Xeo
2:05 AM
Can't spell "slaughter" without "laughter".
 
You can't spell I without .
 
@Xeo "manslaughter" is the word
 
Xeo
 
@Xeo Is that from higurashi?
or...
 
Xeo
Batshit insane ftw.
@Mysticial Aye
 
2:06 AM
@Xeo With a picture I understand better.
 
@Xeo score :)
 
there's no "i" in team, but there is in Battalion and Centurion
 
What's so insane about bat excrements?
 
I stopped watching that series. I'm a wuss.
 
@StackedCrooked lol...
 
2:07 AM
@RMartinhoFernandes It's bat shit!
 
Xeo
@Mysticial Specifically this scene IIRC:
 
@StackedCrooked Couldn't handle a bunch of kids cutting each other up over and over again every few episodes?
 
Xeo
22
A: What is "rvalue reference for *this"?

XeoFirst, "ref-qualifiers for *this" is a just a "marketing statement". The type of *this never changes, see the bottom of this post. It's way easier to understand it with this wording though. Next, the following code chooses the function to be called based on the ref-qualifier of the "implicit obj...

See the middle paragraph, it roughly explains overload resolution
 
@Xeo lol, I remember that...
 
@Mysticial Yeah. Even the buildup in tension was enough to make me cower.
 
Xeo
2:08 AM
There lies the key to how const and non-const overloads are chosen
@StackedCrooked I recently finished the first visual novel of the series (from which the anime was adapted). It. was. AWESOME.
The tension, the puzzles, the mindboggling story!
 
The killing!
 
Xeo
The fear you can feel when the BGM changes!
The "OH CRAP!"
 
Higurashi is one of my all-time favorites. Call me a sadist :)
 
Xeo
Really, that game is awesome at what it does.
You can really feel how the thoughs of the protagonist change in a more and more paranoid way.
And you can understand it too.
 
@Xeo So how is Oli's post wrong? (You should post a link there, by the way!)
 
2:12 AM
That does seem cool.
 
After all, overload resolution does pick the expected function
 
Xeo
Yes, but he says it's based on the cv-qualification of *this, which is backwards.
 
Overload resolution somehow reminds me of the United Nations, or something.
 
@Xeo Sort of... it's because the this will make only one overload match best
 
Xeo
If you're in the const overload, it's const X*. If you're in the non-const overload, it's X*
@KerrekSB It also doesn't depend on this
 
2:13 AM
@Xeo Right, because the overload was chosen to be thus
 
Xeo
this is pretty much decided once the function is written
 
@Xeo Well, it depends on the object!
So I was tacitly assuming this = &x
 
Xeo
@KerrekSB Correct! The implicit object parameter and the implied object argument
 
But that's a good way to describe the thing after the closing paren: It's the qualifier on the implicit argument
 
Xeo
The same stuff that decides which ref-overloaded function gets called
However, ref-qualifiers don't propagate to *this
 
2:15 AM
There are no rvalue pointers.
 
@Xeo And because *this has a name?
 
Xeo
@RMartinhoFernandes this is a prvalue pointer, which is a kind of rvalue ppointer, right?
 
So *this is always an lvalue?
 
Xeo
@KerrekSB No, it just doesn't
 
@Xeo Oh
 
Xeo
2:16 AM
@KerrekSB Yes, bottom part in my answer
 
@Xeo It's a pointer rvalue!
 
Xeo
@RMartinhoFernandes Oh, the usual debate. That's like "function template" vs "template function", right?
 
@Xeo Can you say *this = y;?
 
Xeo
@KerrekSB Yes (depending on the cv-qualification of *this and the cv-qualifier of operator=)
 
@Xeo That's actually pretty weird
 
2:17 AM
It's calling operator=
 
It's not really weird.
 
@RMartinhoFernandes Yes, weird, right?
 
Only a little.
 
From a member function?
 
Xeo
@KerrekSB Why?
It's an idiom I used for my math classes (vector3 etc).
 
2:17 AM
I don't know... imagine you do this inside the ass. operator.
 
Xeo
*this = other.x * x + ....;
 
Recursion without knowing!
 
Xeo
@KerrekSB Err, that's not really without knowing, is it?
 
@KerrekSB You have an ass operator?
what does that look like?
 
struct Foo { Foo & operator=(Foo const & rhs) { *this = rhs; // assignment! } };
@DeadMG Very well defined.
 
Xeo
2:19 AM
@KerrekSB Syntax error: expected '}' after ';'
 
"imagine you do this inside the ass."
 
Very recursive also.
 
@Xeo Imagine this as the answer to an interview question: "Please write the assignment operator for Foo".
 
And then in another sentence: "operator."
 
that's an assignment operator, not an ass operator
 
2:20 AM
@RMartinhoFernandes I can't type things with "gn" in them quickly.
Just like I cannot type "lambda" without breaking my fingers
 
@RMartinhoFernandes smart ass--ignment!
 
Xeo
I type "gn" and "bd" with my index fingers
 
Also, you can type "lamda" if you want.
 
we'll just laugh uproariously
 
Xeo
2:21 AM
That sounds like "samba"...
 
@Xeo Typing "gn" and "mbd" requires a complete bus lock and pipeline flush on my ... type system.
 
@Xeo Also the "d"? I use my middle finger for that.
 
Xeo
I now want a samba operator.
 
@Xeo I want a remuneration type.
remun { cash, cheque, direct_debit };
 
"cheque"?
Are you writing French by accident?
Oh that's actually a word.
How the heck do you pronounce that?
 
Xeo
2:24 AM
@StackedCrooked I actually have a weird typing system. I mostly only use my index fingers but sometimes resort to my pinkies for some special keys and my middle finger usually operates 'w' and 'y', even though my index finger likes to steal that key
@RMartinhoFernandes "check"?
Oh, yeah, and " is operated by my middle finger
 
@Xeo So it's an organically grown system?
 
Xeo
/shrug
 
It definitely doesn't come from typing class.
 
@RMartinhoFernandes Like "deque" of course
 
I just move my fingers around the keyboard, and the right fingers go to the right keys. I never payed attention to what finger presses which key.
 
Xeo
2:27 AM
@RMartinhoFernandes You're a robot, that's automated by a script
 
@KerrekSB So, it's "chouble-ended queue"?
 
@Xeo The patented 5-1/2-fingers system?
 
Robot just plugs in on the serial port.
 
Xeo
@RMartinhoFernandes "chubby-ended queue"
 
@RMartinhoFernandes Ah, so you're really a Java programmer!
 
2:28 AM
FTR, I pronounce std::deque as "standard double-ended queue".
Not "stood deck".
 
@RMartinhoFernandes I prefer not to pronounce it at all, if that's alright
 
Xeo
"stood deck" :(
 
@StackedCrooked explain it!
 
@KerrekSB It's for saying hello.
 
Xeo
2:29 AM
I only really got into "stood" after STL specifically remarked how he pronounces it. I just said "s t d" before that
 
I'm not sure which is worse.
 
stood and putter.
 
But "stood shared putter" does get on my nerves.
 
@RMartinhoFernandes It depends if your programming out loud while your prospective is in the room
 
Why not call a pointer a pointer and an std an std?
 
2:30 AM
"putter" isn't even "shorter" than "pointer".
And it reminds me of golf.
 
Putter, because we can.
 
"putter" is closer to the spelling
 
Xeo
Btw @Kerrek, I added a comment to Oli's answer
rvalue reference -> ref ref
 
I wonder if I'll be able to play Tsukihime on Mac after installing wine-crossover-games.
 
if the std guys weren't so eager to save a couple of letters, we'd be able to pronounce stuff the way we spell it. :P
 
Xeo
2:33 AM
Err, I think it's good that the standard namespace is so short
imagine
standard::unordered_map<standard::string, standard::pair<standard::string, int>> m;
 
Btw, what does cout stand for?
 
Xeo
vs
std::unordered_map<std::string, std::pair<std::string, int>> m;
 
@RMartinhoFernandes C-out
 
Xeo
@RMartinhoFernandes "console out"?
 
namespace the_one_and_only_std_aka_c_plus_plus_standard_library_namespace {}
 
2:34 AM
as in "C" the language
 
"characters out"
or chars
but eh
 
Xeo
I often call cin "chin", as in, "chinch"
 
@Xeo I'd :abbr std standard the hell out of that!
 
I'd abbr its brains out.
 
Xeo
Hm, I decided to edit an answer of mine several hours ago.. I should finally get around to it
 
2:37 AM
You can always postpone it.
 
2:48 AM
Timing your edits is a trick you can play if you're trying to rep-whore. lol
among other things
 
Xeo
I didn't reach repcap yesterday, and I don't know if I will today
 
hmm, rephoring isn't going well for me at all today. I'm no closer to 50k than I was two hours ago.
 
I've had some very chaotic luck these last two weeks
 
@Xeo You must cap more.
 
I missed repcap on like half the days...
 
2:51 AM
@Mysticial Do you have that cap badge?
 
and then I got 4 consecutive 10+ answers. (and like 40 votes in one day)
and now I hit two consecutive zeros...
@KerrekSB I have Epic. Still a ways from Legendary
 
Errr. what?
0
Q: Ambiguous constructor

woryzowerclass HuffNode { HuffNode(); HuffNode(int weight); HuffNode(char elem); HuffNode(char elem,int weight); int weight; char element; HuffNode* left; HuffNode* right; friend class x; }; and cpp file #include "HuffNode.h" HuffNode::HuffNode():left(NULL),right(NULL){ } HuffNode::HuffNode(i...

Duplicate!
 
@KerrekSB Did I misread? Cap badge?
 
@Mysticial Yeah, for capping often
I always read it as either "ambitious constructor" or "amorous constructor".
@Mysticial Oh, well, for getting 200 often, I mean. Yes, you know what I mean.
There isn't one for capping specifically
 
@KerrekSB It's just for breaking 200. Not for capping. I used to shoot for rep-cap everyday. Now I just try for 200. At which I'll slow down once I get the Legendary badge... These FGITW questions are getting very old...
 
2:53 AM
Is everyone here dyslexic?
 
Though once you got a couple of accepts, you might as well cap
@RMartinhoFernandes Dyslexic, agnostic, and insomniac. Stayed up all night yesterday wondering why there is no dog.
 
Hey, I stayed up all night all week.
 
@KerrekSB I used answer like 5 - 10 questions a day... Sustainable for a few months. And it starts to get old.
Now I do like 2 - 5 a day at most... cherry-picking the ones I want.
 
i got tired of it once i hit about 12k...lol
now i just answer when i have something important to say
 
@Mysticial You should definitely stay away from those i++ ++i++ questions, and any questions that get 20 answers in 5 minutes.
 
2:56 AM
@KerrekSB Oh yeah, I closed like 5 of them (including Java ones) over the past week...
didn't feel like rep-whoring those... It gets old. And you don't make too many friends. lol
 
@Mysticial Well, no need to close (unless it's an obvious duplicate), but if it's something trivial, might as well let newer people have it.
If you show up with too much rep, you might siphon attention away from otherwise very good answers.
 
@KerrekSB Good point. Though it usually does take a few minutes to get 5 votes. That's enough for at least 5 answers... lol
 
@Mysticial It depends. Sometimes they get nuked pretty fast.
 
I usually upvote and close. Those i++ questions are impossible to search for, so you can't blame it for being asked so often.
Having been on the site for 4 months now, I find a lot more satisfaction in getting ridiculously upvoted answers than a ton of lesser answers. (even though the latter gets you a lot more rep)
 
I like when I do like yesterday: post an answer 30-minutes after the question, when the answer space is already saturated with 10 answers or so, and rise above everyone :)
 
3:09 AM
@RMartinhoFernandes Yep. :) That was also the case for my 3 highest scoring non-FGITW answers...
late answer - watch it float to the top - and get accepted
 
fgitw?
 
Fastest Gun In The West.
 
384
Q: Fastest Gun in the West Problem

Omer van KloetenI feel like there's a problem with Stack Overflow, as the number of people prowling it increases. Each question's answers are sorted by descending score and then descending time of posting. This means that if a person sits down and answers a question in a long, thorough way, going through every ...

 
I don't really think it's a problem. IME the community is good at rewarding effort.
And, like Adam says, fast answers are also desirable.
 
I like getting those Enlightened badges...
One way to judge if someone has been rep-whoring is to look at the ratio of "Enlightened" to "Nice Answer" badges. If it's very high, then you know... lol
 
Xeo
3:17 AM
@RMartinhoFernandes I tell you, it's the free-hand stars
 
I like your mother
 
@Xeo Well, whatever it is, it filled my repcap for two days.
I spend yesterday nopping and woke up to 195 rep.
 
#2 highest answer for the past 48 hours.
My GCC optimization answer sits at #4 for past 48 hours. But they were all concentrated in the first day... so
@Xeo Your 1-1000 answer is #5 for the past 14 days.
Oh... That Waldo question fell off the list. So my loop answer is back to the top of the past 30 days list... lol
 
Xeo
Yay, finished with updating my template wankery! \o/
@Mysticial I still get 5+ upvotes per day from that
 
Looks like someone's about to get gold badge from this:
11
Q: Why is this C code faster than this C++ code ? getting biggest line in file

AlexI have two versions of a program that does basically the same thing, getting the biggest length of a line in a file, I have a file with about 8 thousand lines, my code in C is a little bit more primitive (of course!) than the code I have in C++. The C programm takes about 2 seconds to run, while ...

 
Xeo
3:27 AM
Sigh, those "turn optimizations on" questions seriously tire me
 
@Xeo Holy shit, yeah, you do... though it's more than a week old now, so it's off the weekly charts.
That's basically how it goes everytime you score a 50+ answer. You get like 30 on the first day. And over the week, they trickle in at about 5 a day before it stops.
Another interesting thing to is to plot the voting times in excel.
You can see when each part of the world wakes up.
 
Xeo
lol
> [&](λp_t x) {...}
5
Q: Achieving clean lambda functions in C++11

AyjayI've been playing around a lot with the new C++11 lambda's, and the requirement to fully specify the template argument is a real drag. The syntax I would like to be using is something similar to the following: #include <vector> #include <algorithm> struct foo { void bar() {} }; ...

 
*Of course, it's meaningless for anything less than about 50 data points... lol
 
Just having a discussion with someone about C++ exceptions, and he says there's some unexpected part of iostreams that throws instead of setting a fail bit
any idea what that is?
 
Xeo
oO
No
 
3:32 AM
@Xeo Oh, I already commented on that about the silliness of doing that to shave off one character.
 
Xeo
let's alt-tab into the spec...
 
I was about to comment again.
 
Xeo
@RMartinhoFernandes You do see where he's coming from, though, right?
 
@Xeo Any reasonable confidence that the claim is false?
 
Xeo
But answers like this are just.... sad:
1
A: Achieving clean lambda functions in C++11

Viktor SehrYou can use decltype: for_each(m.begin(), m.end(), [&](decltype(*m.begin()) x){...}); But it really, really sucks that you cant use auto in anonymous lambdas, and it makes me think that the whole c++ committee are bunch of idiots which doesn't work with c++ on a daily basis. Update: You...

 
3:32 AM
@KerrekSB Any place that sets a fail bit when exceptions are enabled?
 
Xeo
@RMartinhoFernandes lol
 
@RMartinhoFernandes No, any exception that gets thrown though that's surprising
 
Xeo
@KerrekSB Did he mention any iostream specifically?
 
Why would anyone write const map<key_type, value_type>::value_type& x instead of value_type& x?
 
@Xeo Yes
 
Xeo
3:35 AM
Great, and which?
 
I'm told this link
 
Aww, you can't see the minute-accurate voting times after it's more than 4 days old...
 
6 mins ago, by R. Martinho Fernandes
@KerrekSB Any place that sets a fail bit when exceptions are enabled?
 
Hm, that doesn't look to bad... you get to determine when to throw, non?
 
Xeo
@KerrekSB Err, yes, exceptions() immediatly throws if failbit is set
 
3:39 AM
If you enable exceptions on the stream, guess what, it throws!
 
Xeo
> 6 Returns: traits::eof() or throws an exception if the function fails.
Guess which function that is. :) (No, it's not exceptions())
 
@Xeo I've never seen this part of iostreams. Is it bad?
 
iostreams is bad in general.
@Xeo xsputn?
 
Xeo
You ctrl-F'd, right?
 
Xeo
3:41 AM
and no, that's wrong
 
Oh wait, it's overflow.
 
Xeo
Aye
 
Damn formatting makes the paragraphs more visible than the signatures.
 
Xeo
Ah, but the stream catches it and either swallows or rethrows
So that's not it
Hm, I wonder if I should ask "why do streambuf functions have such cryptic names?"
 
I doubt there's a good reason.
 
3:43 AM
I'm not sure,
But i know in the old says, they used to have to shorten names severely as names back then could not be above a certain length
Not sure if that's c++ I'm remembering or not
 
Xeo
@GeorgesOatesLarsen Err, I doubt that'd matter, since the spec is agnostic of implementations
And nobody is upvoting my template perversions. :(
 
overflow is longer than xsputn.
Anyway, creat.
 
Xeo
what?
 
creat is a Linux system call.
It's famous for being a silly case of trying to make function names shorter.
 
Xeo
ouch
 
3:49 AM
Oh, is there a char32_t-stringstream?
 
Ken Thompson was once asked what would he change if he had the chance to redesign UNIX. He answered "I'd spell creat with an e."
3
 
Xeo
Heh
 
Weird. Chartraits exist, but apparently no typedefs
 

« first day (455 days earlier)      last day (4498 days later) »