« first day (982 days earlier)      last day (3958 days later) » 

12:00 PM
@raxman well it looks strangely familiar.
 
> If there is a sequence of types T0, T1, …, Tn, where all the types are different and each Ti (n ≥ i ≥ 1) has a converting constructor from type Ti-1, then this sequence of constructors [form] a user-defined conversion chain.
OMG completely unconstrained.
 
I just looked at that link. He uses i++ in his for loop
that's stupid
 
When he said user-defined chains of conversions I thought it would involve some mechanism of specifying it.
 
should use ++i
for optimization
 
But fuck no, it's just opening Pandora's box and murdering hope right there.
 
12:01 PM
@raxman it's 0.000000000001% of performance
 
@BartekBanachewicz Stop biting.
 
except that it shows i understand some things
 
some things, yes
 
and don't make such assumptions
many people assume that unrolling loops is useless now or even make things worse
 
@BartekBanachewicz I agree with you. The first one is identical to the other answer, whilst the second overload clearly has a different styl.e
 
12:02 PM
and I know for a fact that unrolling loops still can make a huge difference
 
0
Q: How to create makefile of 'average' complexity?

pseudonym_127There are several tutorials online for creating makefiles. Can someone please indicate me a link on a tutorial for creating makefiles which allows one to learn to crate makefiles of average complexity?

 
@DeadMG should we flag it?
 
just a second
somebody just downgraded me again
 
@BartekBanachewicz Feel free.
 
@R.MartinhoFernandes Are you an idiot or just ignorant? When pandora's box was opened, many horrible horrible things were set free. But the last thing released was hope.
 
12:02 PM
@raxman That was me.
 
though I'm still at +10 overall
three people up voted me
 
@raxman ~huge~
@raxman C fanatics
 
@Telkitty猫咪咪 I am an idiot (I have many ideas). I am not ignorant. I know what happened when Pandora's box was opened. In the light of that information, read my message again and try to understand it.
 
@raxman Er, -10.
 
@R.MartinhoFernandes Is there some badge for getting -10 on an answer? :D
 
12:04 PM
I got +10 points
 
@DeadMG he probably means reputation
 
eh
anyone can earn reputation easily
it's immaterial
 
@raxman And 13 downvoted.
 
@Telkitty猫咪咪 "Many horrible horrible things were set free, and then hope was murdered before it could leave the box". Makes total sense.
 
12:04 PM
this is uncalled for
 
I think there is a huge difference between 3 and 13, don't you think? Especially when it comes to up and down votes on SO
 
this is abusive
 
Is the C thing still raging?
 
@raxman I think you should consult a moderator. They are our buddies and watchmen.
 
@raxman Inform The Internet Police.
 
12:05 PM
@R.MartinhoFernandes aha.
 
who are the moderators
 
(Tip: if you ever feel "abused" or "attacked" on the internet, you should return to real life and never return to the internet. I am serious.)
 
i feel abused in SO
 
Unless you're a 10yo girl abused by a 40yo pedophile, but that's different.
 
@raxman You wrote a crappy answer where it appears that a good chunk of it you simply copied and pasted from another, better, answer. This is what happens.
 
12:06 PM
@raxman Protip: no mod will want to hear your rant about being downvoted, if we seriously think that your answer sucks.
 
@BartekBanachewicz Maybe if you stopped replying. An idea.
 
there are reason there are rules and consequences for breaking them on SO
 
I plonked that douche like hours ago
 
@raxman you just broke the rule of not copying from others without attribution
 
@raxman ...which rule has been broken?
 
12:07 PM
@raxman here, have a whine on meta
 
I don't know WHY anyone doesn't do otherwise
 
okey okey c'mon
 
@TonyTheLion Which douche?
 
Oh god, not meta-whining.
 
12:07 PM
@DeadMG raxman
 
ah
well I just got here, so
 
@R.MartinhoFernandes ssh
 
Why would you ssh to meta?
 
@R.MartinhoFernandes Yes for meta-whining, he'll get downvoted to -50, maybe he'll understand.
 
give me a minute to fully analyze his doucheness level
 
12:07 PM
i did not copy from anyone
 
If he won't, then well, it's a lost cause.
 
@DeadMG doesn't need that long, one second is enough.
 
it does appear that way
ah well, I have other things to do with my time than argue with him
 
@R.MartinhoFernandes hush to you because I <3 meta ... more specifically troll on meta. I need to lure an unknowing victim to post a question in order to achieve my goal ...
 
if he really does cry to a moderator though I'd like to see it, should be good for a laugh
 
