« first day (909 days earlier)      last day (4037 days later) » 

5:00 AM
This is one bangin'-awesome system.
FMOD can eat a dick.
 
@DomagojPandža Because book lists (in general) have been deemed poor questions for SO. One of the big problems is that they constantly get stale. A large part of the reason the C++ book list stays open is that we edit it as needed to prevent that (currently over 60 edits on it -- and basically every time anybody edits it, the edits get discussed here, often in considerable detail).
 
Also falls under being a list question and a 'tell me all about X'-not-a-practical-problem question.
 
SO has so many rules and it's getting cultish.
 
The funny part is, the noise is only getting louder, despite the harder rules.
 
It actually is getting somewhat ridiculous. The sock question caused an uproar on meta.
 
5:04 AM
And the bomb question was highly frowned upon.
 
The IOCCC question was also controversial on meta...
I mean come on...
 
OMG somebody hit a gold mine of rep. We should ban it.
 
@StackedCrooked Someone tried to pull that on meta before, using me as one of the examples.
He got downvoted.
 
Lol.
 
Fuck I hate MSDN.
Why do I have to manually press "Back" twice
 
5:06 AM
But I don't think it's gonna be long before somebody tries again...
 
Holy shit.
I haven't committed in forever.
 
@Mysticial It's remarkable how everyone loves that answer. That ratio of love/haters is unusual really high despite its high vote count.
 
@StackedCrooked And I feel very fortunate that the ratio is still high - for now...
But things that people bitch at nowadays are getting "higher and higher"...
 
6727/-3 Does that mean only 3 downvotes?
 
5:09 AM
yeah
 
And the downvotes were jelly downvotes.
 
Holy crap. That's only 0.005%.
 
I just hope it doesn't get locked or wiki'ed.
 
Would that be bad?
There's objectively no reason to make it a wiki.
 
Yeah, but he is hitting the wiki threshold with the 3rd edit from now.
 
5:12 AM
> Intel Compiler 11 does something miraculous. It interchanges the two loops, thereby hoisting the unpredictable branch to the outer loop. So not only is it immune the mispredictions, it is also twice as fast as whatever VC++ and GCC can generate!
Awesome.
 
If it gets wiki'd I'll be the first to hit the streets meta.stackoverflow.com
 
@DomagojPandža The mods have promised to unwiki it if it got wikied from edits. The thing I'm scared of is reaching the 30 answer threshold.
 
Which means total doom?
 
Xeo
My productivity at the end of work hours today is going to be sooooo low.
 
@StackedCrooked yep
 
5:13 AM
lol, i have no idea
 
@Xeo Why? :O
 
Xeo
I woke up at 5am
 
@Mysticial Also, you've never opted-in to be a mod?
 
@Xeo my productivity curve is also a nice downslope towards the end of the day
 
@DomagojPandža Seeing as how mod work is mostly janitorial, that doesn't really interest me too much.
 
5:14 AM
Yeah, Mysticial's a high-hitter~
Rapptz might be a mod, though.
I can see him Modding.
 
@Xeo Like a proper gentleman! Or just accidentally?
@ThePhD Which sports is that a term of?
 
I'm lazy around all things SO. I tried yesterday to get back into answering questions and that weird dude pestering the answers really killed the mood for me.
 
baseball?
 
@StackedCrooked Life, The Game Of.
 
Xeo
@StackedCrooked The waking-up wasn't all that accidental, rather me falling asleep at 9pm yesterday was.
 
5:16 AM
@Xeo LOL what kind of bedtime is that.
 
@Xeo Oh. I don't really see the problem then. You got 8 hours of sleep.
 
Xeo
@StackedCrooked I was so tired after work yesterday, that I fell asleep at 9pm. And I got up at 9am that day, so ~4h later than today. My productivity is so going to take a dive-bomb at 3pm today...
 
Well, just write some documentation then, or something.
Or slack on here.
And pretend you're busy.
 
Xeo
With how the project's going right now, no can do.
 
Hm.
WEll then, truck through as best you can.
 
5:20 AM
Find a taskmaster and ask him to whip you.
 
When you start getting lazy, imagine that if you slack off even a bit,
TelKitty will come sit in your lap.
2
 
Xeo
Oh gawd
 
