« first day (620 days earlier)      last day (4346 days later) » 

6:00 PM
@Fanael They still make the best image editing software on the market, ya know.
 
user784668
@EtiennedeMartel vim
 
lol, good one.
 
Oh fuck off. And why are you a nymphaea now?
 
@MooingDuck Apple's appstore wasn't generic when they first introduced it, but it is now through common usage. You could argue the same for photoshop
 
@MooingDuck Why not?
People say things are photoshopped all the time.
 
6:01 PM
It's not like Adobe has sued anyone for using "Photoshop" like a noun or a verb.
 
user784668
@EtiennedeMartel Why not?
 
@Fanael Excellent question.
 
@RMartinhoFernandes Everybody with a registered trademark is pretty much obliged to at least make it look like they try to enforce correct use of their trademark. Otherwise, they can lose the ability to enforce the trademark completely.
 
Hi! I have some naming questions. Is there any convention for naming the login statuses? For example I have 4 status: 1: before login sended, 2: during login process, 3: after login success, and 4: logout process. How should I name these statuses?
 
@Fanael Science!
 
6:03 PM
@JerryCoffin As far as I know, Adobe hasn't tried to enforce it.
@RMartinhoFernandes Also tits!
 
@EtiennedeMartel I was careful with the wording: I didn't say they tried to enforce it -- only that they have to make it look like they're trying to enforce it. Most companies are secretly happy as hell when their trademark is used as a generic verb (Photoshop, Google, etc.) but they still have to act like they're trying to enforce correct (as defined by the Patent and Trademark Office) use.
 
user784668
@EtiennedeMartel I know. It's my question, after all.
 
@EtiennedeMartel ?
 
@RMartinhoFernandes Obviously missing Tony.
 
have they added a nicer way to define abstract classes in c++11?
 
user784668
6:06 PM
@ManofOneWay If by "abstract classes" you mean "interfaces", then no.
 
@RMartinhoFernandes Science and tits: a winning formula.
 
@omnosis It seems like RFC 821 has some wording for that.
 
@ManofOneWay What? You want an abstract keyword?
 
@EtiennedeMartel I could do with just the latter.
 
#define abstract
@RMartinhoFernandes Yeah, but why not have both?
 
6:06 PM
@ManofOneWay How would it be nicer? It's automatic.
 
Automatic? Do I not have to write virtual ~T() = 0; ?
 
No.
Any pure virtual function will do.
 
Yes sure, but I still have to write virtual whatever() = 0?
 
@ManofOneWay Well, you would have to write it irrelevant of whether you want the class abstract or not.
 
In what way is that nice? :P Wouldn't it be nicer with a keyword ? I think it would look nicer
 
6:10 PM
Oh, that's true. But the cost does not outweigh the benefits.
Or the other way around. The one that makes sense.
 
@ManofOneWay It's like 3 extra letters!
 
@JerryCoffin thanks!
 
Anyone remember how to tell the VS debugger a pointer is an array having N elements?
 
@RMartinhoFernandes You can workaround pairwise expansion with GCC. E.g. EnableIf<std::is_convertible<U, T>...> is rejected but EnableIf<std::is_convertible<U, Identity<T>>...> is fine. alias<T> doesn't work though.
 
6:16 PM
I wish I knew that when I used VS.
 
@RMartinhoFernandes I thought it was that, but it's not working
 
@LucDanton Oh, that's a better workaround. Thanks.
 
user784668
@EtiennedeMartel Much better to be a nymphaea than a mandala.
 
Sometimes I wonder if I abuse reflection.
 
@EtiennedeMartel Yes.
 
6:17 PM
@RMartinhoFernandes Thank you for your support.
 
@RMartinhoFernandes Nevermind, I have a void *, need to cast it first
 
Thanks
 
I'm doing a bunch of stuff that's supposed to be in XAML in code instead because I have to do a lot of reflection.
Yay me.
 
6:19 PM
@EtiennedeMartel XAML is cool but sadly you hit the walls very fast and have to resort to good old C#.
 
Yeah, that's what I like the most about WPF: when XAML fails, you can always fall back to C#.
Today I learned that setting a DynamicResourceExtension as part of a Setter value is the same as writing DynamicResource in XAML.
 
If Variable is a struct, what type will l have in:
Variable v;
auto l = {v};
vector? array?
 
std::initializer_list?
Just guessing there.
 
or will the compiler convert it to an appropriate type once I use it?
If I pass it to a constructor of a struct that want a std::vector<Variable> &v, the compiler doesn't complain
 
Can't you ask the nearest static analyzer to tell you?
 
6:27 PM
@ManofOneWay initializer_list
 
Let's ask the robot @RMartinhoFernandes, it knows everything
 
Keep in mind that's a special case for auto that won't work anywhere else.
 
