« first day (705 days earlier)      last day (4235 days later) » 

8:00 AM
@R.MartinhoFernandes You're getting Nice Answer for sure. It's too early to tell if it'll go +100.
 
@Insilico Yes, that's what I meant.
 
Okay, going by Jerry's estimate: 2/3 of 1 yard. Which is 0.6096 meters
 
> surviving cubit rods are between 52.3 and 52.9 cm (20.6 to 20.8 inches) in length.
 
The moment of inertia for a rod of length L and mass m is mL^2/3
 
@Insilico Doing a quick check, that's a bit high. My forearm is closer to 19 inches.
 
8:01 AM
@Rapptz By that number, I've calculated 18254660125610476,5 years of facepalm
 
Okay, we'll use Jerry's forearm for this back of the envelope calculation.
 
@Insilico let's just be a bit conservative and say 500mm
 
@Neil Use decent units, boy. How much is that in universe ages?
 
love this conversation...
 
8:03 AM
@R.MartinhoFernandes thousands of life times worth of stars... sequentially
 
So energy to make one facepalm = 1/2 * (4.54 kilograms * (0.4826 meters)^2/3) * (pi/2 radians / second)^2
 
@R.MartinhoFernandes 1250319 "ages of the universe"
Assuming the universe is 14.6 billion years old
 
so from what I've heard in this room a few times, it's better to write something like std::for_each(v.begin(), v.end(), MyOperation()) then a for loop iterating over the vector, right?
 
A range-based for loop is pretty much the same, with the bonus that it can jump.
 
@TonyTheLion Why would that be faster? I'm not being pedantic, just curious
 
8:05 AM
@Insilico I think that's fundamentally flawed though -- you seem to be assuming uniform distribution of mass along the forearm, but the hand concentrates a disproportionate amount of the mass at the end.
 
@JerryCoffin Does it?
 
@Insilico 0.4348 j
 
An array is accessed in O(1) time I thought
 
@Neil I'm talking about better in terms of readability etc, nothing to do with performance
 
¬_¬ sigh... link borked
 
8:05 AM
@JerryCoffin The whole calculation is already flawed seeing that we're essentially B.S.ing the numbers used.
 
@thecoshman It's joules (assuming he got the formulae correct).
 
@JerryCoffin wouldn't most of the mass be at the arms?
 
So I get 0.435 joules.
 
@TonyTheLion Oh, meh, personal preference. I prefer good ol' fashioned int i=0
 
@Insilico Well, just glancing at mine it sure looks like it does, unless my hand is a lot lower density than the rest of my arm.
 
8:06 AM
@Insilico Which is about 525,882,731,532,363,690,997,186.56 J for 2^80 facepalms.
 
oh right
 
@Rapptz What is that in terms of atomic blasts?
 
525 ZJ. Nice.
 
@Rapptz Let's reexpress that in mass using E=mc^2.
 
5*10^23
 
8:07 AM
@Neil Little Boy had a yield of a few TJ
 
So divide 5*10^23 / speed of light ^2
 
Wait, how many Joules were they talking about on the What-if xkcd page about the ball traveling almost at the speed of light?
I need to put this into perspective
 
@TonyTheLion Unlikely to make a difference in speed. Then again, for_each is rarely useful anyway. One possible speed improvement though: there are implementations of standard algorithms that automatically distribute work across threads.
 
So 6e6 kilograms.
 
@JerryCoffin How can that work?
 
8:09 AM
Ah bugger he doesn't say
 
@Insilico That's not much.
 
Someone ought to submit this to http://what-if.xkcd.com/: How much energy can you get from
1,208,925,819,614,629,174,706,176 facepalms?
 
@R.MartinhoFernandes Yeah, but that's assuming the mass --> energy conversion is 100% efficient, which it isn't.
 
Are you sure you got that right?
That's very little.
 
8:09 AM
@R.MartinhoFernandes Well, you call the algorithm. It executes in multiple threads, then returns.
 
