« first day (842 days earlier)      last day (4101 days later) » 

12:00 PM
> Millions of light years ago
This song has some... interesting lyrics.
 
@R.MartinhoFernandes How many cm does it last?
 
Hmm, I think I need to filter out whitespace characters. Displaying a list of spaces to the user will be confusing as heck.
in Room for anand patel and Lightness Races in Orbit, 2 days ago, by anand patel
Ok.I am sorry but I couldn't resist to text you because you are damn beauty.
Who flagged this old thing.
 
@Xeo hmm as in Operational Research?
wtf is that flagged!
weird
 
@LightnessRacesinOrbit No, as in the magical tag that performs set union.
 
Xeo
@LightnessRacesinOrbit No, [or] is like ||.
 
12:04 PM
@Xeo why is there a tag for that?
 
Xeo
@LightnessRacesinOrbit Because || doesn't work? :P
 
Crazy filter syntax.
 
Xeo
@LightnessRacesinOrbit Hint: It's not an actual tag.
 
oh I see it's not a tag but a filter directive?
weird
 
12:05 PM
I watch , and
I think once I get my golds in the latter two (soon!) I'll drop 'em
 
@LightnessRacesinOrbit who is forcing you to?
 
@BartekBanachewicz Desire for gold.
I'm on ~950 for both tags
 
that's sick
By the way, my friends forced me to put our old Minecraft world back, so I present to you... World Map Plugin you should get
 
When did Minecraft ever come to C++?
 
@tom_mai78101 Cat introduced it, I believe
 
12:12 PM
@BartekBanachewicz I guess I can thank @CatPlusPlus for it. I love Minecraft for introducing Java just a little bit.
 
What header what
What are you trying to do
 
@LuchianGrigore SFINAE ALWAYS HELPS
 
Why not SFINAE?
 
@tom_mai78101 HEY. Say that once more and I'm pulling the plug on that server!
 
12:15 PM
:| how? I'm not SFINAE savvy, that's why I asked.
 
fuck knows, I haven't looked at the question
 
@sehe Nooo!! I had 2 stacks of diamond.
 
@tom_mai78101 I will rip your guts of. Java is the worst thing that could happen to minecraft
 
Fuck this, I'm going to lunch.
 
@BartekBanachewicz At least I didn't say Minecraft introduced Java a lot. :/ I dodged a mighty bullet.
 
12:17 PM
@tom_mai78101 Ok. Apologize and repent to C++!
 
I have to restart client every 1/2 hours, because this piece of crap can't handle destroying objects
 
@sehe But, I don't know a thing about Minecraft related to C++. :(
 
@R.MartinhoFernandes "Not present" - That's not a gimme :)
 
@tom_mai78101 Just say Java sucks
 
Xeo
@BartekBanachewicz They considered actually switching to C++ once, but Java makes the Plugin API that much easier for them it seems. :/
(And there are rogue C++ MC servers out there, which run just that much more performant.)
 
12:18 PM
@Xeo Y THEM NO C++ with script language (hint, hint, Lua?)
 
Xeo
Don't ask me.
Also, it'd be a fucking PITA to switch over to C++ now.
 
@tom_mai78101 Wut? It's obscure, austere, riddled with confusing logic. The only thing decidedly non-C++ is the fact that the game lends itself well to team playing.
 
Xeo
Legacy rules over everything.
 
I am effectively doing the job of Java garbage collector ATM, restarting this shit.
My ram went up to 7.80GB yesterday
 
@BartekBanachewicz I wish my ram just randomly increased in size :)
 
12:19 PM
Legacy my ass. That's a decision that should've been made a long time ago.
 
@melak47 I wish it did so consistently
 
0
A: Data-driven flag setting in derived class constructor