12:09 PM
Hey here's a hint: nobody remembers your shitty answer from 3 hours ago, stop whining about Internet point injustice directed towards your crappy C code bias.
Mmmkay
Can everyone stop replying to those poor troll attempts TIA
 
He should go suck some dick
 
@CatPlusPlus "Mmmkay" is quite annoying.
 
@DeadMG that's why pointing him to meta would be kewl
 
JBL
@CatPlusPlus I second that...
 
@R.MartinhoFernandes What's annoying about that?
 
12:10 PM
@TonyTheLion You can vouch for it's restorative properties first-hand, huh?
 
Twitter recommends std-asylum should follow Justin Bieber.
 
@DeadMG No. But better than wasting our time here
 
what's std-asylum?
 
@stdasylum
Pearls of wisdom from the C++ standard proposals forum
2 tweets, 3 followers, following 0 users
 
lol
 
12:10 PM
@R.MartinhoFernandes ahahahahaah
 
isocpp.txt BUT NAMED BADLY.
 
These types would allow boolean results to be handled using OO techniques instead of if/else statements.
oooooohhh
shiny
MOAR!
 
@TonyTheLion Last week I was in the same room as someone that would constantly say that. It's annoying.
 
ah I see
 
@CatPlusPlus What's the txt for?
 
12:11 PM
@R.MartinhoFernandes everything is cooler with an extension.jpg
 
Cause Cat likes txt files.
 
@R.MartinhoFernandes It's a long-running tradition!
 
@TonyTheLion Thing is, he wouldn't use it for emphasis or anything. It was his normal pronounciation. He couldn't say "okay" without having to think about it.
 
I had the crappiest lunch ever
 
I had a pretty sweet lunch
some fruits, some yoghurts
 
12:12 PM
ohhhhhhh yoghurt
 
@R.MartinhoFernandes And here I thought you were referencing Office Space.
 
@StackedCrooked Why not just use a unique_ptr<std::atomic<bool>>, this would appear to be what you really want.
 
@DeadMG And who owns it?
 
hm.
 
12:15 PM
But I'd need a atomic_bool per Foo object.
Then I also need to store it per object.
 
you already have a heap-allocated atomic<unsigned> per Foo object.
 
oh god TOTAL RETARDATION
I mean
 
it's just written in a supremely obfuscated fashion
 
@DeadMG You mean inside the shared ptr?
 
@StackedCrooked I think you need to wait on that thread before the process terminates
 
12:16 PM
struct S {
    template <class X, class = void> struct Inner {};
    template <class bullshit> struct Inner<int, bullshit> {};
};
 
yes
 
:D
I don't know whether to laugh or cry
 
@LightnessRacesinOrbit yeah, the best would be to design the program flow in such a way that lifetime issues can not occur.
But sometimes...
 
@BartekBanachewicz I had to tweet that one. That one is awesome.
 
12:18 PM
@StackedCrooked Also, your solution isn't sufficiently atomic.
 
@DeadMG How so?
 
@BartekBanachewicz What is that?
Oh, it's from the TOTAL RETARDATION thread.
 
        if (checkLifetime.expired()) {
            std::cout << "Expired!" << std::endl;
            return;
        }
        // Other thread is swapped in here, destroys *this.
        f();
 
> WHY DONT YOU READ MY FUCKING POST WHERE I SAID IT'S FUCKING RETARDED AND BE HAPPY WITH THAT AS THE PROPOSAL
 
you have no protection against another thread destroying foo at any time whilst f() is being called.
 
12:19 PM
@Xaphen Hi.
 
I just can't not laugh :D
this guy is amazing
 
@DeadMG Ah. Yeah, I can't extend the lifetime with this shared pointer since it's not really shared. That does raise this issue.
 
you would have to actually create a shared_ptr from the weak_ptr, and have Foo actually be shared.
 
@DeadMG Yes, but that won't extend the lifetime!
 
JBL
Doh !
 
12:20 PM
@StackedCrooked Yes it will. It will extend the lifetime to the lifetime of the new shared_ptr.
 
@BartekBanachewicz Ahahahaha did someone had a meltdown?
 
Xeo
if(auto foo = checkLifetime.lock()){ /* alive and well */ }
 
JBL
Next time, before asking dumb questions, I'll check the getError() that the API provides...
 
> Interesting. I knew we had class templates and function templates, and alias templates (since c++11), and
as of late, variable templates (as of c++14, likely), but I have completely missed these fucking templates
 