apparently 5*10^6 Kg
 
@JerryCoffin But how can it know my function isn't stateful?
 
@R.MartinhoFernandes Yes. That's the result of Einstein's E=mc^2 .
Of course the entire calculation is already bollocks anyway.
 
I get 5,851,234.5071711443417257952643809 kg
 
@R.MartinhoFernandes Actually, for for_each, it probably can't. Most of it is for things like std::sort.
 
8:11 AM
@Insilico The magnitudes won't be far from the right ballpark.
 
@Rapptz Only 5 million kg?
 
@R.MartinhoFernandes that is PURE mass, 1kg of mass has c^2 Joules of energy, that's a metric fuck kg of enrgy
 
@Mysticial Yeap
 
@Mysticial It's less than an Earth mass.
 
> "Ok, here's the kicker: it's going to be agile coded, entirely in HTML5!"
LOL
 
8:12 AM
@Mysticial Yup. Assuming our calculations aren't completely stupid that's how much mass you would need to convert to energy with 100% efficiency to be able to conduct 2^80 facepalms.
 
looks like we need to get xkcd on the job after all
 
We need that measured in cities.
 
@R.MartinhoFernandes In other words, it's possible to do 2^80 facepalms.
 
@Mysticial In terms of energy, sure.
In terms of time, not so sure.
 
8:13 AM
@Mysticial By fully converting <some number of cities> into energy, yes.
 
@R.MartinhoFernandes with 100% efficiency, mind you.
 
asking away :P
 
@Insilico We can toss in a few extra Manhattans to account for that :P
 
Of course human metabolism isn't 100% efficient, either.
If each facepalm takes about a second to conduct then 2^80 facepalms would take 2^80 seconds
 
Bottom line is: 2^80 facepalms are probably enough for Galactus's breakfast, but that's all.
 
8:15 AM
Or about 3e6 times the age of the universe.
So you would have plenty of energy but perhaps not enough time to do 2^80 facepalms.
 
asked
 
So if it's not possible for one person to do 2^80 facepalms, it's possible if there were a bunch of people doing it in parallel.
 
@Insilico Not enough time to adequately depict the face-palminess we wish to express!
 
@Mysticial So what if we got the entire human population to do it?
 
@Mysticial 2^80 people do it in half a second.
 
8:17 AM
@Mysticial a sonic boom of face paliming...
 
Interviewer: How would you calculate a square root (java)?
Me: Math.sqrt(double)
I: What if there were no square root function?
M: I'd Google for John Carmack's formula to calculate it.
I: What if you couldn't use Google?
M: Assuming you mean no access to the internet, since I don't happen to know how to calculate a square root, I'd ask someone...
I: What if there were nobody to ask?
M: I'm not a math whiz; I'd drive to a bookstore and get a book on how to do it.
I: What if there were no bookstore?
 
There's 6 billion people, so 2^80/6 billion
 
@Insilico Now you're thinking like an engineer
 
About 1/2000 ages of the universe.
 
8:17 AM
@R.MartinhoFernandes That's much more doable
 
So about 7 million years.
 
Also surely 2^80 facepalms would wear down your face with each palm
 
@Neil Considering the average human lives only for a few decades... no.
 
Though I think we should find alien life and get them to do facepalms as well
 
@TheForestAndtheTrees try it, see how far you get
 
8:18 AM
@R.MartinhoFernandes Future generations, man, future generations
 
@TheForestAndtheTrees We're assuming perfect hands and foreheads.
 
@TonyTheLion Are you looking for a new job?
 
@Neil We just have to convince the world universe that it's a religious rite...
 
@Neil But that means it takes much longer, unless you suggest they have sex while facepalming.
 
@R.MartinhoFernandes We'll allow mutual face-palming in that case.
 
8:19 AM
@JerryCoffin We, as a species, seem particularly adapted to convincing others they need to do silly things like kneel and pray anyway
 
we are also assuming no resistance of any kind
 
