« first day (920 days earlier)      last day (4034 days later) » 

5:00 AM
Uh
 
no
 
I think I need to return this std::promise
Rather than a std::future
 
@Mysticial oh, ok, just curious
 
I'll probably be doing decoder optimizations for the client-side decoder. Mostly likely on consoles.
 
@Mysticial i'm interviewing with the llvm team wednesday
i mean thursday
at apple
 
5:00 AM
ah
neat
gl
 
Anyone here work for Google?
 
yeah
thanks
i don't really care if i get it, it's just nice meeting the people in person
they asked me to come based on my patches
which aren't very much yet, to be honest
@Mysticial can you recommend any good modern x86-64 assembly book by the way? I can't seem to find any...i guess people just read official docs at that level anyway?
 
I don't even read books. I'm serious.
 
yeah, i'm usually like that too
but it'd be nice to have stuff written up in one place rather than just being a big internal mental map
 
I dunno. I didn't prepare for any of my interviews.
I just kinda showed up half-dazed.
 
5:05 AM
oh, it's not for that
 
@StephenLin My "one place" is the search bar on Google.
 
if they quiz me on random book knowledge i'm going to be annoyed anyway, and not take the job
 
Google will not quiz you on random book knowledge. Unless you position for some reason requires it.
But they will give you completely off-topic questions what you are not expected to know.
 
user1357851
that's not true
 
i've interviewed at google, i didn't really enjoy the process
didn't really seem to ask anything of note other than brainteasers
 
user1357851
5:06 AM
there are logic questions you can prepare on
 
user1357851
variation of the same themes
 
user1357851
those brain teasers
 
@Telkitty have you changed your mind on the "blue eyed islanders" yet?
 
@Telkitty I dunno about you, but I interviewed at Google, and they gave me a lot of questions that were pretty off-topic and difficult.
 
user1357851
@StephenLin no
 
5:07 AM
@Mysticial they don't seem to even bother looking at your background before talking to you, which is a turn off
 
user1357851
@Mysticial I did not say they are not difficult
 
user1357851
but you can prepare for them
 
is there a blocking_queue for the std:: namespace?
 
@Telkitty seriously read that :)
@Telkitty as well as the 30 pages of arguments about it
 
5:09 AM
@refp Done.
 
@Telkitty also, terrytao.wordpress.com/2008/02/05/… ... if you're not going to believe terence tao, who will you belive?
@Mysticial is there at least one definite list of "gotchas" for x86-64? like historical compatibility related inconsistencies?
 
@Telkitty I can't say there's much to "prepare". Based on the questions I got asked, there's absolutely no way I could've prepared. Either you know or you don't, or you try to figure it out.
 
stuff like 32-bit ops zeroing 64-bit register high bits, but the same not happening for 16-bits to 32-bits
@Mysticial i'm fine with the concepts, it's those things i think would be nice to have in a reference somewhere
 
@StephenLin There's quite a few of them. I can't say I know even a fraction of them.
 
@MarkGarcia congratz
 
5:12 AM
yeah, that's why i think there should be a book
not a beginner book either
but a definite reference for things you wouldn't guess from first principles
 
user1357851
@StephenLin say if there are 666 blue eyed island on the island of 666+x people island (x is positive integer) & an outsider comes to the island and say from today if you know you are blue eyed you can leave, then on day 666 every blue eyed person will leave, tell me why it will not work
 
I need an interesting question to wrap my head around.. someone give it to me!
 
@Telkitty tell me how it would work
@Telkitty there's no positive explanation for it working
@refp, take a look at terrytao.wordpress.com/2008/02/05/… :)
 
user1357851
@Mysticial but you are at entry level & also they looked at your other stuff (education, work done) already. The outcome of an interview usually does not depend only on the interview (I have had too many jobs)
 
@refp What happened before 5.39106(32) × 10−44 s of the existence of the universe?
 
5:14 AM
unless you mean an SO-type question
 
@Telkitty So what does being entry level have anything to do with having to prepare.
 
@Telkitty I don't get the impression google interviewers bother looking at anyone's background in detail; they just cast a wide net and put everyone into the same grinder
 
The only thing I really could've prepared for is what questions I could've asked the interviewers.
There was nothing I could've done to prepare for the questions they asked me.
 
@Telkitty they will basically interview anyone that someone refers to them
 
user1357851
@Mysticial because they expect people who have 10 years experience to be paid more and bring more value
 
user1357851
5:16 AM
but in IT younger is better
 
@Telkitty That doesn't answer my question.
 
user1357851
I would love to chat, but I really have to go, will answer when I am back
 