Still winning.
Ahahahaha, Jesus, I love the Internets.
 
@DomagojPandža The background is what gets me.
 
user1357851
5:37 AM
That time of the month, I am feeling really really not right
 
Everyone here can totally empathize with you.
@Telkitty Of course, now there's real reason for @Xeo to be afraid if you sit in his lap. :P
3
 
LOL, I come back from afk to a gold mine.
 
user1357851
@ThePhD ... I wish I was heavy like this, but I am only half of her size probably.
 
@ScottW o.0
Why do I get the impression that he's in his underwear?
 
Incursion detected in the primary data core. Vacate the section or your vessel will be compromised.
I can't even feel memory leaks with 32 GBs of RAM. :$
 
user1357851
5:50 AM
@ScottW how heavy do you think she is
 
^^ dat... about 400lb or so...
 
user1357851
I was thinking about 300, since she's not that tall
 
~180 kg in SI normal speak. Given that 1 lb is ~45% of a kg.
 
user1357851
or maybe slightly more than 300, but 400 is a lot
 
@Telkitty But spheres have the largest volume/linear dimension ratio.
 
5:53 AM
@ScottW Still alive?
 
user1357851
@Mysticial but fat is less dense than bones
 
If you were that large with muscle you'd probably crash through the floor. 0.o
 
lol
 
I don't want to look at her tits. :(
 
user1357851
Maybe I am only 1/3 of her size if she's really that heavy :x
 
5:59 AM
Damn, it's really difficult when you try to continue working after 24 hours of 0 sleeps.
 
user1357851
I always find it amazing, that someone who is 600 pounds equal the weight of 6 100 pounds people put together :x
 
user1357851
@ScottW but that means very little punishment if I am sitting on them, doesn't it? ... unless I maul them into pieces while doing that, but I am lazy so that's never going to happen >_<
 
user142019
Damn.
 
user142019
 
user142019
Haha LOL.
 
6:12 AM
Wow, cleaned out. o.0
 
That was me.
 
user142019
LOL
 
ow...
 
user142019
1
Q: What is the actual point of using pointers in C++?

Shard WhiteOkay, after ignoring and skipping pointers at any chance i got (They looked really complicated when i first started learning C++ >.<), i finally decided to learn what they are and how to use them. So now i know how to use pointers, the only thing i can't work out is exactly why you would want to...

 
user142019
Dat pun.
 
6:14 AM
lol
 
user142019
The Wikipedia article on the abstract factory pattern gives examples in Objective-C. That's absolutely retarded, what the fuck.
 
user142019
Objective-C has virtual constructors. :v
 
user142019
Oh, how wonderful.
 
user142019
They even have a factory that creates factories.
 
user142019
+ (id<GUIFactory>)createOsSpecificFactory:(int)type {
    if (type == 0) {
        return [[[WinFactory alloc] init] autorelease];
    } else {
        return [[[OSXFactory alloc] init] autorelease];
    }
}
 
user142019
6:23 AM
.—.
 
user142019
And the factories create buttons.
 
user142019
You can simplify this to + (Class)OSSpecificButtonClass and you can get rid of the factories altogether.
 
user1357851
@ScottW I was thinking the same
 
-2
A: The point of pointers

Eugene YokotaFrom Wikipedia: C++ references differ from pointers in several essential ways: It is not possible to refer directly to a reference object after it is defined; any occurrence of its name refers directly to the object it references. Once a reference is created, it cannot be la...

 
user142019
@ScottW Assume you need polymorphic creation of objects in some way. :P
 
user142019
6:25 AM
In this case, since it's about OS-specific stuff, you can just have the build system do it.
 
user142019
printf("bye");
goto school;
 
Hey @Mysticial here's one for ya.
7
Q: Fast copy of `std::vector<std::uint8_t>`

Ruud v AI have an std::vector<std::uint8_t>, which needs to be duplicated. This is done simply by calling the copy constructor. My profiling results show, that the Microsoft Visual C++ (msvc100) implementation, uses std::uninitialized_copy internally. This copies every element one-by-one. In this case, a...

 
Saw it already.
I think the OP is stuck.
Because you can't create another vector without initializing the data.
So the only other way is to create a second vector of the same size and let it zero-initialize.
Then use memcpy or std::copy to fast copy to it.
The problem here is that now you make 2 passes over the data... which is harder on memory and definitely not as good as working on raw arrays.
 
