« first day (770 days earlier)      last day (4186 days later) » 

4:00 AM
... Can you even type_id member function pointer types?
Time to find out!
 
Well, I inspected the type info for all of them and it seems to produce different stuff based on the members, so I can use that in my MemberFunctorId struct.
Thanks @StackedCrooked, I never thought type_id could have been used on function pointers.
 
o_O
 
@StackedCrooked O.o
 
user406009
4:06 AM
It seems that member functions have a working operator==. Perhaps you can do a linear search?
 
... Damn.
@Lalaland std::function, with bind, type-erases. It degenerates into a static function call with a non-member-function pointer type.
 
@ThePhD yea typeinfo from typeid should be unique no matter what. Though I would take care and test the case where you have a member function in a base class that is not overrided. That is the case where your dirty hack idea from earlier had a decent chance of tripping up. <<< this was half typed up by the time @StackedCrooked made his discovery.
 
std::function has no op==.
 
For regular function pointers, though, I do do a linear search.
 
I can see how that's better than using tokens.
 
4:09 AM
It's not better, I don't think. In fact it's most likely vastly inferior.
 
Yes, that's what I'm hinting at. :P
 
But I'm learning, so I get to make vastly inferior systems for the Sake of Knowledge (TM)
 
@CatPlusPlus I think you meant "can't" not "can" up there :P
 
Where?
 
"I can see how that's better than using tokens."
 
4:10 AM
I think you need to calibrate your sarcasm detector.
 
@nixeagle Sarcasm.
 
figures :P
 
Late night burger yummy!
 
@BeyondSora:
 
Hmm... I guess that makes sense. (Fixed link.)
 
4:15 AM
o_O
I was gonna write my own name un-mangler.
Never knew that there were APIs for that.
Ah. They all look the same.
Guess that's why they're shown as being the same... ... that might be a problem if you try to store something for an object with both types A::A and A::B.
 
good movie. GO.
 
My implementation will leak in case of exception though. It's noob code.
 
user406009
This might be able to be transformed into a possible solution: ideone.com/43KREl
 
I don't know how to make my code exception-safe, or what @R.MartinhoFernandes meant in his Rule of Zero post when stuff would be exception-safe using things like std::unique_ptr
 
Nah looking for good movie. What's a good movie?
I just finished watching Manic, twas good
 
4:18 AM
@ThePhD Look at the code and ask yourself: what happens if exception is thrown in the middle of it.
How is the global and local state affected.
 
Well, if an exception is thrown in the constructor, doesn't the destructor get called anyways?
 
Or does it just explode and the object that's being constructed is just wiped off the plate?
Oh.
I thought the rule was that if you made it into the constructor (even if you never finished), the destructor was going to call.
 
4:22 AM
@ScottW just weird stuff. I used to be a film major, I'm willing to try anything non-romance
And I've already seen everything with Johnny Depp several times
Mancrush<3
 
Ah.
Well, that's helped me out quite a lot.
 
@ThePhD Only if ctor finishes. Data members will be destroyed though, which is why RAII primitives are important.
 
Oh, my... bar never dies.
 
@ScottW Anything newer? 1995+
 
Does that mean its memory is still there? Or, after the foo (and any other relevant members are destructed), does it just rollback the memory used to allocate bar?
... Though, thinking about it.
 
4:26 AM
@ThePhD if that object had new in the constructor then the corresponding delete in the destructor won't get called.
Wham! memleak :P
 
Anything in the try { } catch { } is a new 'stack' level, so the bar in the stack would die after the try {} failed. Or, so I assume.
 
@ThePhD not around dynamic memory, remember dynamic memory is on the heap
 
Well I would expect if you 'new' in the try {} then you'd have to delete in the catch {}
 
@ThePhD No, delete would have to be in the try too
 
4:28 AM
@ThePhD say the constructor allocates 10 bytes using new in bar. On object destruction, ~bar is supposed to deallocate those same bytes but won't.
 
It's simple, but most of my colleages didn't know the right answer.
 
... Um.
0 ?
 
user406009
sizeof(long)?
 
@StackedCrooked too many.
 
It has to be 0 or else a ton of code would leak
 
4:30 AM
Guys..
@Pubby +1
 
WOO I WAS RIGHT!
 
blah. x)
 
Does new free the storage on exception?
 
Yeah, I think
 
user406009
What about this: ideone.com/r2j6ba ?
 
4:32 AM
I thought new couldn't throw an exception in the first place?
 