@R.MartinhoFernandes Of course, it is the only feasible way this would become possible
Otherwise the human race would die before achieving its goal
 
@R.MartinhoFernandes it could must be done
 
@Neil Looking at the species as a whole, it would appear that far more are adapted to being convinced than doing the convincing.
 
8:21 AM
@ManofOneWay no it was on TDWTF
 
@thecoshman Yup, resistance hasn't been calculated.
 
@TonyTheLion ah lol =)
 
> The solution: robots!
@thecoshman Space is not a problem.
 
@R.MartinhoFernandes what does space have to do with this?
 
int x = 0L; I thought the L suffix was only for long types?
 
8:22 AM
@Neil Sex is not the answer. Sex is the question -- and "yes" is the answer!
 
@thecoshman There's minimal to no air resistance in space.
 
@TonyTheLion yeah, a long nothing that is converted to a standard nothing
 
Double facepalms can help double the throughput (or at least be >1). :-P
 
@R.MartinhoFernandes but then you have to factor in the resistance your suit will provide, as well as the resistance of your joints
 
@thecoshman This was a back-of-an-evelope calculation, not a Ph.D. thesis on biomechanics.
 
8:24 AM
@thecoshman Meh, that can easily be reduced to marginal values. It won't make a big dent on the overall magnitude.
 
@thecoshman wut?
1
Q: What is the issue with std::async?

NoSenseEtAlWhile watching a clip from C++ And Beyond: link I heard something about problems with std::async (begining of the video), but tbh I didnt really get what the problem is. So my questions are: 1) for a junior dev is there a do this, dont do this set of rules when using std::async 2) for somebody i...

 
@TonyTheLion it's a long zero, that get's stored as a normal zero :P
 
this was from the CPP & Beyond video I posted yesterday
I don't have much experience with std::async
 
Praise The Lord, I finially finished my bot. Thank you all
 
@JerryCoffin A bad mix of both I would say. People who want to lead should be the ones on the sidelines voting and the ones who want nothing more than to live their lives should be leading
Wanting to lead should be automatic disqualification for a job in politics
 
8:29 AM
So, everyone should be unhappy?
"I don't want to lead, I just want to live my life"
 
@Neil Hmm...sounds straight out of the Hitchhikers guide.
 
@JerryCoffin I admit I am a fan
@R.MartinhoFernandes I think the greater good is more important than the happiness of those who lead
As for the rest, there are way too many of them to all be in politics anyway. They'd be happy cutting each other's throats as lawyers and trying to gain favor with the judges
 
@Neil Those that don't lead are also unhappy in your scenario, because they want to lead!
 
8:47 AM
system('echo "PASS" | sudo -u root -S COMMAND');
lol
php.net FTW
 
Howdy ?
 
Howdy
How I feel.
 
@TonyTheLion Proxy-blocked :(
 
meme
says "XML, XML Everywhere"
 
8:51 AM
@JerryCoffin hah. browser dependent, again :)
 
Huh, XML.
What are you doing ?
 
just configuring stuff
 
@TonyTheLion painfully true :'(
@TonyTheLion well of course you need xml then
 
@kbok Ouch. Just ouch.
@thecoshman wut? ini, rc, yaml, json, wha'evah?
 
@sehe I think he was being ironic.
 
8:59 AM
0
Q: Why do questions like "is i++ faster than i=i+1" even exist?

SingerOfTheFallThere are a lot of performance-related questions like this: Is ++i faster than i++? Is i++ faster than i+=1 and so on and so forth. While I absolutely understand that modern compilers optimize such occasions and produce the exact same assembly output, I'm wondering what are those questions b...

 
@LuchianGrigore Something tells me that might be more suitable for meta.
But I'm not ready to put a close vote on it.
 
Already have... :D
 
@sehe sarcasm defeats you yet again
 
@LuchianGrigore I mean like a migrate vote. You put a NARQ vote.
it's not migrating now...
 
bwhaha!!!!
 
