« first day (454 days earlier)      last day (4478 days later) » 

4:00 AM
@CatPlusPlus Being sued out of existence by MS wouldn't be desirable either
From Windows 7 EULA - "Device Connections. You may allow up to 20 other devices to access software installed on the licensed computer to use only File Services, Print Services, Internet Information Services and Internet Connection Sharing and Telephony Services."
 
Oh, I wasn't serious about "Pirate it!" thing.
 
That was not the point, either.
 
@CatPlusPlus Then what was the point?
 
IIS? That's the ASP.NET server technology, isn't it?
although I guess 20 devices isn't much
 
Yes
And technically the wording in the EULA could be a bit subjective
Do they mean 20 different devices accessing at once? Or only 20 devices can EVER access the server?
 
4:02 AM
@IDWMaster: It might have been something about beeing sure you need windows
 
Anyways; should I leave the server on for a day or two; or turn it off?
I won't sue anyone if they give the wrong answer.
But has anyone else had experience with fan bearing problems on GPUs?
 
@IDWMaster: How should we now, depends on how you rate lack of access to the server for sometime against the risk of catastrophical hardware failure
 
@Grizzly The problem is, I don't know what the chance of catastrophic hardware failure is.
I also don't know if the GPU has protection features similar to the CPU
which would shut it off in the event of an overheat
 
@IDWMaster: What kind of gpu are we talking about
 
Bearings usually start making noise long before they fail.
 
4:07 AM
Another factor is that bad bearings could also wreck the power supply by putting an increased load on it to power the fan
@Grizzly NVidia GEforce GT 430
 
I'd think that fans typically don't require that much power for that to be likely
 
it does
GPUs have more heat tolerance than CPUs, but they have the same thermal protection built-in
my Q6600's TJ-max is 100 and my 8800GT's was 120
 
I think a 430 should at least clock down if it gets to hot
 
Besides it doesn't take that much power
 
4:12 AM
operator overloads are very different because they're user-defined functions
 
@DeadMG Though I wouldn't let a Q6600 or any CPU get anywhere near it's TJ-max. For the Q6600, I wouldn't let it get above 60C.
 
but fundamentally, you are completely correct- obviously a(b(), c()) requires the evaluation of b() and c() before the call can take place to a
 
@Mysticial I recently had my i7 CPU get to about 101C (that was WAY hot) and it didn't shut down
 
so as long as it isn't maxed out it it might not even overheat even if the fan fails (speculation of course I have no idea how the heatsink is speced
 
@Pubby There are no function calls in that code.
 
4:13 AM
@Grizzly I'm not too experience with video card OCing, but I think 80C is a good upper limit that you should stay within. (though my 275 occasionally goes above 85C under Crysis)
 
@DeadMG Yes, but wouldn't they still be grouped by precedence? a + b - c * d would be operator*(operator+-(a,b,c),d) in my psuedocode. But is it correct?
 
You're right that evaluation of function arguments is sequenced before execution of the function, but there are no function calls in question.
 
@Mysticial Our server's GPU doesn't usually get much hotter than 60C at max.
 
@RMartinhoFernandes The sequencing is effectively the same- except in regards to sequence points and such, but they have no bearing on it's correct operation.
 
We usually receive short bursts of GPU workloads.
 
4:15 AM
@IDWMaster That's bad... My i7 2600K sustained 75C for 6 months straight, and degraded slightly. (though I think it was more because of the 1.4 vcore I gave it...)
 
@Mysticial My thermal paste melted. That caused it to get that hot just idling.
Replaced the thermal paste, and the CPU works as good as new
 
@IDWMaster: That is actually hotter then I would have expected for such a small card
 
@IDWMaster Holy shit... what kind of garbage paste is it? Or should I ask what did it heat up to?
 
I mean as good as customAllocator->alloc
@Mysticial It was the stock thermal paste
Replaced it with some arctic silver stuff
works fine now
 
@IDWMaster Oh that thin pad-like thing that comes with the stock Intel heatsink?
 
4:17 AM
@Mysticial Yeah.
 
@DeadMG No, it's not the same sequencing. There's a reason i = i++ is well defined for UDTs, but not BITs.
 
> except in regards to sequence points and such, but they have no bearing on it's correct operation
 
Also, when will people stop talking about these sequence point things?
 