new can throw an exception.
 
sizeof( A ) ?
 
what do you think happens if new can't allocate any more memory because you ran out of memory.
 
That's irrelevant.
It's operator new that throws bad_alloc, not new.
 
@nixeagle I thought it returns null inthat case?
 
4:33 AM
At that point neither storage is allocated nor constructor called.
 
user406009
@ThePhD Pretty sure that's C.
 
^
 
D'aww, I thought it'd carry over.
 
There's nothrow variant.
 
@CatPlusPlus How do you get to the nothrow variant?
 
4:33 AM
new (std::nothrow) T;
 
Ah.
I should probably add that everywhere.
 
Because I do null-checks
 
You should remove null checks.
 
~Siiigh~
 
4:34 AM
@Pubby Yeah, I'm not so sure. It's C++ after all.
 
Fiine, try {} catch {}
 
@ThePhD but what are you going to do when you run out of memory x).
 
I think new is implemented similar like this:
 
So type_info is off the table for internal stuff of an Event system, because it still confuses multiple member functions of the same name.
 
new()  {
    void * p = malloc(sizeof(T));
    try { return new (p) T(); } catch (...) { free(p); throw; }
}
 
4:36 AM
@nixeagle Null my way to victory!
If I hit any critical nulls I just fail the whole application anyways.
 
user406009
So wait, if new deallocates all allocated memory in case of an exception in the constructor, what does delete do when there is an exception in the destructor?
 
Welp, back to char[ sizeof (memfunptr) ]
 
@Lalaland I think it will leak. I see now way to salvage that.
 
@ThePhD yea, same. I just blow up expecting log info to be enough :P
 
This means I need to write a hash algorithm that runs over bytes...
.... MurmurHash3 anyone?
 
4:40 AM
@ThePhD well make sure that it even works properly when there are derived classes that don't overload the base class's function.
 
Don't ever throw exceptions in dtors.
 
delete doesn't throw, I'm fairly sure.
I mean, what can delete throw about?
... Oh wait, if you hand it the wrong pointer.
Access reading violations and stuff.
 
~foo(void) { try { throw 42; } catch (...) {std::cout << "caught!\n";}}
how about that @CatPlusPlus
 
Damn, this is -hard-
Templates cutting me legs. x_X
 
I suspect delete would be implemented like this:.
delete(T* t) {
    try {
        t.~T(); free(t); }
    catch (...) {
        free(t); throw;
    }
}
If you manage only one resource per class then you might be ok if no other object throws during stack unwinding.
But that's gambling :D
 
4:49 AM
!!!!!!!!
It compiles!
Cmon, baby, work...
 
@ThePhD release!
 
@StackedCrooked RAII primitives.
If everything down to primitives can clean up after itself, it won't leak anything.
 
YES!
sizeof (memfunc) == 4, so it fights in a uint64_t
WoooOooOooOooooOoO
Hashable!
 
That doesn't seem right.
 
@ThePhD what compiler and arch?
 
4:51 AM
MSVC++ 2012, 32 bit build
But I'm on a 64 bit machine
 
sizeof(memfunc)==4 means it fits in a uint32_t
 
Yeah.
 
Oh, sorry.
I got too excited.
Can't do maths. :c
 
Use a uint128_t.
Oh, wait..
 
Not on VC++, I don't think.
what's the sizeof a memfunc in GCC?
 
4:53 AM
Anyway @ThePhD the problem is memfunction pointers can be 8 bytes on a 32 bit machine and I'm not positive but it might be possible for them to be 16 bytes on a 64 bit machine.
 
@ThePhD It's not depending on the compiler but on the architecture that you are targeting.
 
Yeah but memfunc usually has some extra cruft in there for virtual tables and stuff.
 
@ThePhD which is important if you care about identity.
 
Hm. Well, To be safe I could just allocate 16 bytes all the time everytime.
 
At which point you ought to just go back to the token idea. I mean tokens won't take 16 bytes each... right?
 
4:55 AM
Any mem function pointer that uses more than 16 bytes it just out of control and I don't want to work with that kind fo compiler.
 
Make it 64 bytes to be extra safe. Then you avoid false sharing in case of multithreading :)
 
@StackedCrooked That's just too much now. D:
 
@ThePhD I think 16 bytes would let your rube goldberg machine work.
s/cache/cache line/
 
But what compiler would create a mem pointer struct so big it takes 64 bytes?
That's absurd.
 
@ThePhD 16 bytes is the max if we are talking about 64 bit machines.
basically two pointers.
 