9:02 AM
@Mysticial Or PSE maybe
To me this is an education issue
 
20 hours ago, by Luchian Grigore
I'm thinking of putting together a community-edited meta post on why C++ questions usually get closed. Would that be a good place? Good idea?
I had a similar idea yesterday.
 
It seems like there's two types of performance questions that do well:
1. Is A faster than B. (usually a very trivial question)
2. Why is A faster than B. These are the ones that I tend to answer.
 
I'd close 1. questions instantly. No effort put in (at least to profile) == no cookies or answers for you
 
@LuchianGrigore Well... the highest voted question of the month is a #1.
 
Well, I'd do it if I had the power to instantly close questions... Until I get there, I don't mind a little more rep...
@Mysticial which one?
oh
the x = x + a vs x += a
 
9:10 AM
423
Q: Is < faster than <=?

Viniyo ShoutaI'm reading a book where the author says that if( a < 901 ) is faster than if( a <= 900 ). Not exactly as this simple example, but slightly performance changes on loop complex code. I suppose this has to do something with ASM in case it's even true. Thank you for checking out the question....

 
that one
 
that one is hard to miss
it's in-your-face at the top of the month list.
 
That doesn't say anything
Other than some questions & answers don't really deserve downvotes
 
This Q sucks
 
Do you think I would have thought I'd get 300+ votes for stating some reason for using {...}?
I don't think that deserves even 10 votes
 
9:12 AM
@LuchianGrigore Well, now you know how random it is.
 
I know
All I'm saying is... it kinda sucks :)
It's okay though
The pluses overcome the minuses by a mile IMO
Just saying some stuff could be improved
 
I've found that reddit/r/programming seems to have a better taste for technically advanced things.
 
I'd just rate votes differently
An upvote from a -1k user = 1 point
10k user = 10 points
100k user = 20-30 points
Jon Skeet = 1000 points :)
 
that's be too drastic of a change this late into SO's life
 
I know it won't go
just saying
:)
 
9:15 AM
I also don't agree with weighing votes like that. Anyone with mediocre expertise can repwhore to 100k while the true experts can sit with less rep.
 
@Mysticial with the system I suggested?
I doubt that
It'd be harder to repwhore
A lot harder
 
You're also assuming that people will use their votes properly.
 
@Mysticial people don't use their votes properly (most of them)
but most people don't have a lot of rep, so it wouldn't matter
@Mysticial go to your voting history and paste the last 5 Q/A you upvoted
 
47m
upvote Can you use the sizeof one member when declaring another member?

50m
upvote Can you use the sizeof one member when declaring another member?

2h
upvote Why memory allocation of 2^80 bytes doesn't fail?

2h
upvote Why memory allocation of 2^80 bytes doesn't fail?

5h
upvote Determine the sign of a 32 bit int
 
And they all are deservant of upvotes, right?
Do you think the average 100 rep user would even notice them?
 
9:20 AM
@LuchianGrigore nope, the upvote on the 2^80 bytes question was a joke upvote.
 
Reading POSIX docs on exec... Not helping
 
Regardless. A "move your impl to headers" is more likely to get a lot more upvotes :)
IMO
 
damn, sometimes Stack Overflow makes me despair
 
I'll go with execlp
 
hadn’t we (as a programming community) already established that null pointers should not be used except to indicate the absence of data, and to use empty collections otherwise?
yet in the current discussion on SO, everybody chimes in to say how fab it is to hide null values in code …
 
9:25 AM
@LuchianGrigore This Java question seems to be very similar to the one you answered a couple days ago: :P
12
Q: Java curious Loop Performance

RenéI have a big problem while evaluate my java code. To simplify the problem I wrote the following code which produce the same curious behavior. Important is the method run() and given double value rate. For my runtime test (in the main method) I set the rate to 0.5 one times and 1.0 the other time....

 
@KonradRudolph dunno, I don't recall signing anything to that effect. ;) I do sometimes use null pointers to denote (absent) optional data. Depends on the situation though. An empty collection or boost::optional might well be preferable
but if you might have zero or one objects, then a collection doesn't really communicate that constraint. It indicates that you have "zero or more" objects
 