@IDWMaster I've never used it - since I always use an overkill 3rd party sink/cooler.
 
@RMartinhoFernandes We'll stop when they start making sense!
 
4:19 AM
@Pubby There are no sequence points! They were nuked!
 
But... I was so close to understanding them....
 
I think your answer is not relevant, because it is assuming a different scenario than the one posed.
 
Yeah, I deleted it
 
Also, I don't like the question.
There's no *--p in its body.
0
A: What happens when an object's rvalue reference member variable is moved by two rvalue-aware functions?

JasonAccording to the standard, rvalue references can bind to either xvalues, that is a lvalue that is "expiring", or prvalues, which are "pure" rvalues. In your case, because this is a template, a non-constant lvalue can also bind to the argument of my_func. In any of these cases though, the fact t...

Can someone make sense of this answer?
It seems to go on and on and on and never say anything.
Like lawyerspeak.
 
@RMartinhoFernandes A lawyer probably wrote the answer, not a programmer.
 
4:26 AM
@RMartinhoFernandes: I think that answer isn't even correct
 
I was trying to decide that, but I fail to understand it.
 
Whatever happens the object should not be put into any kind of deinitialized state
the first paragraph is basically pointless rambling about rvalues
and the second isn't correct since even moved from rvalues are assumed to be in a valid state
 
Ok, it's good to know I'm not the only one getting the "pointless rambling" impression.
 
Hi, anyone knows for good DETAILED Windows API Book, (COM programing) THANKS!
 
There is no call to std::move. – R. Martinho Fernandes 3 mins ago
Isn't std::move a function? – Jason 13 secs ago
 
4:33 AM
@RMartinhoFernandes: wow
 
What can I say? Am I being trolled?
 
@RMartinhoFernandes That's like saying "there is no spoon"
@RMartinhoFernandes std::move is clearly an <algorithm>.
 
> Yes, and so is std::strtok. I don't see how that makes it relevant. – R. Martinho Fernandes just now
I picked the worst, most irrelevant function that came to mind.
 
@RMartinhoFernandes Give him a break. He's probably just thinking about moving in his mind and didn't notice that the OP hasn't shown any invocation of the template...
 
Though, now there's a call to std::move (well, the equivalent of)...
 
4:35 AM
So something like "what would happen if I called "f(std::move(x))"
 
Damn edits.
I still don't understand the question btw.
 
So the OP has been bullied by comments to break his code with overeager forwarding
 
//if tup's members are rvalue references, is confusing me.
 
@RMartinhoFernandes I think it's reasonably clear ... the OP wants to know what happens when you call my_func(std::move(x))
 