4:57 AM
So 2 64bit integers
 
8 + 8 = ??
 
If you really like to see how one compiler deals with pointers to member functions, Raymond Chen has you covered.
 
@Insilico I read that a year ago. Nice find :D
 
64 bits / 8 bits = 8 bytes | 8 bytes * 2 = 16 bytes * 8 bits = 128 bits = 2 * 64 bits
 
It appears that a pointer + adjuster thingy is enough to cover pointers to member functions of all "types" of classes
(e.g. virtual inheritance, multiple inheritance)
Then again I've never wrote a C++ compiler so don't ask me.
 
5:00 AM
@Insilico right, our discussion is about @ThePhD's attempt to use function addresses as a form of identification. But this breaks on member function pointers for the aformentioned reason.
 
@Insilico That article is from 2004 and it mentions Rich Hickey!
 
@nixeagle What is ThePhD trying to identify?
@StackedCrooked Right. When I said "one compiler" I meant "this one version of this one compiler written by this one group of people at this one point in time". Implementation details may change in the meantime. :-)
 
@Insilico We need a unique way of identifying a Member Function Pointer in C++, i.e. void (TestClass::*)( { args } )
 
1 hour ago, by ThePhD
Attemping an explicit cast is failing for me:

template <typename T> void Add ( T* object, void(T::* func)( T1 ) ) {
		uintptr_t faddress = (uintptr_t)func; // 'There is no context in which this conversion is allowed`
}
 
@Insilico I mean it's amazing to learn that Rich Hickey worked on C++. He's the author of the Clojure programming language.
 
5:02 AM
@Insilico ^ the post that started all of this.
 
@ThePhD The way virtually all "signals and slots" implementation deals with the scenario you speak of is to return "tokens" e.g. connection classes, if that's what you're trying to do it.
 
@Insilico I'm trying to write a non-connection class implementation that's self-containing.
I know the token approach, I can write it easily, and I thought of using it too.
 
We already told him that.
 
But I want to write a self-containing one.
 
@Insilico you are saying what we have been saying :P. But @ThePhD wants to build his rube goldberg implementation. We are just enabling him :P
 
5:03 AM
@CatPlusPlus Right. I was wondering what the hell StackedCrooked meant by "tokens" in a previous message.
 
It's really just because - secretly - I'm a huge masochist.
 
OMG and Rich's post dates from 1994. And it presents what looks like a precursor to std::function.
Button playButton(makeFunctor(cd,&CDPlayer::play));
 
@ThePhD If you absolutely need to do something like that, you can try hacking together something I hacked together in the past:
69
A: 5 years later, is there something better than the "Fastest Possible C++ Delegates"?

In silicoUpdate: An article with the complete source code and a more detailed discussion has been posted on The Code Project. Well, the problem with pointers to methods is that they're not all the same size. So instead of storing pointers to methods directly, we need to "standardize" them so that they ar...

 
oh cool stuff @Insilico x)
 
Basically you make a template function to "standardize" and wrap all the member function pointers
And depend on the One Definition Rule to ensure each wrapped member function pointer gets a unique address to that wrapper function.
But it's such a hack I wouldn't even use it unless I absolutely have to.
 
5:06 AM
That makes sense, but I'm not just doing a C++ Callbacks. I'm storing them to make an event system.
Wait a second that came out wrong.
 
@ThePhD Okay, so just stuff all the pointers to the wrapper functions into an array or something.
Of course, once you get it all working you'll realize that using tokens is the more sane approach. :-)
 
@ThePhD he just gave you code that lets you do what you want to do. Assuming that operator== is possible on his wrapper template, you have everything you need to avoid tokens.
 
@nixeagle When I wrote my answer, I initially thought that you couldn't do equality comparisons on it, but apparently ODR guarantees that there's only one instantiation of the wrapper template function for each member function you wrap.
 
@nixeagle Storage, howver, is the concern. How can I store any type of callback that matches a given signature from any number of classes - they do not have to be the same class - into a single Event class that fires all of them?
 
So update it, because it still says Callback can't be used with equality operators.
 
5:10 AM
@ThePhD The code I presented doesn't care what class your member function belonds to.
@nixeagle I'll get around to it once I have time. Now is actually not a good time.
 
@ThePhD what in silico shows here is 100% what you want. Callback is your token object.
 
Also I want to do proper benchmarks and not just claim it's faster than boost::function without data.
 