@jalf I was referring to this discussion:
14
Q: Is "".equals(var) bad practice?

KaniI read a long time ago that: "".equals(var) is bad practice. But i can't remember why and i didn't find the information about that. I would say that is bad practice, cause you're not knowing the current state of your variables. Do someone know that or is it a invalid fact?

 
Is there any way I can call a program+arguments in one string in POSIX? It seems like it wants both in seperate variables :(
 
@Mysticial it's exactly the same.
 
9:28 AM
oh. In that case, no, the managed language guys love their null pointers/references way too much
I don't think there's ever been any kind of consensus that their use should be minimized, or that you should even try to establish invariants like "this object is not null"
 
@jalf Actually, the “good” guys (Josh Bloch etc.) explicitly advocate against using null excessively
 
Guys I'm going to ask a stupid question. I probably asked it before but I don't remember.
 
@jalf Well, when I say “consensus” I do refer to sensible people, i.e. people who’ve published acclaimed guidelines for programming, not John Doe or Joe the Plumber.
 
Do you know if a namespace with the same name in the same assembly
are combined?
For example std namespace in #include<string> #include<iostream>
Does the compiler combine it into one std namespace?
 
@LuchianGrigore Damn... I'm searching through the recently active questions. There are a LOT of "Is A faster than B" type questions... geez.
 
9:30 AM
@LewsTherin C++ doesn’t have assemblies, and namespaces are simply prefixes for names, there’s nothing to “combine”
 
And they range anywhere from heavily downvoted, to the recent +100s that were seeing.
 
@KonradRudolph technically, you didn't say "consensus" at all. ;) /pedant
 
@Mysticial The answer to all such questions is of course "measure, you lazy-ass!"
 
& it's completely random. I guess it just depends on who's online at the moment.
 
@jalf Oh. I did in my answer though.
 
9:31 AM
@Insilico Exactly...
 
@KonradRudolph dlls?
 
It can become interesting after they measure, and there actually is a difference though. (that's rarely the case)
 
@Neil The iPhone 53 looks pretty cool :)
 
but yeah, I agree with you, and with the sensible people, that you should try to avoid needing null checks in the first place, instead of assuming everything can be null. Just saying C#/Java people in general rarely code like that
 
@LuchianGrigore And even then you need to establish there is some kind of statistical significance.
For example, are average times 2.3423 and 2.3540 different enough such that the difference is probably not due to chance?
 
9:33 AM
There's also a fair number of "Why is A faster than B" type questions as well. Most of them are < 10 though.
 
Wasn't it Alan Kay who called the inclusion of null in programming languages his "most expensive mistake" or something like that?
 
I take that back... I just found to heavily upvoted ones (not mine).
 
@Mysticial Links?
 
@Insilico Gimme a sec to organize my lists.
 
@LewsTherin Hm are you working with C++/CLI?
 
9:37 AM
@kbok I prefer the iPhone 26
 
"Is A faster than B?"
http://stackoverflow.com/questions/12135518/is-faster-than
http://stackoverflow.com/questions/12479486/is-x-a-quicker-than-x-xa
http://stackoverflow.com/questions/12482610/is-faster-than
http://stackoverflow.com/questions/12504765/is-there-a-performance-difference-between-i-and-i-in-javascript
http://stackoverflow.com/questions/12494241/does-bufferindex-take-the-same-amount-of-cycles-as-buffer
http://stackoverflow.com/questions/12474722/will-the-size-of-a-java-class-impact-the-performance-of-the-application
I stopped searching after hit the matrix question.
But the trend is clear, the first type tends to be a lot more volatile with votes than the second type.
The second type doesn't get downvoted.
 
before you linked to the matrix question, I had ~12 upvotes for the answer
I spent a couple of good hours on that
 
@Mysticial His brain is in a loop! Quick, break him!
 
Would you upvote this answer
No!!!
I wouldn't... mostly because it doesn't deserve more than 2 upvotes
I still got 70 rep off it
 
@Mysticial That's because the second type is a valid question, and the first type is "I don't know anything about performance, at all."
 
9:51 AM
2
Q: static_assert for ensuring design contract

RamAs a part of a team of developers, I wanted to ensure that a set of functions (and operators) are implemented on the custom iterators that we publish. Using STL iterator types as base types help, however due to some reasons(outside my control) we decide not to enforce STL compatibility. The iter...

ah puppy
how's your tutorials coming along?
 
@Mysticial I think stackoverflow.com/questions/12482610/is-faster-than falls in the second category though... The title might be there just to impress :)
 
