« first day (1012 days earlier)      last day (3940 days later) » 

3:02 PM
mmmm food
feels good
BTW Nickelback is OK
 
oh you
 
Are you eating contaminated food?
 
I honestly don't get the hate on it
 
JBL
@jalf Interesting ! How is it kind of a Tintin, apart from the haircut ?
 
Instrumentally it's plusgood, and that's the most important part for me
 
Ell
3:04 PM
@BartekBanachewicz I think it's just a thing
a joke
 
@Ell oh, really?
 
As a Belgian, I am severely offended by the fact you don't know Tintin.
 
Who's TinTin?
 
FUCK OFF
 
Ell
he's that racist kid, right? ;)
 
3:05 PM
yep
oh, wait, I'm not supposed to know that
 
JBL
@TonyTheLion He's part of the Belgian national heritage ?
 
I like how CNN is so "innovative" with news
> NEW NSA leaker still stuck in airport
 
> It's a profiler within the new Performance and Diagnostics hub, that enables you to improve the performance of your Windows Store apps using JavaScript by providing a semantically-rich, Web Platform-centric view of CPU utilization.
you gotta be kidding me
 
That's not NEW by any stretch of the imagination
 
Also I am reposting feeds again I guess
 
3:07 PM
NIPPLE SALADS
 
Yes it will. But if I don't want my UI layer call DAL directly, I would have a BLL. My BLL will call the new queries that generated automatically. — etlds 25 mins ago
what the fuck is he talking about ^?
because I have no idea about ASP.net
 
Data Access Layer and Business Logic Layer
 
"you should use your TXL to generate JGs over POSCL layer"
 
c'mon dude, don't you speak Enterprise?
 
Ell
3:08 PM
3 minutes to transfer 7mb, come on!
 
@DeadMG why am I even in that thread :F
@Ell milli-bits?
 
Ell
megabytes :P
 
@BartekBanachewicz That does sound outrageously slow.
 
@Ell these are called MB
 
dude
even I can do like, 17MB/minute
and I live in the middle of a fuckin' swamp.
 