since you can do comparison.
@Insilico lol well for what @ThePhD wants, speed is not his goal, he is just being stubborn. xD
 
@nixeagle True. :-)
The caveat with the code I present that it requires a very capable compiler. So MSVC++6 is out of the question. :-)
 
Wait a second, from the implementation I'm reading (and I could be dead wrong, I'm still trying to figure it all out), how would I be able to have the Callback - all stored in a std::vector for simplicity - be identifiable if I pass in a TestClass object and a RETURN_TYPE (TestClass::*) ( { ARGS } )
 
5:14 AM
You recreate the Callback object. BIND_MEM_CB(obj, &TestClass::Func).
 
@ThePhD well you can define operator== on Callback. So that takes care of your function pointer issue. Think of this as a fancy wrapper around pointers.
 
What BIND_MEM_CB and BIND_FREE_CB does is to instantiate a template wrapper function.
 
I still don't know how to do an "onClick" type of callback.
 
The template wrapper function "standardizes" the member function pointer so you don't have all that "different sizes for member function pointers" business.
 
^
 
5:15 AM
ODR guarantees* that the wrapper function is instantiated only once per member function you wrap.
 
That is all this does. Handles the various different kinds of pointers in a "simple" way giving you the ability to tell them apart regardless of what kind of pointer it actually is. Subject to In silico's caveat
 
(*Based on my interpretation of the C++ standard. I'm not sure if that interpretation is correct)
So even if you invoke BIND_MEM_CB(obj, &TestClass::Func) in multiple places, you get a Callback object with the same addresses.
 
So it would just be a matter of grouping all the Callbacks together by their function type and, when I need to identify a specific callback for an object, I'd just need to make sure the void* obj lines up with the newly-created Callback's void* obj ?
 
I'll give an example that will hopefully clarify the issue
 
@ThePhD actually I don't think you have to even care about what kind of function it is (eg what kind of pointer/memberpointer/whatever it is.)
 
5:18 AM
The event source would have something like std::vector<Callback<bool (int)> > listeners;.
 
Yeah pretty much.
 
@ThePhD If all else fails you could simply have an "unique id" member in you callback (using a global object counter).
 
@StackedCrooked well there you go suggesting fancy tokens again. x)
 
Prospective listeners call BIND_MEM_CB(&myObj, &Test::OnEvent) and pass the resulting Callback object to your event source.
 
@nixeagle I never mentioned tokens in my entire life!
 
5:19 AM
Or I do it internally so they don't have to, but yes.
 
Event source copies the callback object into its vector.
 
Yes...
 
@ThePhD Unfortunately, the caller has to do it itself, since BIND_MEM_CB is in fact a macro. (GASP.)
Then when the listener wants to get rid of its entry into the array, it calls BIND_MEM_CB(&myObj, &Test::OnEvent) again and passes the resulting callback to the event source's RemoveCallback() function or something.
 
Dun dun dunnnn.
 
@Insilico oh as stubborn as @ThePhD I'm sure he will find a solution even if he spends a week searching. :x
 
5:20 AM
Then the event source searches the array for a Callback that compares equal with the passed callback object.
 
Why do you even need a system for associating callbacks with their owners. Just calling the callback will call the code specified by its owner.
 
Which it will since we passed in a callback object with the same addresses.
@StackedCrooked Presumably ThePhD wants to be able to disassociate a listener from the source at will.
 
@StackedCrooked because he is using the pointer/callback as a token replacement.
Oops, I mentioned tokens. I'll show myself out.
 
hey everyone just was wondering about something. i dont know much about machine learning or having a program reprogram itself, but would it be possible to write a program (preferably in c++) that would say.. alter itself in someway so that it cant be run more then once? kind of like those james bond messages that self destruct after listening to them
 
.... Rubs face. Okay. I guess I'm following. My thing is, how does Callback - if it's standardizing everything - figure to directl- You know what, actually. That's a bad question. And I'll tell you why it's a bad question: because I'm using std::function.
 
5:22 AM
Of course everything I've just said hinges upon my interpretation of the C++ standard's ODR rule, which I have yet to confirm.
But it appears to work at least in VC++.
 
@wardd sure, have it overwrite its binary?
 
Which is why I recommend that you just use tokens that StackedCrooked keeps suggesting for anything for production use.
 
@nixeagle but if the binary is running wont it be unable to since the binary is being used?
 
@wardd dunno, would it? That is operating system specific.
 
@nixeagle oh... so would it be as simple as opening the binary file and overwriting it with garbage?
 