I should probably read them, I may learn a few things :) @DeadMG
 
oh that's OK, I'm here and you'll probably pick it up by osmosis
 
does fork+exec+wait block the calling process, or thread?
 
@DeadMG can you post the link again?
 
9:57 AM
what link?
 
to your tutorials
 
it's a bit of an older version, but that's OK
 
It's on his profile...
 
9:59 AM
I kept hearing pings while I was in the shower... now let's what I missed.
 
> From the perspective of a compiler, UB is impossible- it simply doesn't exist.
not sure I understand what you mean by that?
 
@LuchianGrigore The OP was asking a type A ("Is A faster than B".) The answer just happened to be completely different.
 
how does the compiler figure out if something is UB?
 
Oh wait, I take that back. The OP did actually do benchmarks - even though they were flawed. So yes, it's a type B performance question.
 
@Mysticial actually, it's more along the lines of "A and B are usually the same, why, in this case, is A faster?"...
 
10:02 AM
@TonyTheLion It doesn't. UB is only a valid concept in the standard.
 
@kbok right, then this paragraph from @DeadMG tuts makes no sense:
> This means that any code paths which lead to UB must, by definition, never be executed at run-time. This means that if you accidentally invoke UB which the compiler figured out at compile-time, you can end up with sections of your source code that were simply deleted by the compiler without ever telling you.
or have I misunderstood it?
 
@TonyTheLion I understand it as "Doing nothing is a valid instance of UB"
 
@TonyTheLion Static analysis.
for example, if you say *p, then the compiler knows p cannot be NULL.
 
The compiler, though, can figure out that you are doing something nasty and work around it.
Those a probably, IMO, side-effects of optimizations.
 
if you write *p, the compiler can statically infer that means that p cannot be NULL, else would be UB.
so it can perform optimizations based on the fact that p is not NULL.
 
10:07 AM
Gotta go before I confuse myself with my own explanations :)
 
Hi.
 
@TonyTheLion This was allegedly said by Scott Meyers: "we all know what an undefined means: it works during development, it works during testing, and it blows up in your most important customers' faces." -
 
I am trying to write a comparator inline for std::sort using Boost.Phoenix but this does not work, as in, it complains type 'boost::phoenix::actor<Eval>' does not have an overloaded member 'operator ->'. The comparator so far looks like this: (*_1)->getId() < (*_2)->getId()
Any ideas how to fix this?
Hmm, (*_1)->*&Foo::getId might work.
 
(*_1) is that a Boost::Phoenix construct?
because if it is, it looks like it doesn't have operator-> overloaded
 
Oh, this question got completely rewritten a minutes ago. So if anyone wants to change their votes or vote to reopen, the OP can use some help.
 
10:15 AM
@DeadMG ah I think I get it then
 
You can vote to reopen your own question?
 
Someone needs to do a "-1 not enough Boost" on all the answers here: stackoverflow.com/questions/12510454/…
@Rapptz yes
I think you can do it even before 3k.
The "view close votes" privilege I think will let you close and reopen your own questions.
 
Why did that question get downvoted
 
@Rapptz check the first revision
the title was basically crying "off topic"
 