@Mysticial did they care about your reputation (I mean, actual qualitative reputation, not the game-y quantitative "reputation") on SO at all?
 
Hiya folks! :D
 
@StephenLin Well yeah. Everybody does. In all 4 interviews I went to, they all tested me heavily on people skills. I can't imagine anybody without people skills getting in.
 
5:19 AM
@MarkGarcia a interesting question related to is what I'm looking for
 
@refp Oh. Hmm...
 
@StephenLin the blue-eyed-puzzle was a bit interesting though, I'll give you that much
 
@StephenLin Oh about my SO reputation. They were all certainly interested. Though I'm not sure how much of a factor it played aside from getting me the interview in the first place.
 
@refp I think you mean @me, re: blue-eyed islanders?
 
@StephenLin correct, I just assumed that the two messages were written by the same person
 
5:22 AM
@Mysticial cool, well...just curious, if apple doesn't work out for some reason and i decide i really like working on llvm full-time, i'll probably see if i can interview with google
@Mysticial the most prominent google guy in llvm (afaict) is a front-end c++ semantics guy though
 
Apple had a really good impression to me. They gave me a customized interview process that started with a few entry level programmers to the one of the higher-level managers towards the end of the day.
 
which is ok, just somewhat less interesting than the performance-affecting stuff
@Mysticial that's cool...i'm wondering if i'll meet chris lattner
 
Google's interview process wasn't as inviting. But the guy that wanted me in was very convincing. He literally called me like every day after the interview to pull me from Apple.
 
@Mysticial the guy that asked me to come is directly under him
head backend guy afaict
 
@StephenLin That was the case for me both at Apple and Google. The guy who contacted me would either be my direct manager or one or two levels up. They were both pretty high up there.
Both found me through SO, one directly, and one indirectly.
 
5:26 AM
cool
so i guess that does make a difference
 
@ThePhD What's your gamertag thingy
 
what was the apple team you talked to?
 
My interview in downtown Chicago was from a career's fair. I got an offer from them as well, but it didn't compare with Apple and Google's. And I didn't want to stay in the Mid-west anyway.
 
i guess not llvm?
 
@StephenLin Not LLVM.
 
5:27 AM
@CatPlusPlus Uh. ThePhDerpstorm I think. Yours?
 
I'm not that much of a compiler person.
Even if I seem to be on SO.
 
well, you're probably more of one than me
i did an undergrad thesis back in 2006 on compiler optimization and started doing some llvm stuff just last month
that's it
 
@StephenLin I don't get the "proof" saying that every blue-eyed person would commit suicide after n days.. what knowledge does a blue-eyed person have that a brown-eyed doesn't? if the tribe doesn't know n, how come someone will assume they have blue eyes?
 
@ThePhD PiotrLegnica
 
I've only had one good answer on compilers on SO.
 
5:28 AM
@refp every blue-eyed person sees X-1 blue eyes, every brown eyed person sees X blue eyes
 
@CatPlusPlus <3
 
on the first day, everyone reasons that if there existed one blue eyed person, he would notice on the first day (because he sees 0 blue eyes, everyone else sees 1) and kill himself
 
@StephenLin and they are free to share this information among others? I thought the initial rule said that they werent allowed
 
@refp, no, they can't
@refp but they know that everyone is a perfect logician
so they can deduce what another person would deduce based on what they know the other person knows
that's second degree
and they can deduce what another person would deduce another person would deduce based on what they know the other person knows the third person knows
that's third degree
etc.
 
@StephenLin sure, but if a blue-eyed thinks there are 100 persons with blue eyes on the island and a brown eyed know there are 101, they cannot share this information and you'd live with a question mark in your head - since you don't know your color
 
5:30 AM
all the way to infinite degrres
neither of them know the number
brown eyed folks don't know there's X blue eyes, they just see X
there could be X, there could be X + 1
 
@StephenLin that's what I'm saying
 
but they find out based on what happens
 
@CatPlusPlus Where are you at?
 
if there were 1 blue eyed guy, then on the first day he would kills himself
obviously, there's not 1 blue eyed guy, because they all see at very least X-1 blue eyes
 
@StephenLin how can they? since a brown eyed person is equally clueless as a blue-eyed, what makes the blue eyed so keen to committing suicide?
 
5:32 AM
but they're thinking hypothetically
if there's one blue eyed guy, and the traveler says "there's at least one blue-eyed guy on this island"
then obviously he would know it was him
 
he would commit suicide since he can't see anyone else with blue eyes
sure
 
so what if there's two
on the first day, they see one other guy with blue eyes
all the brown eyed folks see two guys with blue eyes
 