Lightness Races in OrbitAn alternative version that uses a single function might be more compact: struct Derived1 : Base { Derived1() : Base(theFlag(this)) {} }; Then in the header: template <typename T> bool theFlag(T*) { if (typeid(T) == typeid(Derived1)) return true; if (typeid(T) == typeid(Derive...

I don't think that this would work
Can somebody help me to correct it before the 5 min grace period expires? :P
 
@sehe And performs like dog on a Zimmerframe trying to fly a jet.
 
Java is underperforming, freeze the specs, move to sane language, proceed.
 
@LightnessRacesinOrbit It's unfixable. Just remove the static_assert and return a default value.
 
12:21 PM
@DeadMG But that was not the requirement
@DeadMG And it's not clear that any such value exists
 
Xeo
@LightnessRacesinOrbit > static_assert(false, "No flag information given for this type!");
That will always fire.
 
that requirement is optional :)
 
well
 
Xeo
You could get away with std::is_same, though.
 
either you implement the logic by specializing the template
or you can't use static_assert
and that's pretty much that.
 
12:22 PM
Wait, are you first asking "how to convert data to DWORD aligned format" (whatever that could be), and then "what is DWORD aligned format"? — Bartek Banachewicz 14 secs ago
 
@DeadMG I was gonna say that
 
Xeo
@LightnessRacesinOrbit static_assert(std::is_same<T, Derived1>::value || std::is_same<T, Derived2>::value ... (etc), "blub");
 
@Xeo that'll work. a bit ew though. feel free to write it in
 
Xeo
Sorry, can't be arsed right now. :)
@BartekBanachewicz "blub", "bla" and "42" are my steady friends when prototyping error handling.
 
12:25 PM
@Xeo what happened to foo and bar?
 
Xeo
That's for functions.
 
> But some cost effects I had to change my IDE, so I chose Code::Clocks
 
@melak47 std::wrap
consequently, throw(away)
 
crap in the bin
 
Xeo
12:27 PM
static_assert(AnyOf<IsSame<T, Derived1>, IsSame<T, Derived2>, IsSame<T, Derived3>>(), "blub");.
 
void* not C++ enough? :p
 
void* can be slower than typed signature due to aliasing issues
 
Xeo
And the AnyOf<...> part could be wrapped in template<class T, class... Args> struct is_one_of : AnyOf<IsSame<T, Args>...>{};
 
@StackedCrooked among many other things. Arguably, the missing type information inhibits all manner of shortcutting (inlining, static type conversions, constexpr eliminations etc.)
 
Xeo
And then static_assert(is_one_of<T, Derived1, Derived2, Derived3>(), "blub");
Damn, it feels nice to throw some meta-functions around again.
 
12:30 PM
@melak47 void* has nothing to do with C++
 
@sehe He's lying. The function is called on the line I was trying to set the breakpoint.
 
@Xeo that was weird.
 
Xeo
Why?
 
Thanks for the information. I have one more doubt: is the statement: typename std::enable_if<std::is_base_of<T>::value >::type* = 0 is used just for assertion ? — sajas 2 mins ago
Where the fuck do I mention enable_if in my post.
No help for you.
 
nevermind
 
12:35 PM
Bah.
I'm too lazy to start coding. I need a motivation.
 
A booby is a seabird in the genus Sula, part of the Sulidae family. Boobies are closely related to the gannets (Morus), which were formerly included in Sula. Description Boobies hunt fish by diving from a height into the sea and pursuing their prey underwater. Facial air sacs under their skin cushion the impact with the water. Boobies are colonial breeders on islands and coasts. They normally lay one or more chalky-blue eggs on the ground or sometimes in a tree nest. Name Their name was possibly based on the Spanish slang term bobo, meaning "stupid", as these tame birds had a habit...
 
Boobies.
 
repost...!?
 
@sehe Actually, I just wanted any one of them to reply to the question. — sajas 58 secs ago
Waaaaaaaaaat.
 
:D
 
12:36 PM
Duh, boobies only make sense when paired.
 
@R.MartinhoFernandes Makes sense
:D
@BartekBanachewicz Untrue. I know several people who beg to disagree
 
Ok, back to fighting with the VS debugger.
 
Yay.
 
@R.MartinhoFernandes it's dangerous to go alone. take this
 
Xeo
Awesome, I did not know that. Does it work for 'class' structures too? — Gearoid Murphy 5 mins ago
Such an unknown feature...
 
12:46 PM
Arrgh.
 
Also, fuck using macros for constants :(
 
@KonradRudolph Boost is huge. This code just has 3 hpp. — Offirmo 2 mins ago
 
I hate you ICU.
 
Is static_cast<Derived *>(this) valid in a base ctor-initialiser? — Lightness Races in Orbit 5 mins ago
 
Xeo
@LightnessRacesinOrbit Why shouldn't it?
 
12:47 PM
@KonradRudolph lol
 
@R.MartinhoFernandes I C you IH8U
 
@Xeo because *this isn't a Derived yet
I thought there were restrictions on fucking about with this during object initialisation
 
Xeo
@LightnessRacesinOrbit Hm.. Well, he could aswell have done static_cast<Derived*>(0), since he's only interested in the type.
 
@Xeo But he didn't!
 
@LightnessRacesinOrbit There are.
basically, it is valid, as long as he doesn't access any members at all.
because the Derived object has not been constructed yet
 
12:49 PM
@BartekBanachewicz copying a subpart of Boost could be seen as playing fool. And I've tested codeproject solution of course, it works. — Offirmo 25 secs ago
could be seen as playing fool Wait, what?
 
@BartekBanachewicz Yeah, I was so pasting that here. What does that mean?
I think he meant "playing foul". Even worse, then
 
@DeadMG I would have thought that merely obtaining the pointer with that type would be UB, strictly.
since it's neither a "valid" nor a null pointer
 
Oh wait WTF.
 
nope.
there's an explicit exception in the Standard w.r.t. obtaining this in the initializer list.
it's for passing pointers to yourself to subobjects
 
@sehe he is retarded. Also, oh, I kind of reposted BCP there. Whatever, double the chance he'll look into it
 
12:52 PM
and it's entirely legal so long as you don't go trying to actually do anything with it- i.e., treat it as an incomplete type.
 
@DeadMG do you know where it is?
 
@LightnessRacesinOrbit Nope, I'm not one of those Standards lawyers.
 
int &* She; Is she legal?
 
Oh gawd, I swear she said *she was 18.
 
Xeo
12:53 PM
lol
I knew where this was going.
 
fail
 
Arrgh, I need to add another ICU-based griped to my list.
 
@R.MartinhoFernandes Do tell
 
12.6.2/12 says [ Note: Because the mem-initializer are evaluated in the scope of the constructor, the this pointer can be used in the expression-list of a mem-initializer to refer to the object being initialized. —end note ], but this is not sufficient to say that the conversion to Derived* is valid
(wtf Markdown)
 
Xeo
Multiline~
remove the CR after "evaluated"
 
12:56 PM
ah yes, thanks. (not deliberately)
 
Xeo
It comes from copying from the PDF. :|
 
@LightnessRacesinOrbit involuntary thanks?
 
I usually do a good job of taking out the newlines but sometimes they get through when the formatting is similar to how my brain expects the word wrapping to fall
 
@DeadMG Still unsure how I will phrase it. There are a bunch of bitmasks for testing the general category of a character. Like a Z mask that has the Zs, Zl, Zp bits set, so you can test for Zness with a bitwise and. However, u_charType does not return a value that is usable against those masks.
 
12:57 PM
@LightnessRacesinOrbit Strictly, it isn't, but the pointer inside the Base constructor has the same value at the same time, and obtaining the same pointer by another means is not strictly illegal either.
after all, he did use the this pointer to refer to the object being constructed.
@R.MartinhoFernandes wat dafuq
 
You need to use the macro U_GET_GC_MASK to "maskify" it.
So here I was wondering why the fuck my filtering of whitespace was not working.
 

« first day (842 days earlier)      last day (4101 days later) »