Don't think I see it.
I meant the multiple of 8 one.
 
10:26 AM
@Rapptz Oh, that was meant to be a joke.
Like the add two numbers with jQuery question.
 
Confused. I upvoted anyway, same with the one with -7 votes.
 
That's where the "-1 not enough jQuery" meme came from.
3
 
Yeah I saw that long ago.
 
It's since been somewhat extended to "-1 not enough Boost". Though the only time I've actually seen it used was on the Boobs Operator question.
 
@Mysticial That can't have been a real question
I refuse to accept that.
 
10:29 AM
166
A: The Many Memes of Meta

TheTXIMeme: jQuery Originator: Unknown (possibly Ólafur Waage) Cultural Height: TBD Background: A Stack Overflow-centric meme, jQuery began its career early on as the answer to beat for any question that even remotely referenced JavaScript. Its popularity became so great that eventually jQuery becam...

 
@Neil Of course it's fake. But when it hit reddit, someone actually asked that exact same question on SO as a prank.
It's deleted though.
But I have the link for it.
 
@Mysticial And he was destroyed piece by piece
 
AKA none of us
 
I posted a screenshot a while back...
gimme a sec to find it
 
10:31 AM
TheTXI has so many memes.. Everytime I look at this thread his name is everywhere
 
@Rapptz none of you >:)
 
One day.. you'll see :(
 
and chat search is down...
http://i.stack.imgur.com/OmGVg.png
http://i.stack.imgur.com/XeQl4.png
 
I love how there's still someone giving the correct answer.
 
damn onebox is misbehaving
 
10:37 AM
lol
 
anyways, 5:30 am here. I need some sleep.
 
I tried sleeping but someone woke me up and now I can't anymore
 
@Mysticial That's hilarious
 
@Mysticial I really hope you don't need to work in the morning?
 
OK let’s make this clear once and for all: conservative coding has no correlation with conservative political leaning. The two are totally unrelated, two different semantic usages of the same word.
and Yegge’s wild, fanciful speculations are nothing but a dialectic trick.
 
10:47 AM
@KonradRudolph You mean I'm not republican?
 
@Neil I have no clue
 
I'm confused. I need a strong political figure to tell me what to do and who to pay.
 
is there a place i can see in it the source code of header files like iostream?
 
@MohamedAhmedNabil yes. Just find the iostream file on your computers harddrive
 
@jalf oooooh
@jalf Im using VC++, where should the file be?
 
10:51 AM
@KonradRudolph yep
 
@MohamedAhmedNabil wherever you installed visual studio
 
> there are no lvalue pointers
huh?
How are pointers rvalues?
 
or if you're using VS, just right click on the name in your source code, and select Open document <iostream>
 
@TonyTheLion They can be rvalues
int *p ;
int *r ;
r = p ;
I think so anyway
 
@LewsTherin what does puppy mean with that statement
 
10:53 AM
@MohamedAhmedNabil - It's usually in program files -> VS version -> include
 
@TonyTheLion I dunno, I wasn't here.
 
@MohamedAhmedNabil - C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include for example
 
So I was asking a ridiculous question earlier but I was interrupted
 
@Aesthete I actually found it in a different place
 
10:54 AM
cause I certaintly do int *p = &someint; int** pp = &p; I can take address of pointer, so that qualifies an lvalue?!
 
\VC\crt\src
 
@TonyTheLion I meant, as opposed to rvalue pointers.
 
cool
 
i.e., pointers cannot distinguish between lvalue and rvalue
 
Is the std namespace in #include<stdio.h> and #include<iostream> compiled into one std?
 
10:56 AM
hmm
my copy locally says there are no rvalue pointers
maybe it was just a typo
 
ah
now rvalue and lvalue refer to expressions
an expression is anything which yields a result
so int x = a + b; is an expression right?
 
no, that's a statement
a + b is an expression.
 

« first day (705 days earlier)      last day (4235 days later) »