Ha! I'm sooo good.
 
@ManofOneWay initializer_list I think
 
Btw, I use struct{}_ = thingy to coax GCC to shout the type of thingy. I'm sure there's a better idea. Anyone?
 
6:28 PM
@ManofOneWay No, he doesn't know everything. As a robot, he doesn't know about love, for instance.
 
@EtiennedeMartel Aw. Now you broke my heart.
 
@EtiennedeMartel or humor
 
@RMartinhoFernandes I use expr.foobar personally.
 
@RMartinhoFernandes I was just referencing this.
 
@LucDanton How do you mean?
Regarding auto
 
6:30 PM
@ManofOneWay template<typename T> void foo(T); foo({ 1, 2, 3, 4 5}); is not valid.
 
215
A: Why is processing a sorted array faster than an unsorted array?

MysticialYou are the victim of branch prediction fail. What is Branch Prediction? Consider a railroad junction: Image taken from Wikipedia: http://en.wikipedia.org/wiki/File:Entroncamento_do_Transpraia.JPG Now for the sake of argument, suppose this is back in the 1800s - before long distance or rad...

oh nice
 
@RMartinhoFernandes Interesting hack
 
@sehe No, you're not supposed to compliment it. You're supposed to say it sucks and provide a superior alternative.
 
@FredOverflow the optimizor strikes again
@RMartinhoFernandes Sadly don't have one. I used this clumsy predicate before:
2
A: Detecting the parameter types in a Spirit semantic action

seheI could solve the problem for this particular case (in fact we discussed options on the list), but really, this kind of 'enigmatic' error creeps up more often with Boost Spirit and it would be nice to get a handle on the general class of problems. Your first resource should be the excellent spir...

 
@sehe Ah, demangle. That doesn't cut it for the most common use case I need: TMP.
 
6:32 PM
It's like @Mysticial can't write an answer without including at least one benchmark.
 
Me wants a TMP debugger.
 
@RMartinhoFernandes Well... You can always create a dummy field/var and dump that. I agree that is even more clumsy. -- in fact not even viable
@RMartinhoFernandes Seconding the motion
 
1. Get someone to do my job for me.
2. Dive into clang sources and build a TMP debugger.
3. ???
4. Profit.
 
@RMartinhoFernandes Build one on top of clang.
 
@EtiennedeMartel Ha, I'm faster as usual.
 
6:34 PM
@LucDanton Thanks
 
@RMartinhoFernandes Yeah, by about half a second.
 
@EtiennedeMartel My screen says two whole seconds.
 
@RMartinhoFernandes Your screen is bad and you should feel bad.
(I'm channeling some serious @CatPlusPlus here).
 
6:36 PM
140
A: What is the name of this operator: "-->"?

unsynchronizedor for something completely different... x slides to 0 while (x --\ \ \ \ > 0) printf("%d ", x); not so mathematical, but... every picture paints a thousand...

lol, "x slides to zero" was new to me :)
 
@EtiennedeMartel The window isn't maximized.
@EtiennedeMartel "Hitler was a CHICK!?" cracks me up every time.
 
@GManNickG Haha. Only noticed your comment here because I was looking for your last SO chat uttering before getting this widely popular branch prediction SO hit
 
hi
 
162
Q: Is 0 a decimal literal or an octal literal?

ybungalobillZero is always zero, so it doesn't matter. But in a recent discussion with my friend he said that octal literals are almost unused today. Then it dawned upon me that actually almost all integer literals in my code are octal, namely 0. Is 0 an octal literal according to the C++ grammar? What does ...

haha what an irrelevant question :)
 
6:47 PM
0
A: Access Violation on char array

DeadMGThe only possible answer to this question is "Use std::string". The specific problem you are having now will simply re-occur every time you modify this function or write another like it. The only way to solve the problem in the general case is to move to a class-based solution, which is kindly pr...

backup plix
 
lol
There are no exception throwing things other than new, so particularly, it is exception safe.
 
he calls a callback which could throw
 
@DeadMG Oh, I missed that.
Crappy syntax.
 
agree
 
Alright then, the Lounge<C++> Quality Assurance Squad will need to make sure this answer gets on top.
 
6:53 PM
you know, it's really annoying
yesterday I went to bed at 6am and woke up at 6pm
today I went to bed at 10am, but woke up at 6pm anyway
 
Sounds fun.
 