@CatPlusPlus Don't tell me you missed the TOTAL RETARDATION thread?
 
12:21 PM
pure. gold.
 
I just skimmed through first two or three.
Oh I see it.
 
JBL
@R.MartinhoFernandes What's that ?
 
@Xeo I think not. That's what makes it insidious.
 
Xeo
@StackedCrooked Why shouldn't it be?
 
I'M NOT EVEN FUCKING SANE
YOU THINK I KNOW HOW TO WRITE A PROPOSAL
 
I edited my question liked people asked, gave a good answer think, people down voted me further. I went back to my original answer. You peeps of a great day!
 
Ahahahaha
 
Xeo
If you call lock, you get a filled shared_ptr that is a strong reference only if the object is alive. If it isn't, the shared_ptr is empty.
 
have a great day!
 
12:23 PM
@StackedCrooked Of course it does. The thread you created holds an owning shared_ptr to *this.
 
@raxman go whine on Meta.Stackoverflow.com
plonk.
now only to watch meta
 
Xeo
@DeadMG You don't capture share?
 
@Xeo Yes, but if the original Foo goes out of scope then it is destroyed and the shared_ptr won't keep it alive.
 
@Xeo Oops.
@StackedCrooked That's why Foo has to be an object owned by shared_ptr.
 
Looking deliciously suspicious?
-8
Q: Is it okay to just re-tag C++ to C?

Balog PalI see a plenty of questions that post pure C code and are tagged C++ or C and C++. Let's just assume that nothing in the content implies anything C++-related. And just being compiled by a C++ compiler instead of C changes nothing. I edited a few by removing the C++ tag and add C if not already t...

 
Xeo
12:24 PM
What the puppy says.
 
you can't share the lifetime of an object if it's not a shared-lifetime object.
 
@DeadMG Indeed, but that brings me back to the original question.
 
Guten Tag.
 
JBL
@R.MartinhoFernandes Gosh he's angry !
 
The hammer of binning is swift.
 
12:25 PM
@StackedCrooked The answer being, "No, your proposed solution sucks. It's obfuscated and doesn't solve anything."
 
time for some music
 
That's why I used "if (f.expired()) return;". The design is so that only on dedicated thread has access to the object. So I know that it's safe. (However, the lifetime check is still needed.)
@DeadMG But creating it as a real shared_ptr has its own disadvantages.
 
@StackedCrooked Tough titties. If you want to share an object's lifetime, you have to share it.
 
@StackedCrooked Get a better universe.
 
I'm not sharing it. I only want to prevent callbacks from being executed on a dead object.
 
Xeo
12:28 PM
That's called "sharing"
 
@StackedCrooked That is sharing it- between the callbacks and whoever originally owned it.
 
This situation can occur in a single-threaded app with message loop as well.
 
@StackedCrooked So the callbacks clearly need to own it (at some point).
 
@StackedCrooked You have one of two choices. Either you share the ownership between the callbacks and the original owner, or you alter the destructor of the object to unhook any callbacks that depend on it's continued existence.
if you're dealing with asynchronous callbacks that may or may not be currently happening when the destructor runs, then your only choice is to share the ownership so that the object cannot be destroyed whilst they are running.
 
@DeadMG I agree. But that's not the case.
Perhaps I should have presented the problem as a single-thread async app to begin with to clear this.
 
12:31 PM
@StackedCrooked Then use #2 so that the object can unhook the callbacks.
 
@R.MartinhoFernandes #urlplz
 
Xeo
8 mins ago, by R. Martinho Fernandes
 
@LightnessRacesinOrbit Check slightly below.
 
@DeadMG Ok, I'll see how I can do that.
 
JBL
This thread is a gem.
 
12:32 PM
0
A: Is it okay to just re-tag C++ to C?

Lightness Races in OrbitDo not confuse the following two things: C++ code that looks like C code C code As long as the OP is compiling his/her code using a C++ compiler, their code is C++ code, and their question should be tagged c++. However, it may be of use to politely comment to the OP that their C++ code is ru...

 
@LightnessRacesinOrbit i am afraid some people should have hashtags disabled :)
 
Thanks @Xeo /cc @R.MartinhoFernandes
@BartekBanachewicz #perhaps
 
@LightnessRacesinOrbit have an upvote!
 
Ooooh, five followers.
 
@R.MartinhoFernandes we demand more content
<insert oatmeal-style pic here>
 
12:36 PM
@BartekBanachewicz Hey, can't waste it all in one hour.
 
@R.MartinhoFernandes I thought it's an endless well
 