You americanised the spelling for optimisation :P
 
@Mysticial reserve() comes to mind. However, if he needs a copy....
 
6:34 AM
Zero initialization could be avoided if he uses a wrapper class for the uint8_t which has an empty constructor. But then it's no longer vector<uint8_t>.
Even though memory layout will be identical.
 
Which is dirty hackish. lol
 
Indeed :)
But hey.
Never mind..
 
Xeo
@StackedCrooked Constructor will still be called, although that may be optimized away.
 
@Xeo Well if the constructor is a NOP, then it shouldn't be anything right?
 
Yeah, empty constructor is zero-op, which I think will be optimized away.
But I think he should just use =.
 
Xeo
6:38 AM
But yeah, some people might like std::vector<trivial> v(20, std::noinit);
 
@StackedCrooked Isn't that his issue?
@Xeo Is that real?
 
Hey there
 
Xeo
No :)
 
@Rapptz: std::copy does indeed perform much better. I had expected that it would do the same as the copy constructor, but apparrently, it does not. — Ruud v A 1 min ago
lol
hello
 
Anyone experienced compiling PHP extensions with VC6?
 
Xeo
6:41 AM
@Rapptz inb4 he uses it on an uninitialized vector...
 
I dont need help
just want to know :P
 
would it be a better idea to pass rotation matrices to GLSL or just creating them in the shader with a uniform angle
performance and simplicity wise
just trying to rotate 2 textured triangles
yeah
 
Can't read assembly though.. Meh, probably UB anyway.
 
hm
should this be managed in the vertex or fragment
doing it through fragment had a ton of issues
and vertex doesn't rotate the texture, but the object itself
 
6:46 AM
@StackedCrooked I'd love to help, but I don't want to look at anything until I wake up.
 
@DomagojPandža Btw, it's about this question.
 
uninitialized_copy doesn't use memcpy internally?
 
Dunno, but it should be equal in performance imo. But apparently it isn't..
 
@Pubby Wouldn't make sense for non-trivially copyable types.
 
6:48 AM
As usual it's fair game for trivially copyable.
 
Clang's std::copy is just as fast as memcpy for PODs.
 
Are we talking about a specific implementation though?
 
@LucDanton uint8_t is trivial though, and I recall a video of Microsoft explaining how they specialized all their templates for trivial copyable cases to use memcpy
 
I noticed that VS express edition is not as good at optimization than professional though. (But that was back when I was using VS 2008.)
 
@Rapptz Nah. You're still here
 
6:52 AM
sehe <3
 
@sehe Maybe that was his other self speaking.
 
What is the reasoning for this?
error: ‘constexpr’ needed for in-class initialization of static data member ‘const char* A::str [3]’ of non-integral type
 
It's not of integral type.
 
Hm, even if it's static and const?
Weird.
 
Yup. C++03 was conservative in this respect.
 
6:56 AM
@ThePhD No you didn't (hint when writing, check spelling. When reading: check what you read. Especially so it the topic is tpyographical errosr):
6 hours ago, by ThePhD
Nope, it's for sale: http://theaslyum.com/
 
I've never done it for non-integral types before so this was new to me.
 
inb4 next error: no definition provided
 
no it's fine now.
 
@Rapptz this might be related stackoverflow.com/questions/8016780/…
 
... for now
@Pubby Spoiler!
 
6:58 AM
@sehe I then went on to check the other domain, theacylum.com. It was a pun on asylum, with C, and Jerry chained off of it:
6 hours ago, by Jerry Coffin
@ThePhD ac++ylum for the better code.
 
@ThePhD Meh. This was not the message I responded to. I got that, you know
 
Oh.
I'm lost, then. :c
 
I'm not splitting it up in .cpp/.hpp
 
2 mins ago, by sehe
6 hours ago, by ThePhD
Nope, it's for sale: http://theaslyum.com/
Just... look closely
 
... OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOH
HERPADERPA
 
6:59 AM
Eureka
 
At english suck I.
 
:)
 
but cool :S TIL
 

« first day (909 days earlier)      last day (4037 days later) »