all you can get out of the tribe if you were to inspect all eyes is that there is at least one blue eyed in the group
 
@ThePhD Firelink
 
well, so if there's two
 
5:33 AM
but the brown eyed folks can't tell the blue eyed
 
well, just consider if there's two blue eyed guys
they both see one guy with blue eyes
 
oh, I get that argument now
 
@CatPlusPlus Okay. I can't place my summon sign there so you'll have to move forward a bit to a new location.
 
so they're like "poor guy, he's going to have to kill himself tomorrow"
 
and they ask themselves "why don't you kill yourself?" ie. there are more than 1 blue eyed person in the group
 
5:34 AM
they're both thinking that about the other blue-eyed guy
 
@CatPlusPlus Mumble? :D
 
Grumble
 
and when it doesn't happen (despite everyone knowing that everyone is a perfect logician)
then they realize it must be because the other blue eyed guy saw at least one other guy with blue eyes
 
@CatPlusPlus Muuumble. <3
 
and since everyone else they see has brown eyes
they know that other blue-eyed guy must be himself
 
5:35 AM
I tried setting up voice activation but I hate my voice and dunno if it's going to work
 
symmetrically
 
@StephenLin sure, still can't understand how the blue eyes know on which day to kill themselves, and figure out that they are the ones that should indeed do it
 
the only thing that really needs to be spelled out to make it work better, i think, is to make it clear that all actions must occur at a single time of day each day, and people are only allowed to kill themselves based on deductions they made since the last action time
 
but I do get it.. but at the same time I don't
 
if things could happen in continuous time, then it wouldn't work
because there wouldn't be any atomic interval for everyone to coordinate based on
 
5:37 AM
Lo, fuck
 
@refp they know that everyone else is logical, and they can deduce (based on whatever knowledge they have, which is everyone but their own eye color) whatever the other guy can deduce
 
@StephenLin damn it, it all makes sense and I feel very dumb..
 
I forgot to download and install Mumble.
I'm such a failure. D:
 
:thumbsup:
 
@Mysticial is your google stuff going to be x86?
 
5:38 AM
I doubt it.
 
Oy ThePhD, do you have skype?
 
i don't really know what "client side decoding" is for anyway...is it from dedicated youtube apps (i.e. not flash player through browsers?)
 
Youtube fucked up the way embedding is done now.
 
They send encoded and compressed video feed.
 
Most of their videos are already HTML5 though.
 
5:39 AM
The user needs to be able to decode it and play it in real time.
 
yeah, but most people use adobe flash still for that?
google isn't controlling the decoding for that
 
Not on consoles.
 
right, that's what i mean
 
At least I don't think so.
 
It uses HTML5 and fallsback on Flash now I think.
 
5:40 AM
Right now, they can't even get 720p to decode in real-time.
I'm not 100% sure I'll be on this team. There's a good chance they might shuffle me around a bit before I settle down.
 
@Rapptz ok, but then that seems like more something that falls under the chrome team umbrella
 
But it's still gonna be under the same manager that got me in in the first place.
 