I upvoted the question out of pitiness
 
@BartekBanachewicz I'll dig out some goodies from the old Arthur Tchaikovsky affairs.
 
@R.MartinhoFernandes I think I remember that guy
 
But first, I need to dig out the most ridiculous thing ever proposed there.
 
12:38 PM
anything in particular?
 
You'll see.
 
Xeo
@R.MartinhoFernandes That guy's back btw
 
Can't wait.
 
Xeo
Or atleast I remember seeing his name
Ah, it was in litb's thread.
 
dafuq, neither chat search nor mail search nor Google Groups search is helping.
I think I have a typo.
 
12:39 PM
@Telkitty猫咪咪 thanks!
 
sbi
@ScottW If you think that's a lot, you haven't seen mine.(And I am restraining myself, because this is 32bit XP with 4GB.)
 
Xeo
Hello, Ape
 
@sbi you need a desktop twitter client
 
sbi
@BartekBanachewicz Why?
@Xeo Hello Comic Character.
 
@sbi all. these. tabs.
 
sbi
12:41 PM
@BartekBanachewicz What's that got to do with having a twitter client?
 
@sbi I dunno, takes some load of the browser and is perhaps better suited for prioritizing/navigating throught tweets?
 
sbi
@ScottW Before I was confined to 32bit XP hell, I used to have 6 FF windows open all the time, with up to >100 tabs. Now just having 4 makes FF crash several times a day.
 
browsers aren't what they've used to be
back in my day...
 
sbi
@BartekBanachewicz I have one browser window dedicated to social networks. Twitter is but one of those.
@ScottW I never trusted google enough to use their browser. Bad enough that I have to use their search engine.
 
@sbi I am amazed how we managed to push web into a form that requires us to have a browser window dedicated to social networks
 
sbi
12:44 PM
@BartekBanachewicz Now you come across as if you were past 30. (And you'd be young by my standards if you were.)
 
@sbi at my age you still want to appear older (and wiser, perhaps) than actual.
 
sbi
@ScottW Seriously, I am using Android, but I try hard to avoid all their services, since I do not trust them with my data.
 
@ScottW 21
 
sbi
@BartekBanachewicz Haha! So "back in my day" in your case means yesterday, I assume?
 
@BartekBanachewicz Ah, found it and tweeted all the best parts.
Don't worry if you can't make sense of it. That means you get it.
 
12:46 PM
@sbi well they (the browsers) grow up so fast... last time I've checked the little Chrome it was like 7, now it's already 27!
 
sbi
How is it that it was Tony's birthday, but the starboard has messages by other users starred?
 
@sbi Maybe Tony wasn't celebrating in the lounge?
 
sbi
@R.MartinhoFernandes So?
 
@R.MartinhoFernandes I attenuate it.
 
sbi
Will you be with us tonight, @R.Martinho?
 
12:49 PM
@sbi Yes.
 
sbi
@R.MartinhoFernandes What time would you find convenient? And do you have a place other than the pump to suggest?
 
Not the sludge-pump again :)
 
@sbi Cicada said 19. The pump is fine. Most other places I know are in Kreuzberg.
 
sbi
@R.MartinhoFernandes Ok. so 1900 at the pump. I'll text him.
 
oh you are meeting with... him too? :(
I find my current geographic location unfair.
 
Xeo
12:51 PM
*location?
 
sbi
Oh. He already texted me. Well, fine then.
 
@Xeo To be fair, Polish is unfair.
 
One day ... sbi is so going to pounce on Cat++
 
sbi
I am what?
 
12:53 PM
@BartekBanachewicz Only 400 km away!
 
Hehe! Does the sludge-pump have rooms?
 
Rooms?
There's a kitchen, and a bar space.
 
Yeah - to rent by the 1/4 hour :)
 
And a bathroom, I guess.
 
@R.MartinhoFernandes far.
 
12:54 PM
I think I got sucked in, (!), by Telkitty fantasies.
 
That's... bad.
 
I need to go shopping, if only to get out of lounge for a bit:)
 
@MartinJames wait
where's the pic you are going to post on the lounge?
 
@MartinJames take a phone and chat on the way
hrhrhr
 
@BartekBanachewicz Poor thing.
 
12:58 PM
@R.MartinhoFernandes me or him?
 
Whoever tries to chat here from a phone.
 
@R.MartinhoFernandes Nexus 4 is rather large and comfy
@R.MartinhoFernandes I am poor because I wrote that for no reason.
 

« first day (982 days earlier)      last day (3958 days later) »