3:10 PM
@JBL well, it's just what the author had in mind when he made it, afaik. But it's set in roughly the same period (1930's), and I guess he took a few cues from the visual style as well
 
@DeadMG I can do it without a computer!
 
I can write 17mb/minute
 
Ell
@DeadMG I'm not talking about download, which makes it even worse :O
this is transferring from my laptop over wireless to my desktop via ssh
 
oh, right.
holy shit, that's ridiculously slow, even for wireless.
 
@Ell use a carrier pigeon already
 
Ell
3:11 PM
yeah I know. I think there is something wrong with my laptop
Well, I know there is :P
I just don't know what
 
@DeadMG you have sucky hardware
 
Ell
I rarely use it anyway, so I'm just transferring some stuff
 
NEVER STOP THE KILLING!
Hmm, I should stop this.
 
JBL
@jalf I see, and will def. take a look at it, I enjoyed Lovecraft's stories quite well.
 
3:11 PM
@BartekBanachewicz Er, I have sucky hardware?
 
@R.MartinhoFernandes okay that'd do it
 
@EtiennedeMartel That R#8?
Sweet.
 
@R.MartinhoFernandes Almost.
 
Freaking sweet.
 
3:15 PM
whistles
 
It's middle dot indentation, dummy.
 
Really? You're binning messages for disagreeing with your opinion now?
@R.MartinhoFernandes Oh that's okay then derp
ITT Etienne's power abuse reaches a whole new level
 
I wondered how much it takes to bypass your sense of humor.
Seems like it's not much.
 
I thought he was preemptively killing a that character who shall not be named vs that other character who shall not be named discussion.
Obviously, that other character who shall not be named wins.
 
Yes, nobody cares that you're using wrong indentation.
 
3:17 PM
@R.MartinhoFernandes That's what I did. Including the "yukkkk" thing in the bin blast was power abuse.
 
Ell
man my pokedex doesn't work anymore either. I gotta stop writing sucky software which breaks after 4 months
4
 
Don't start this discussion again.
 
I wonder if Occam had a beard.
 
@R.MartinhoFernandes Yes. His razor was so busy elsewhere, he never got to shave with it.
 
@EtiennedeMartel Oh. Collateral damage, I guess.
 
3:21 PM
@R.MartinhoFernandes Yes.
That said, I'm amazed by how fast Tomalak jumped on the "EHMARGERD POWER ABUSE" train.
I mean, sure I was being a jerk. But still.
 
@R.MartinhoFernandes Yukky collateral damage. There, yuckiness restored; all is now right with the world.
 
Ell
Ahh turns out I started a c++ pdf parsing library a long time ago
./libpdftest
Hello, World!
 
lol poor sod.
 
Ell
I create so many projects and usually never even write the first file
 
@R.MartinhoFernandes There are worse things to do than reading PDF. Reading Photoshop files, for example.
 
Ell
3:27 PM
I found this swarm ai thing I wrote. It looks like a load of agents randomly travelling around in a distinctly non-swarm-like fashion
 
@JerryCoffin Yeah, at least PDF has a spec.
 
Ell
ahh I found my collection of cli games! Well, two :P
blackjack and connect4
 
Ell
what is that language o.O
 
Meh... interesting that you're defining stuff with rules but I don't see the use really
 
3:41 PM
@Azad I sincerely thank you for your guidance, My Muslim brother. — Sajjad 2 days ago
 
So this guy with no activity on SO for the past two days has just invited me to a private chat room. I wonder whether he just wants to tell me I'm beauty...
 
hahahah
there, I've done it, saves you having to go elsewhere
 
Can anyone make sense of this answer? Even if it does, I'm not entirely sure it's worth keeping since it doesn't answer the question and doesn't really add anything.
0
A: Why is processing a sorted array faster than an unsorted array?

Yves DaoustIn the sorted case, you can do better than relying on successfull branch prediction or any branchless comparison trick: completely remove the branch. Indeed, the array is partitioned in a contiguous zone with data < 128 and another with data >= 128. So you should find the partition point with a ...

 
> Here's a copy friendly version for VB developers:
Wat
 
3:48 PM
yeahano
 
Hey csharppe devs, is there an attribute that will tell the compiler that method X is the same as throw shit, so it counts it as an exit point?
 
Any1 mind taking a look at my question?stackoverflow.com/questions/17831396/…
 
no, I don't mind downvoting it
 
3:57 PM
@EtiennedeMartel lol nice
@Ell a DSL
 
If you can't be bothered to spell "anyone" properly, I can't be bothered to look at your shitty question.
 
> Is there a classy c-way (...) to (...)
 
@Mysticial He's saying that if the array is pre-sorted, there's no point looping through the sub 128 elements anyway- you could do a log(N) binary search to find the right place to start, and then only loop through the elements you care about and skip the branch.
 
@EtiennedeMartel hm is is used voxel raycast rendering?
 
0
Q: What exactly is code branching

WaldermortLike the title says, What is code branching? I've seen it mentioned in various places, especially with bit twiddling, but never really thought about it? How does it slow a program down and what should I be thinking about while coding?

@Mysticial this be a dupe right?
 
4:05 PM
@Mysticial Doesn't seem like it to me. The question is about why processing is faster when the array is sorted; this answer is really an attempt at optimizing when the array is known to be sorted (and doesn't seem like it does that very well).
 
@JoelSeah 46 people have taken a look at it already. If they didn't answer, then it might be that the problem lies with the question itself. :)
 
@jalf meaning they dun understand the question?
 
@JoelSeah or the question didn't give them the information they needed in order to answer it. Or it gave the impression that the person asking hadn't made enough of an effort himself
When asking a question, you're effectively selling it. Make it look appealing. Make it easy to answer. Make it look as if it is worth answering. :)
 
@JoelSeah Can you make an effort and try to write in proper English?
 
@jalf Well I can say that I did make an effort in trying to solve it myself. Its just that in the normal running of the program the function does as i expects it to. But when i use that function with cppunit. It just doesn't work. I have simply no idea why its not working.
@Jeffrey alright. I will re-write the question again. Thanks for telling me that ^^
 
4:21 PM
One of the comments seem to point to the likely problem
btw, that's a common reason why people don't answer a question: if they leave a comment with a suggestion or request for clarification, respond to it. Until the get a response to that comment, they're not going to write an answer
 
@JoelSeah Obviously unit testing is bad, and nobody should ever do it.
 
@JerryCoffin Yeah I know. But it kinda is my assignment.
@Jeffrey Hey I re-wrote the question. Is it better now?
 