5:24 AM
@wardd That is OS specific. I think on *nix like machines you can replace the image at will, but on Windows it's more tricky since the .exe will have a lock on the file.
 
@wardd yes assuming the operating system would let you.
 
excellent
 
All else failing, just spawn a process, disassociate the parent process, have the child wait until the parent dies and then nuke the binary.
 
Of course you have to be careful that you don't run afoul of memory protection schemes that all OSes nowadays employ.
 
@Insilico I want the 'Event Shooter' to have 0 knowledge of anyone that subscribes to it - a token system does that - but I also want no token. I want it only identified by either a static function pointer or a member function pointer and its object. I've been using std::function for static pointers and std::function with bind for member function pointers, but my issue became identifying which of the std:functions in the std::vector was associated with which void* obj passed in.
 
5:26 AM
@ThePhD replace std::function with Callback
 
@nixeagle so the child process would be executign a 2nd binary, which is just a program thats only purpose is to nuke the main binary?
 
@ThePhD Congratulations, you've encountered the exact same problem that the authors of boost::signals have encountered.
 
@wardd yea, though note what @Insilico said. It is possible in theory.
 
@ThePhD Would something like this be any helpful for your problem?
 
@Insilico join the choir!
 
5:27 AM
i see
 
Generally speaking, modifying a binary image like data then executing it as machine code is very, very tricky.
Because if you don't do it right that's just inviting code injection attacks.
 
what if i just overwrite the binary wiht 0's?
 
@wardd Then the OS would simply mark your binary as an invalid executable.
 
@Insilico Wait, isn't a code injection attack the same as what you are trying to do?
 
@nixeagle I know it was the exact same problem, I just didn't know how to solve it and I wanted to. With Callback I can, but I also wanted to take an honest crack at it myself and see if I could get a tokenless system. I'm going to keep reading Callbackand understand how exactly it all works in the end.
 
5:28 AM
@insilico ah perfect
 
@StackedCrooked A code injection attack implies malicious intent. :-)
 
But I'm a sweetheart.
 
i dont want to injject code anything, i just want my program to self destruct after being run once lol
 
@ThePhD sounds good, always worthwhile to learn from others. Plus learning how to read code is a useful skill.
 
@wardd If that's all you need, then this tutorial for Windows executables should help.
 
5:30 AM
 
@wardd run it on linux, have it delete the binary. Done.
 
I think it's even easier on *nix machines.
 
@insilico yea thats been my experience, everythign easier on *nix ;)
 
@wardd Except for doing anything useful. :-P <flame-bait />
 
@StackedCrooked The problem with that is that the Remove function of the Event<{types}> class doesn't take a unique_id, it takes the object that is associated with the member function pointer, and I can't associate a unique ID with that because I can't ask the user to give me back the unique id for what they're passing in. The issue has been identifying things by the obj that's passed in, which is what std::function erases with bind, but what @Insilico's Callback implementation keeps.
 
5:31 AM
@ThePhD That is a laudable effort. But consider the code in that answer as "research-grade" (i.e. not "production-quality") :-)
 
@Insilico I'm actually about to just keep std::function and have a second std::vector with void* pointers for every std::function entry. Technically, that'd work exactly as I want it to. and it's be dumb-simple. :3c
It's not memory-trim but it'd -work- for identification purposes.
 
@ThePhD What if I want to register multiple functions from the same object?
 
@ThePhD even for member function pointers :P
 
@Insilico ..... Damnit.
I was going to just say have multiple std::functions with multple void* with the same address, because I can type-check the functions, buuuuuuuuuuuut
 
@Insilico Interesting. Did they write about this? I'd like to learn more.
 
5:34 AM
This wouldn't work because void A () and void B() have the same signature and are both on TestClass so would generate similar signatures in that case. ... Blargh.
 
@StackedCrooked I think if you look up the documentation concerning the connection class in the boost::function docs there's a detailed rationale for it. I'm not positive about that, though.
@ThePhD There's a reason why you can't compare std::functions for equality, because it's impossible to do in the general case.
 
@wardd You can only be certain by destroying the computer. ..Actually, you should destroy the entire room as well.
 
@Insilico Yeah, type-erasure and std::bind and all. ._.
 
@ThePhD your answer is either Callback or ducks tokens.
 
@nixeagle I remind people once again to consider the Callback code to be "research-grade", not "production-grade". :-)
 
5:38 AM
Well I'll make it production grade, watch me, I will!
 