the fuck is wrong with me :(
 
I know a fix for that! It involves getting drunk.
 
@DeadMG Oh captain my captain, I voted you up.
 
6:54 PM
@EtiennedeMartel That's your solution to everything.
 
@DeadMG Are you trying to build a regular sleep schedule or something?
 
@RMartinhoFernandes What is his sleep schedule now, context free?
 
@RMartinhoFernandes Trying to shift it forwards so that I awaken during the day.
 
@DeadMG Yes. Wanna know a good way to recover from a hangover?
 
@EtiennedeMartel I do not intend on requiring that knowledge
 
6:55 PM
@EtiennedeMartel A meta hangover?
 
@DeadMG Ah, I find it's much easier to just coffee up and stay awake longer.
 
@FredOverflow Actually, drinking a beer.
 
@DeadMG Getting drunk.
 
I'm serious, it works.
 
 
6:56 PM
@sehe This makes me sad.
 
@sehe :(
Reminds me of this:
 
I should get drunk.
 
24
Q: Why are droids tortured?

DavRob60Bitmask took this photo while attending the Star Wars Identities Exhibition : I remember this scene from one of the original trilogy movies. I also remember the droid was "screaming" as it was tortured. Why would someone torture a droid? How could it be effective? It's a Robot!

 
@RMartinhoFernandes Hey, that expo's in Montreal.
One of my previous employers did the website.
 
Ah, fuck Casillas.
 
6:59 PM
I want to start downpooping every schmuck who sells C as C++ in his answers.
 
"Move the pointer off by one, malloc this, malloc that."
I'll malloc you a brain.
 
@DomagojPandža I suggest you don't, because then you'd never be finished.
 
@EtiennedeMartel Spain's goal keeper.
 
@RMartinhoFernandes Oh, right, there's a match going on.
@DomagojPandža "I'll malloc the shit out of you"
4
 
7:01 PM
-10
Q: storing the entire STL library using boost::any

LCYSoftIn my application, I am storing the entire STL containers such as vectors and queues using boost::any. So the code looks like this stack<boost::any>.push(std::priority_queue) Somehow, it worked but consumed a lot of memory. Do you guys see any possible problems of storing the entire S...

More SO gold.
 
@DomagojPandža Yeah, we saw that.
I guess we'll never know what he was trying to do.
I doubt I'll lose sleep over this. Otherwise I might end up getting drunk.
 
@EtiennedeMartel My guess: something not good.
 
oh, no wonder SO keeps saying I've got massive numbers of unread messages. I have chat open in two separate windows, and apparently I've been alternating which one I read. :(
 
How come this doesn't work? ideone.com/q1Rvv Is the compiler to old?
 
7:05 PM
@ManofOneWay Yes.
 
@ManofOneWay Are you certain GCC 4.5 supports range-based for?
 
That explains it, I'm using GCC 4.7
 
@DeadMG I can see you're enjoying discussions with C schmucks.
 
"enjoying"
at least my buddies came and upvoted me so I appear more correct
 
@DeadMG Oh, so we're your buddies now?
 
7:12 PM
Well, we have to stick together in the shithole that is the C++ tag.
 
Jun 11 at 16:03, by Etienne de Martel
Sometimes, this chatroom feels like a beacon of sanity in the sea of vomit that is the C++ tag.
 
^They might have things reversed
 
I've seen C#, C, Objective-C, even Java there. But no C++.
@EtiennedeMartel Oh, yes, the source of the mighty bacon. But wise and true words.
 
I thought pigs were the source of bacon.
 
7:14 PM
But, yeah, we are the Lounge<C++> Quality Assurance Squad. We upvote good answers and downvote bad ones.
 
Downvoted the bastard to have a 3:2 ratio.
 
Damn, @Dom, you seem pissed.
 
I am tired of having the same discussion over and over again. It's like I'm talking to a bunch of walls when I leave the Lounge. C was not, is not and never will be C++. It's just common courtesy to retain some of its functionality to keep the familiarity of the old, once awesome and very useful language. We have new constructs, new paradigms and, no, the fucking standard library is not slow. No, it is not. End of story. return 0;
 
sbi
Are you watching, @RMartinho?
 
7:17 PM
C++ people don't like C ? :o
 
We don't like people selling C as C++
C is fine.
 
sbi
The German commenter just said "Those Portuguese are very good whenever thy do not have the ball, but when they have it, they fail." :)
 
And all these answers just hoard bad practices and dangerous code, get upvoted and people go on to do the same mistakes for 10 years and then teach other people to do the same mistakes.
 
10 years?
Ha, lol
 
7:19 PM
A bit of drama. :$
 
More like 30.
 
Dun dun dunnn.
 
sbi
@RMartinhoFernandes Well, he does have a point, no? They fight for the ball very well, but the moment they have it, they fail at passing it.
 
It's not like Spain is doing a great game.
 
sbi
@RMartinhoFernandes No, definitely not.
 
7:21 PM
const int len = strlen(_lpCommands[i].szCommand);
char* cmdblip = new char[len + 1];
memcpy(&cmdblip, cmdStr, len);
cmdblip[len] = '\0'; // Access Violation
How can someone write this and not feel bad?
Might as well do it in asm, hell, fuck mnemonics. Go for the opcodes directly.
 
Or a magnetized needle and a steady hand.
 
Real programmers magnetize their own needles.
6
 
By looking at them.
 
I just hate that -1 burn, everyone knows I'm the downpooper then. :$
 
@DomagojPandža Why do you feel bad?
 
sbi
7:25 PM
@DomagojPandža It's easy to say this from the POV of a young whippersnapper, who learned programming after the STL was invented and added, and the standard brought an end to the millions of erroneous string classes out there. If you've learned C++ as modern C++, then you wouldn't dream of doing that. But when you grew up with such C++ being an improvement over C, then it will be hard to shed the habit.
 
@sbi Oh, I did almost everything I could manually first, perhaps everyone should. But to teach it as a good practice, that's not good.
 
@sbi no, because even then, you have millions of string classes out there
and I still hold that vector is a stupid name
 
sbi
@DomagojPandža Yu don't understand. Once, not only was it the only practice, it also was better than what we had before.
@MooingDuck It's mere thousands now, and mostly in legacy code. Back then, legacy code was that code which dealt with strings manually, and any string class, no matter how bad, was modern.
 
But, those days are long since gone.
 
The past is the past, a blackcurrant is a blackcurrant.
 
7:29 PM
I understand that people tend to drift in their old memories, be it work or life, but you really need to move with the times, especially in our line of work.
 
@RMartinhoFernandes And beer is delicious.
 
It goes well with meat.
 
I'm too lazy, robot, can you get me a duplicate for stackoverflow.com/questions/11233602/…
 
7:31 PM
You are a competent programmer.
 
Look, the C/C monster shows up again.
1
Q: What will be the value of uninitialized variable in c/c?

Rajeev KumarI tried the following code #include<stdio.h> void main() { int i; \ printf('%d',i); } The result gave garbage value in VC++, while same in tc was zero. What will be the correct value? Will an uninitialized variable by default have value of zero? or it will contain garbage value? Next is...

 
What's a C/C?
 
What the?
 
@SamDeHaan There's a dupe linked already
 
7:32 PM
@RMartinhoFernandes Damn, there's a void main! Why didn't you warn?
 
C/C is 1, as dimensional analysis suggests.
 
Meh, no goals at half time :(
 
@DomagojPandža Not for all C
 
@EtiennedeMartel Oh, I only read the title.
 
sbi
@DomagojPandža What?! It's a mere 15 years since!
@DomagojPandža Let's see how you fare in your third decade of doing C++.
 
7:34 PM
@RMartinhoFernandes So many people hoping for free FGITW rep trollolol
 
sbi
@Fanael I know. I was correcting you.
 
How should I store my registers if I want to pass them to different methods in my program and don't want to copy them all the time? Do I HAVE to copy them do a vector first and then pass that vector as a const reference? ideone.com/pWqHI
 
I just love these guys who run into obvious duplicates and trivial questions with 30k+ reputation just to harvest some more.
Dear lord.
 
@ManofOneWay yes
 
@DomagojPandža But if it's a dupe I've got a reference to know that my answer's right! </sarcasm>
 
7:39 PM
Maybe we should open up some questions on what variables are in programming languages and where I can download C++. And where can we download pointers for our programs.
To give them a chance to truly shine.
 
@DomagojPandža Hmm, I know at least one person in there. I won't say who.
 
@EtiennedeMartel No need, all regs here know. :D
 
My brain farted.
2
 
@MooingDuck How do I avoid copying my registers twice? (First in the initializer list and then in the vector) ideone.com/8MU8L
 
7:44 PM
 // no cache, TAKE A WILD GUESS!
I just found that in some old code of mine.
 
@ManofOneWay give me a sec
 
DAAAMN The Bitrate Experiment did not at all result in a conclusion I expected. I expected everyone to nail the two best-quality clips within seconds of listening:
Jun 21 at 12:01, by sehe
I spent less than 15 seconds listening to the five different versions of the tracks and there were two clear winners (that I could listen to). I'm absolutely convinced I have picked the once with the least compression (e.g. raw PCM and 320kps, allthough it is entirely possible the 'second pick' is in fact flac -- I didn't spend so much time vetting it)
Turns out, shitty ears are ubiquitous... :( Amazing
 
@MooingDuck Of course :)
 
@MooingDuck Awesome
thanks
@MooingDuck Btw, do I explicitly have to define the number of elements in an std::array?
Even in a reference to one?
 
7:56 PM
@ManofOneWay yes, but you could pass it as a const Reference* if you don't want to pass the length (use the .data() member)
 

« first day (620 days earlier)      last day (4346 days later) »