@JoelSeah (hint: Jerry wasn't serious)
 
@jalf Haha is it? I thought he was serious XD
 
> What is there to predict? The condition is right there and it can only be true or false.
haha
 
4:29 PM
Unit testing is very useful. Not everyone agrees about how many unit tests you should ideally write, but I've yet to hear someone seriously argue that "unit testing is bad"
You have noticed that the two tests use different filenames, right?
 
@jalf Yes both use different file names but even when its the same, it doesn't work.
 
sum= 3137536 - clever. That's kinda obviously not the point of the question. The question is clearly about explaining surprising performance characteristics. I'm inclined to say that the addition of doing std::partition instead of std::sort is valuable. Though the actual question extends to more than just the synthetic benchmark given. — sehe 2 mins ago
 
@JoelSeah try calling the function with an absolute filename instead, jsut to make sure it's not just the working directory tripping you up
 
It's probably best if you remove the "troll" elements of the answer to prevent (understandable) downvoting because of it. (The troll elements would be the obfuscated version as well as the statistics joke :/) — sehe 45 secs ago
 
I'm going to ask a question later if you guys wanna troll me ;)
 
4:34 PM
@jalf yes i just did that. It just gives me the output Ok(0)
 
I'll still up vote it if it's a correct answer
 
@JoelSeah oh wait, so the problem isn't that the test fails, but that it doesn't run the tests?
 
@LightnessRacesinOrbit Schrödingers cat can only be dead or alive, really. Of course it's in the box...!
 
@DeadMG It took me a while to see that the first loop is actually a binary search. Off-topicness aside, it's a reasonable optimization that could be better presented.
 
@Mysticial Agree. I only inferred from what he wrote that it was a binary search, it's certainly not readable as that.
 
4:38 PM
@jalf Well it could be that. But y wouldn't it run the tests?
 
@JoelSeah Bcz spling errrs?
 
Thank you for your response,To be specific let us consider ,i have an enum of type 'a' which is going to be assigned of enum type 'a' and also say of enum type 'b' and 'c' . so my doubt is how can i assign different enum types like b and c to enum type 'a' which is already defined in a particular class that cant be changed. — Venkatesh Domakonda 12 mins ago
lol.
 
@JoelSeah I don't know, but as far as I know, CPPUnit outputs something like Ok (1 test).
That is, the number of test that were run (and which passed), rather than the value of those tests
 
Solutions presented involve unions, void*, variant.
 
@jalf Oh so you mean that Ok(1) means that 1 test succeeded in running instead of the test succeedded?
 
4:40 PM
CppUnit always makes my head hurt though. If you have to use it, then I can't help you much. I'd say look up some samples of how to use the library, because you're probably doing something wrong there, so your tests don't get registered correctly
 
@JerryCoffin I suppose in the future we can probably start nuking all the answers that are "just optimizations" and don't really answer the question. Given that we're already started nuking all the new "copy friendly" answers... Though I think the former is probably self-limiting since there's only so many optimizations that can be done before any new answers start duping existing ones.
 
@JoelSeah well, 1 test ran and succeeded
 
@R.MartinhoFernandes well. those are frequently potent leverage :/ o.O
 
@R.MartinhoFernandes They were the only three I could think of, too.
 
@jalf Of course I was serious! How dare you claim otherwise?
 
4:40 PM
but it says nothing about what value the test returned
 
@jalf lol
@JerryCoffin ssssh
 
@JoelSeah If you have the option, switch to a different test framework IMO (hint, hint: use Catch)
 
Catch seemed prety easy to use
 
@MartinJames Yeah, but if the actual problem is the enums... you don't really need any tricks. Just assign them or cast if they are enum class.
 
@jalf which means Ok(0) is the same as no tests were running when I compile n run the program. This is gonna make my head hurt~
 
4:42 PM
@R.MartinhoFernandes Yeah - the OP added the enum thingy later.
 
@JoelSeah Yep. CppUnit requires you to register test cases, and I can't remember exactly how you do that, so google some usage examples
 
@jalf Nay, I'm stuck with cppunit test. My lecturer is adamant on that zzzz
 
Some recruiter came across my GitHub profile and was "intrigued by [my] JavaScript experience".
 
@Mysticial The number of effective optimizations is undoubtedly limited. The number of possible insane attempts at optimization....there aren't that many hydrogen atoms in the universe.
 
@jalf alright i will do that. Thanks ^^ Ur the MOST helpful here. I think XP
 
4:43 PM
I have literally one repo with JavaScript code, and that's a fork where I mostly removed stuff.
:idontgetit:
 
@JerryCoffin That's definitely true...
 
Helpful is my middle name, as everyone here knows. ;)
 