@Insilico what @ThePhD is doing is.... research/masochist-self-loathing.
 
@nixeagle I think "research" implies "masochist/self-loathing". :-)
(Of course I'm talking about "research" as in "producing new knowledge" as opposed to "learning from others")
 
@Insilico well I'm half suspecting @ThePhD is doing the latter, but if it results in the former, why not.
 
I wish all member function pointers were just... not so unruly.
That'd make this so much easier...
 
Are C++ concepts dead, or are they still being worked on?
 
5:42 AM
@ThePhD Why do you think std::function was invented in the first place? Because member function pointers suck.
Actually pointers suck for doing anything non-trivial in general.
 
I have a new appreciation for free/static functions and regular pointers.
 
uh yea, good luck implementing custom data structures :P
 
This member function shit is a nightmare. Go to hell, Java#++0x2012.
 
this is not C# >.>
btw @ThePhD the case where they get unruly is when you have virtual base classes. Because then you have to do a lookup in a table to figure out which overloaded function to actually call.
 
Shhhhhhhhh.
We're not there yet....
 
5:46 AM
@ThePhD At least you get something that you can use to represent member functions. Java doesn't have such a thing, so you're basically forced to make a class everytime you want to do any sort of event callback system.
 
If there is nothing virtual in your class/base class, technically the compiler can optimize the function call as if it were an ordinary call and give a pointer in the same fashion. But due to that one edge case...
Oh @ThePhD did we mention lambda functions yet? [](){...} xD
ducks
 
So you would have classes whose only purpose is to inherit from ActionListener and friends in order to listen for events, which suck.
 
~Sigh~
 
The whole class MyFooListener implements ActionListener { ... }; business contributes to the verbosity of the Java language for real applications.
 
Have to be thankful I guess.
 
5:48 AM
@Insilico sometimes C++ makes me want to stab myself with a spork, java makes me want to shoot myself :P
Mostly for the verbosity reason, plus the whole OOP thing taken to an extreme.
Execution in the land of nouns.
 
What's a spork?
 
A spork or a foon is a hybrid form of cutlery taking the form of a spoon-like shallow scoop with three or four fork . Spork-like utensils, such as the terrapin fork or ice cream fork, have been manufactured since the late 19th century; patents for spork-like designs date back to at least 1874, and the word "spork" was registered as a trademark in the US and the UK decades later. They are used by fast food restaurants, schools, prisons, the military, and backpackers. The spork is a portmanteau word combining spoon and fork. Similarly, the word foon is a blend of fork and spoon. The wo...
 
@nixeagle Isn't OOP about objects that communicate with each other using message passing?
 
Java is not a good OOP implementation.
 
@nixeagle Do you really want to stab yourself with that?
@CatPlusPlus I bet Erlang is probably better one, albeit unintended.
 
5:53 AM
@StackedCrooked Go talk to nixeagle. I'm not the one saying that C++ makes me want to stab myself with a spork.
 
Eh, not really.
 
@Insilico there are times... x)
 
@Insilico Do you think it's possible to Variadic-Template your Callback to work with variable types?
 
@ThePhD I don't have a C++11 compiler with variadic template support on hand right now, so I have no idea.
 
@ThePhD the research question after your figuring the syntax stuff out needs to focus on the ODR question.
 
5:55 AM
Mmm.
 
Else you will do all this work only to find out... it won't work.
 
@nixeagle I have no problem doing all this work and finding out it fails.
 
Of course Boost has shown that you can do quite a bit of utterly insane stuff with standard C++.
 
I'm on nobody's timeline or payroll. I'm doing this for (incredibly painful, yes whip me harder C++) fun.
 
@Insilico yea, it is usually trying to read or write code looking like boost implementations that make me want to stab myself with a spork :P
 
5:56 AM
@CatPlusPlus I was just joking. But apparently it has been asked on SO.
My user count for this app is dropping :( What should I do?
 
@nixeagle Although to be fair most of the code is to handle differences between C++ compilers that would only show under crazy situations that Boost is regularly put into.
 
@StackedCrooked spam it in stack overflow chatrooms of course! duck
 
@nixeagle Ok. Let's post in the other rooms.
 
Some of Boost's code is so crazy that they cause internal compiler errors (ICE), which is never a good sign.
 
@Insilico It's a sign of ambition.
Which is good.
 
5:59 AM
@StackedCrooked I meant never a good sign for the compiler writers. :-)
 

« first day (770 days earlier)      last day (4186 days later) »