does anyone know what an error like this means: (.rodata._ZTV6Engine[vtable for Engine]+0x30): undefined reference to `Engine::init()'
 
4:37 AM
@evolon696 Linker error
 
@RMartinhoFernandes: Its about somethink like std::tuple<std::string&&, in, std::vector<int>&&>
 
You're missing a definition for Engine::init
 
it is a virtual function
 
@Grizzly But why the forwarding?
I think I agree with you that it's now broken.
 
@RMartinhoFernandes: You mean why the OP added the forwarding? Bad advice
 
4:39 AM
@RMartinhoFernandes And your comment could really have said "There's no move in the original post".
 
I warned against it (well more or less)
 
@KerrekSB It's too late!
 
i answered a question!
8
Q: Is `*--p` actually legal(well formed) in C++03

Prasoon SauravOk. There has been lot of debate going on this at comp.lang.c++ and now I have decided to ask the question here because this is actually the place whether you get answers. Here is the sample code int main() { char *p ; char arr[100] = "Hello"; if ((p=arr)[0] == 'H') // do stuffs } Is...

 
As it stands, your assertion of a universal non-existence of any move is not tenable.
 
4:40 AM
@AlfPSteinbach Congratulations!
@KerrekSB I won't remove it as that would make the poster look like a fool.
Even more.
I posted a comment on the question about the silly forwarding.
> I was asking what would happen if the object's rval-ref members were moved, not the object itself. – pheedbaq 42 secs ago
 
the weather is nice
 
Awesome, so they did bully him into wrecking the question.
 
@AlfPSteinbach There should be a "not a comment" flag.
 
does gcc support the full c++03 standard
 
4:43 AM
is there a compiler that does
 
And it won't ever.
 
why not
 
Comeau.
 
@evolon696 Because export was removed in C++11. There's no point in implementing it now.
 
Also nobody uses export, anyway.
 
4:44 AM
oh does gcc support the full c++11 standard yet
 
Exactly why there's no point.
@evolon696 No, not yet.
 
@RMartinhoFernandes The answerer was "bullied" by one single downvote?
 
And from what I remember the only people to implement export advocated its removal
 
@KerrekSB My downvotes are powerful!
 
4:45 AM
is there a compiler that is making better progress than gcc
 
@RMartinhoFernandes A single RMF-- feels like ten ordinary downvotes?
 
@KerrekSB I use the ¤ for that.
 
@evolon696 Apparently Clang...
 
@KerrekSB Clang has no lambdas!
Nor list initialization.
 
4:47 AM
is it better to wait for gcc or just use clang
 
I'd say gcc and clang are about on the same level
 
@AlfPSteinbach Oh wait, when you said "i answered" I thought you had finally stopped answering in comments :(
 
A friend of mine asked me to find the bug in this:
template<typename T> int doStuff() {
  auto p = new T;
  // ... do stuff with p ...
  delete p;
}

  // ... later ...
  doStuff<int[24]>();
 
@evolon696 It's basically a "pick the set of features you want to use now".
They both implement different sets.
 
Unfortunately, it doesn't compile in GCC 4.6.2. He suggested I "throw out that broken compiler"
 
4:48 AM
clang has some features implemented which gcc hasn't and the other way around
@KerrekSB: lol? What did he suggest instead?
 
@Grizzly Clang of course. He's one of the developers.
 
@KerrekSB: That explains it
 
@Grizzly It certainly adds perspective
 
@KerrekSB: One way of putting it
 
@KerrekSB I'd rather have a compiler with lambdas than one that compiles that code.
 
4:51 AM
@RMartinhoFernandes That's because your mindset is ad-hoc and not generic.
You want to do things here and now, rather than think about the pattern that underlies everything and solve the problem once and for all. Once and for all!
 
@KerrekSB No, I want lambdas.
 
I don't think I would have found that kind of bug (if that really is supposed to work) on my own. ever.
 
A language with no lambdas is a big no-no for me.
 
@KerrekSB: So Clang has no bugs?
 
What can I say, Haskell and C# spoiled me.
 
4:53 AM
Somehow I find that hard to believe
 
template<typename T> int doStuff() {
  std::unique_ptr<T> p(new T);
  // ... do stuff with p ...
}
Fixed.
 
@Grizzly I wouldn't know, I don't have or use it.
 
did gcc write nano in lisp
 
@evolon696: what?
 
Or actually, I probably do have it on my Linux box, but last time I tried to compile something there was no standard library, or some such nonsense
@RMartinhoFernandes Cheated :-)
 
4:54 AM
i need to know if gcc wrote the nano editor in lisp
 
@KerrekSB Hey! You said something about solving the problem once and for all.
 
@RMartinhoFernandes I was referring to global warming...
 
I even solved other problems with that code.
@KerrekSB Oh, that I can't fix.
 
@evolon696: Maybe it's me, but I have problems parsing that question as anything even remotely making sense
 
GCC doesn't write things.
 
4:56 AM
omg i feel retarded i meant gnu
 
Also, I realized that while I tried have a gender-neutral view here (i.e., instead of saying "nearest hot chick") I forgot about non-heterosexuals.
 
"member of the suitably attractive sex"?
 
@evolon696: did gnu write nano in lisp? That's still not very sensical
 
What about simply "Was nano written in Lisp?"
 
You're forgetting about people who are transgendered or self-redefined. How dare you demand that they suffer their physical form dictate their identity.
 
5:01 AM
Change 'the' to 'a' in 'the suitably attractive sex'.
 
@KerrekSB I never did that!
 
"members of an appealing sex or self-definition"
 
@RMartinhoFernandes: yeah that would make more sense
 
yes was nano written in lisp
 
@evolon696: so why do you care
 
5:02 AM
What if someone takes exception to being found attractive based on their sex or self-definition?
 
and what keeps you from taking a look yourself
 
@KerrekSB The world is about to end. They should be more forgiving.
 
0
Q: How can I allow my templated Vector allow types without a default (empty) constructor?

mmurphyI am creating a templated Vector class, however, when comparing its use to something such as std::vector, I noticed that it does not allow structs\classes without a default (emtpty) constructor. The error I will get is error C2512: 'SomeStruct' : no appropriate default constructor available : ...

Is it possible to initialize a dynamic array with a non-default constructor?
 
@EtiennedeMartel Sure. What's your definition of "dynamic array"?
 
i thought it would be easier to ask because i am going to try write something like that
 
5:04 AM
@KerrekSB A new[] statement.
 
@evolon696: But judging from the source I would be inclined to say no
 
Like new int[4] { 1, 2, 3, 4 };?
 
new foo[2] { foo(1), foo(2) };
 
Noone in their right mind would implement a dynamic container with new[] though
 
Hmm. I was asking that for the question I linked.
 
5:05 AM
looks up how Java is implemented
 
@evolon696: So why would you care what nano was written in?
 
@KerrekSB new char[x]!
 
If you want to write a texteditor in lisp go for it
 
a.allocate(x)
 
but if nano was written in lisp then i would know it's possible to do
 
5:07 AM
regarding the bugs that are common in most c++ software, maybe c++ has a "dark assignment" operator that you don't see, but that attracts values out of ordinary variables, making them indeterminate/uninitialized?
 
@RMartinhoFernandes Out of your mind!
@AlfPSteinbach Putting the ass back into assignment?
 
Well I really need to go to bad, so good night
 
@RMartinhoFernandes ::operator new(x). And who calls an integer "x" anyway.
@Grizzly My tomatoes have already gone bad.
 
@KerrekSB yeah. really badass ignment
o_O tasty food images...
 
@KerrekSB a.allocate
 
5:09 AM
@AlfPSteinbach Hehe. The ignment operator overload.
@RMartinhoFernandes Quite
 
The most silly foodstuff yet: baked carrots!
 
Wut? It's delicious.
 
byte1 << (byte2 << (byte2 << byte 3 >> byte1)); why is the following code considered bad?? i am confused
 
@evolon696 The code itself confuses me.
 
i think byte3 gets shifted to byte1
 
5:14 AM
@evolon696 Your confusion itself is a better argument than any of us could ever make.
 
Good point.
 
Can byte2 overload a templated operator<?
 
hello everyone,
anyone good at neural networks ?
 
byte2 is just an unsigned char
 
@Patryk My brother is good at mural networks -- do you need an atrium decorated?
 
5:16 AM
@AlfPSteinbach Honestly, if you want silly (but tasty) food, check this out: en.wikipedia.org/wiki/Poutine
 
@KerrekSB thanks a lot but I don't think he can help me
 
@EtiennedeMartel The only silly food I still have on my "must-before-death" list is the Gigantor burger
 
Anyway, if any of you would like to take a look at my question, that would be cool :)
http://stackoverflow.com/questions/8845446/unpredicted-results-from-running-while-using-ann-library-using-fann
 
I've planned this well, and death will be the logical next step.
 
@EtiennedeMartel That almost looks not edible.
 
5:18 AM
Yeah. It looks weird, but it tastes really good.
 
@KerrekSB Here's a free tip: if you're sentenced to death, you can pick it as your last meal!
@garybernhardt As far as I was concerned, programming is an activity that involves staring at a screen, and periodically saying 'fuck'.
 
@RMartinhoFernandes Oh, good. I'll keep that in mind for my next capital offense.
 
@EtiennedeMartel oh, i've had one quite similar i think, at "Politiken" on the "Youngstorget" place in Oslo.
okay, no, not that big!
 
5:33 AM
English.Stackexchange is awesome! I earned 195 rep. in one hour.
195+20 = 215!.
 
@IntermediateHacker I'd be careful where you put the "!". Since "215!." implies 215 factorial - which believe it or not, I think is a tad bit more than Jon Skeet.
 
5:50 AM
@Mysticial lol.
 
6:13 AM
hey guys
 
0
Q: Should Impossible Questions be Closed Down?

IntermediateHackerThere are some questions, where the OP is trying to do something which is , frankly , impossible and absurd. The fact that usually makes it impossible is that the OP insists on refusing to use other techniques, or to change his strategy etc. Now, if more than 10-20 experienced SO users highlig...

Impossibleâ„¢
 
They should make a movie about it: Question Impossible.
 
lol, you liked my answer. :)
 
@Mysticial yeah.
 
6:42 AM
I found a way to post images!
finally, I've found a way out of the lifetime bargain.
 
guys, what does it mean that a message is stared at in chat?
 
@bamboon it means the message has recieved a medal of honour.
 
@IntermediateHacker ok, and what is a medal of honour?^^
 
The Medal of Honor is the highest military decoration awarded by the United States government. It is bestowed by the President, in the name of Congress, upon members of the United States Armed Forces who distinguish themselves through "conspicuous gallantry and intrepidity at the risk of his or her life above and beyond the call of duty while engaged in an action against an enemy of the United States." Members of all branches of the armed forces are eligible to receive the medal, and there are three versions (one for the Army, one for the Air Force, and one for the Navy, Marine Corps an...
 
@bamboon how do you know that it's stared at, if you're not the one staring at it, or close to the person doing the staring?
 
6:46 AM
@IntermediateHacker Sure, a star is the highest military decoration awarded by the chat.
 
7:12 AM
wow, the chat sure progressed while I was gone.
hmm. since it's 11:18 here , it must be 11-4 = 7:18 AM in the UK. That probably explains why everyone is inactive.
 
7:35 AM
Hey, it's Friday 13th!
Stay indoors. Don't answer telephone! Don't use any electrical appliances!
And don't, absolutely don't, touch any code!
 
What shall I do if I can't get out, nor use the telephone, nor use electrical appliances?
All that's left is boring myself to death.
 
sbi
@IntermediateHacker I'm an hour ahead of the UK, and I got out of bed almost three hours ago. I already shepherded two kids out of bed, through breakfast and bathroom, and into school/kindergarten, and now arrived at work.
 
You can think about how love joins people, and the expansion of the Universe separates them. Those are opposite forces. You might say that therefore, cosmology at least retrodicted the existence of love.
Or, maybe I'm not serious.
 
Is it safe to read books?
 
You risk cutting yourself on the bleeding edges of the pages
 
sbi
7:46 AM
@AlfPSteinbach You need sleep.
 
8:00 AM
in a bounty window, what does the "This question has not received enough attention." sentence mean. didn't find anything in the FAQ
 
@bamboon for example, you got no response at all. then you might start a bounty to bring some attention to the question.
 
@AlfPSteinbach well thing is I answered this bounty superuser.com/questions/371419/…
and I am confused why that is still written there
 
8:16 AM
@bamboon it's just the op's original reason for offering the bounty
 
@AlfPSteinbach ah ok, thanks.
 
@TonyTheLion erm... that's a rather interesting thing to come into work to :P
and with that, morning
 
I've been defeated by CG assignment.
 
@CatPlusPlus CG?
 
I'm too stupid to implement it on such a short notice (time management failure, yay). :(
And Java is not helping.
Simple matrix calculations are so fucking painful I can't even look at this code.
@thecoshman Computer Graphics.
 
8:30 AM
oh I see
well, I know CG and Java, so perhaps I can help you bud
 
Meh, I'll do a repeat, and maybe next time I'll manage to do it on time.
 
yeah... I wouldn't be so keen on having to explain to interviewers why your three year course took you four years
 
I'm not repeating whole year, silly. At least, not yet.
 
@CatPlusPlus well then it's oh kay!
 
Also, nobody really cares.
 
8:33 AM
what you stuck with any way?
 
And I already have a job.
 
8:49 AM
@CatPlusPlus I like money :D
 
Tin
Good morning guys! I was wondering, what do you think about calling initialization functions in the class constructors? Is it a good programming practice? e.g. the void generate(param1, param2) function being called in the class constructor pastebin.com/5gVNtnX7
 
It's fine as long as they're not virtual. But fields should be initialised in the init list.
 
@Tin I usually don't do that since this code should normally only be executed once. If you put it in a method then can be called multiple times.
 
@CatPlusPlus it's fine to call virtual functions, as long as they're not pure. in C++. Java/C# is different matter.
 
If you want to refactor repeated constructor logic, then use either a base class or delegated ctor (in C++11).
 
Tin
8:59 AM
@CatPlusPlus, which would be the problem if they're virtual?
 

« first day (454 days earlier)      last day (4478 days later) »