not really YT unless it's developing dedicated YT client apps for mobile/consoles/etc.
ok, well, let me know what you end of working on (if you're able)
it seems like there's a big cuda and arm pushes at apple for llvm
well, maybe not cuda per se
but something like that
that's just what i've gleamed, though, from what people in apple are working on and submitting patches for
 
I bet my left nipple that this answer might confuse the fcuk out of op
0
A: G++ gives cryptic error messages, some pointer issue

refpYou have declared Graph::adj to be of type List*, with this said adj[i] is the same as doing *(adj+i). Dereferencing a pointer to type T will yield a value of type T, ie. the type of adj[i] is List. If you really want to do what you are trying to do declare Graph::adj as List**, that way you it ...

 
@refp i stopped having the patience to answer type mismatch questions
@refp good for you for at least trying
 
5:48 AM
@StephenLin I haven't answered any question in ages, after hitting 10k rep I got mad lazy
@StephenLin so I thought "hey, why not write some gibberish"
 
@refp, oh, i'm at 1.8k and already stopped caring...i prefer asking good questions rather than answering them anyway
i think that's actually more valuable
 
@StephenLin I prefer asking troll-questions
 
increases signal-to-noise ratio
 
@Rapptz Uh. I guess?
 
@refp i didn't even read your answer but i +1'ed you
 
5:50 AM
what is it?
lemme add ya.
 
just for the heck of it
 
@Rapptz I don't even remember. D:
 
Noob.
 
noob?
'cuz he doesn't remember his skype name :D?
 
yep
 
5:53 AM
I need a pair of names much in the spirit of operator[]/at, where the two operations do the same thing but one is 'raw' and the other is checked. In this case I want the name pull.
 
Which one is pull?
 
'peek'?
 
@Rapptz Checked.
 
Also it's hard to name if we don't know what it's doing.
 
Looking at a thesaurus and I'm thinking that won't work.
 
5:54 AM
I forgot the lounge mumble stuff...
 
@Rapptz It pulls a datum.
 
peek implies something unchecked but the semantics might not be what you want
 
Meh, it's going to be unsafe_pull otherwise I won't remember which is which.
 
you could go with raw_pull
better than unsafe
 
You could do tug and pull
 
5:55 AM
it's not really unsafe unless you use it unsafely
i never liked the C# keyword for that reason
 
I'm bored again.. hit me with that super awesome question! (also tagged with of course)
 
@Rapptz There's also a pop so I'm thinking this would lead to even more confuzzling >.>
 
a pull is stronger than a tug..
Oh..
 
i mean, who are C# languages desginers to imply that what i'm doing it unsafe?
 
Gahh
What's the lounge.cpp.sehe.nl mumble server password? D:
It keeps saying the password is wrong for my user. DD:
 
5:56 AM
what the heck is mumble? is it a protocol where every third consonant is removed to prevent proper writing?
 
I thought it was witty and everything.
:(
 
@Rapptz You're not to blame, I am :(
 
@Rapptz Noob.
:D
 
@ThePhD If you registered your nick then you need your old certificate
Or use a different one
 
@CatPlusPlus Tits.
 
5:58 AM
even worse.. it's a freaking voip
 
gets and gets_s a-la C.
:D
 
What teh fuck.
Who has the username tits. =[
 
I'm kidding.
 
lol
 
5:59 AM
Attack of the Default Gravatars
 
-2
Q: Add a Gold Badge for Chat, complete the series

ka ᵠFor some reason or another chatting is encouraged by two badges: bronze talkative and silver outspoken But no gold one to complete the series, why is that? Chat rooms are a great place to talk about subjects that are Not Constructive for the main site (debates are chat's middle name ...

^^ oh geez...
 
WHAT THE HELL
 
Adding this will encourage more users to help other users on chat also, this is for them. Who gets a star for a RTFM question? — ka ᵠ 3 mins ago
^^ LOL
 
NOBODY should have the name Cat's Tits! D:<
 
is this really the C++ chat??????
 
6:00 AM
No
 
@MeisterSchnitzel Are you a real boy?
 
Proposition: Posted 100 messages in chat that were starred by 50 different users
Who would get this here?
 
3 messages moved to bin
 
Me
:v:
 
6:01 AM
50 different users?
hehe
 
Seriously.
Why can't I authenticate against the Mumble server?
What's the problem? D:
 
While it'd be nice to have such a badge, it's just gonna cause hoards of badgewhores to swarm in here.
 
Use a nick without spaces
 
I can connect just fine
 
I can't connect!
What the shit!
I'm trying to connect with SmoothMcGroove, no password, no e-mail.
 
6:03 AM
loungecpp.sehe.nl:64738?
 
yes
 
@Mysticial Well not that many have the silver one.
When I got it, only like ~200 people had it.
 
THERE WE GO.
Yaaay
Cat-san said something. <3
 
Oh now 406 have it.
 
Oh, I have it on Anime.SE as well.
Didn't even realize it.
 
6:20 AM
in Python, 3 mins ago, by varahram
Fuck you!
^^ lol, chat flag
 
0
Q: std::function and std::bind behavior

FelicsI have this code: void fun() { std::cout<<"fun"; } void gun(int) { std::cout<<"gun"; } int main() { std::vector<std::function<void(int)>> vec; vec.push_back(std::bind(fun)); vec.push_back(gun); vec[0](1); vec[1](2); } Can you please explain how it's possible for...

can anyone decipher that question, what the heck is OP really asking?
to show how std::function could be implemented?
or is it just a question of how both void(*)(int) and the return value from std::bind can be stored inside std::function<T>?
oh nevermind, I see it now.. didn't read the snippet properly
 
@kaᵠ I doubt it. Even a single help vampire is enough to wreck an entire room until we manage to ban the user. If they started offering gold badges, I can imagine hundreds of people swarming in puking all over the place in an attempt to fish for stars. I bet the first thing that will happen is that every single established room will go into permanent gallery mode. — Mysticial 1 min ago
0
A: How to convert string to int in Java?

a catmeeeeeeeeeeeeeeeeeeeeeeeeoooooooooooooooooooooowwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww...

 
@Mysticial let us upvote it beyond reason!
 
Xeo
6:35 AM
@Mysticial lol
"meow" - a cat
 
^ whoa. what happened to critical thinking
 
mods are asleep
 
HELL NO!
Give me markup any day: (1) searchable (2) copyable, editable (3) bandwidth (4) readable
 
@Mysticial I fixed the answer by adding a proper translation
 
@refp Lol at your edit.
 
6:43 AM
oh, hold on.. I forgot something
or nhaa, that should cover it
 
@refp Don't turn it into a real answer, or you're just gonna get our flags declined.
 
@Mysticial it still have MEEEEEEEEEEEEEEEEOOOOOOOOOWWWWWWWW written all over it, and it's a duplicate answer so it should be fine
 
@sehe What is this replying to..?
 
Xeo
@Mysticial You flagged it? You kitty hater!
 
Oh now I get it sorry
I had to dig further back.
 
6:46 AM
Seriously, somebody upvoted it?
 
That edit might invalidate my flag :(
 
@Rapptz same here
 
Xeo
Kitty haters, all of you! :P
 
I hope the mod who sees it will look at the revision history.
 
@Xeo I prefer dogs. :)
 
6:50 AM
@Mysticial someone just upvoted that answer.. maybe I shouldn't have edited that post
@Xeo are you going to finish the post in ...
nevermind
 
"Lambdas. Are we finally getting these in Java 8? Even C++ has these now, FFS."
lol
 
Xeo
0
Q: Are pets allowed on Stack Overflow?

XeoSomebody apparently let their cat loose, and while I'm a sucker for cute cats, I'm not sure the hard roads of SO are the best place for them to be. They'll be toyed with by waving flags around in front of them, and the orange of the arrows is sure to distract them. Maybe a kind soul can find the...

That ^ is how you correctly deal with stray cats :P
 
OH wow
 
@Xeo your answer could've been more explaining though, even though it's sufficiant
 
people are still awake
 
6:52 AM
@Xeo nice
 
Xeo
@refp ?
 
> Again: C++ gets this right! Java gets this wrong! How the hell did we end up in a place where C++ is a higher-level, easier-to-use language than Java?
 
I need help; I'm bashing my head against a wall trying to get quicksort to sort
 
hehe.
 
@Rapptz erm.. to the target of the in-reply-to-arrow link
 
6:53 AM
@Xeo std::bind and function magically accepting more arguments than the underlying function should allow
 
Xeo
@Drise s/quicksort/std::sort/, problem solved
 
@Rapptz "easier-to-use"? trolling much..
 
@Drise Inb4. don't sort a tree, or write a deterministic (stateless) comparison predicate.
 
Xeo
@refp When did I ever write an answer to that?
 
@Xeo I did, before i read
9.
The student will put the sort routine in a file called Utility.cpp and Utility.h. Other
“helper” routines may be placed in Utility.cpp as well.
 
6:54 AM
@Rapptz Link?
 
I want to kill myself
 
@Drise getting the quicksort algorithm to solve world peace is much harder than to make it sort.. just sayin'
 
I cant even make it a template
 
@Xeo oh fcuk, wrong person
 
since it must exist in the cpp file
 
6:54 AM
 
Xeo
lol
 
2 mins ago, by refp
@Xeo your answer could've been more explaining though, even though it's sufficiant
^ @sehe
 
Unfortunately, everywhere I look says just use std::sort :/
I would greatly appreciate the help guys; I only come here as a last resort.
 
@sehe mentioning how the return type and implementation of std::function is unspecified in the standard etc etc.. I'm too lazy to do it myself (I was about to but then you submitted an answer)
 
Damn it Xeo. Now it has 4 upvotes 1 downvote.
:(
 
Xeo
6:56 AM
I like how the answer is getting upvotes now. :D
 
Yeah, I noticed it too. :)
 
there should be a "translation rep bonus" to those who translate cat into english
 
+4 now
lol
 
I don't have an account at meta.stackoverflow.com, can someone please propose this?
 
> Type inference. Again, even C++ has this, FFS. At the very least, what possible reason could there be for not allowing type inference for local variables?
Nice
 
6:58 AM
> Automatic setters/getters. It's such a common task to want to expose member variables, but setters/getters are so verbose to write that lazy programmers frequently just make the variable itself public.
Honestly I think this means it should be public and your "encapsulation" isn't doing anything.
 
Ell
@drise do you have to write it iteratively?
 
@Rapptz The only way I've found Getters/setters usefule is autocomplete, since I can just type "get" and see a list of things i can get from the class
@Ell What? As in, I do not know how to respond to your question.
 

« first day (920 days earlier)      last day (4034 days later) »