@CatPlusPlus lol
Toss it.
 
@CatPlusPlus He's a recruiter. To put it nicely, that implies limited reading ability.
 
Then again a Google recruiter liked my homepage that has literally shit all in it.
I really don't get how that works.
 
4:46 PM
@CatPlusPlus Like spam.
 
I'm trying some programs on ideone...anyway I can "name" my programs there?...ideone only wants to save it as that six alphabet code ...
 
@JoelSeah by the way, as a little sanity check, you can always try running your program without CppUnit (just a main function calling your code and prints out the return value of the function). Or alternatively, run CppUnit with a completely trivial test case (CPPUNIT_ASSERT(true)). That can help you narrow down the problem
 
Well, the origin was legit, unless spammers use Google internal mail servers now.
 
@jalf I looked up some examples n i realised that I missed this line of code in my test cpp.

`CPPUNIT_TEST_SUITE_REGISTRATION (testclassname);`
 
@jalf "Hardly" would be the first :3 (jk)
 
4:47 PM
Hello All
 
@jalf I looked up some examples n i realised that I missed this line of code in my test cpp.

`CPPUNIT_TEST_SUITE_REGISTRATION (testclassname);`
 
dude wtf.
 
@jalf You mind doing the honor of answering my question for me? XD
 
@CatPlusPlus I mean, it works under the same principle: spam everyone, and some sucker will fall for it.
 
Chat's duplication filtering is really good.
 
4:48 PM
@CatPlusPlus they are good at security too
 
@JoelSeah You can answer it yourself!
 
@BartekBanachewicz I'm also incredibly conciliatory and not at all confrontational or argumentative. :)
 
@jalf Fuck you.
5
 
@JoelSeah Nah, go ahead and answer it yourself. That is perfectly allowed. You found the answer yourself. I just helped you narrow the problem down
@R.MartinhoFernandes that really hurts my feelings
 
Hello, I recently started to lean C++, and I was doing a simple ex... , to convert a string to upper case, it works; however I forgot to include <cctype> header, how come it works anyway? Can anyone please give me an hint?
 
4:51 PM
@haar you were doing your ex?
 
Sounds fun.
 
People really don't know how to sever anymore these days.
 
@R.MartinhoFernandes Well i wanted jalf to answer coz he helped me narrow down the issue.
@jalf thanks^^
 
@haar You got "unlucky"! Certain standard library headers will, practically, include other standard library headers for their own internal purposes. This "carries over". However, you shouldn't rely on it as it can change between compilers and versions. So, always use the headers you need.
 
sorry exercise
 
4:52 PM
@JoelSeah don't worry about it. Helping people is fun as long as they're not being entitled dicks about it ;)
 
@R.MartinhoFernandes: Yours was better.
 
@haar hah, yeah, banging your ex is a pretty sorry kind of exercise, I guess... :p
 
lol, the meta question about the croissants question has more (net) votes than the question itself.
 
Oh man, you're making this way too easy
 
@Mysticial #urlplz
 
4:53 PM
56
Q: Dealing with "Find out who's going to buy the croissants"

Mark BoothOn Stack Overflow at the moment, there is a popular question which is currently high in the Hot Questions feed: Find out who's going to buy the croissants So far it has been closed twice (once by the community and a moderator and once by a moderator alone) but re-opened twice by the community. I...

 
the only heasers I have included are <string> and <iostream>
 
@Mysticial The cro-- what?
 
Ell
armed teachers? The US is crazy
 
so basically one of them include <cctype> as well?
 
Ell
4:54 PM
Nobody needs to be armed!
Apart from the army
 
Ugh, I joined some kind of C++ programmers group on LinkedIn and now I'm getting stupid spam mails about people asking dumb questions all the time
 
thanks guys..
 
@Ell but how else are they going to shoot students who get bad grades?!
 
Ell
Heh :L
I'm not sure if I should laugh at that
 
bye bye alll
 
4:56 PM
I want croissants :(
 
@jalf Oh my.
@Ell If it didn't involve dead kids, I would be eagerly awaiting for the next tragedy caused by an accidental weapon discharge in a class room.
@Ell You say that because you get bad grades!
 

« first day (1012 days earlier)      last day (3940 days later) »