« first day (683 days earlier)      last day (4256 days later) » 

6:08 PM
This is serious.
 
ugh
 
LOL
this is going to take a while
 
-12
Q: Why people are convinced (wrongly) that productivity while using C#, Java is better than (modern) C++?

There is nothing we can doWhy people are convinced (wrongly) that productivity while using C#, Java is better than (modern) C++? I mean, I did research lately and not only found that productivity is in most cases identical (C++ provides identical or higher level of abstraction to C# or Java), but there are many cases wher...

 
deleted by Andrew Whitaker, R. Martinho Fernandes, Hovercraft Full Of Eels 5 secs ago
 
@MooingDuck Why so?
 
6:14 PM
@Chimera misread
 
@Chimera Use Ideone. We taught you better.
 
Xeo
> Why are you convinced that you're right and they're not? (I would never work in a language that allowed segfaults, but that's just me.) – Louis Wasserman 2 mins ago
such a dumb comment
 
@Drise It's really slow... I tried it first... but fell asleep waiting for it to load.
 
Xeo
@Drise Wrong
 
@Xeo Silly 10K people
 
Xeo
6:16 PM
 
@Xeo Yes.
 
Xeo
Has GCC 4.7.1 and Boost
 
@Chimera why?
 
@Drise > Why are you convinced that you're right and they're not? (I would never work in a language that allowed segfaults, but that's just me.) – Louis Wasserman 3 mins ago
 
Xeo
@Drise Better?
 
6:17 PM
@MooingDuck Why what? I missed something apparently.
 
@Mysticial I was tempted to comment "You should publish your research so we can laugh at it."
 
@Chimera why are you calculating PI in that way?
 
@R.MartinhoFernandes Do et.
 
Xeo
@Drise The question is deleted
So no can do
 
@Chimera Ask @Mysticial How to calculate pi.
3
 
Xeo
6:18 PM
hrhrhr
 
@MooingDuck Why did I code that up? I read the thread about 20 Controversial Programming opinions. That was a question some interviewers give.. Use that formula and wrote the code.. I know it's very inefficient
 
^ answer atan(1)*4
 
@Drise I know it's inefficient.
 
@Chimera I know why you did it. However, it would be hilarious to have Mystical go to that guy's interview.
 
Just use a constant.
 
6:20 PM
@Drise LOL no kidding...
 
@Chimera By my napkin estimate, on a 4GHz processor it'd finish in ~28077 years
 
@Drise How so. Do you think Mysticial has Ramanujan's identities and approximation series memorised? I wouldn't expect him to
 
@MooingDuck Maybe I'll just do the loop ULONG_MAX times.
 
Still too much.
 
6:20 PM
or even ULONG_MAX/2
 
@sehe I would probably retort (if I was Mystical) with how inefficient it would to calculate pi in such a way.
 
@Chimera how about 100?
 
@Chimera well now I calculate that as taking 8 seconds, so my math is wong
 
@NikiC doesn't converge enough in 100 loops to be accurate
 
@Drise True dat. And how it introduces unnecessary floating point artefacts (i.e. the max accuracy attained in double could be higher)
 
6:22 PM
@MooingDuck Your English, on the other hand, is wrong. :P
 
hehe
 
I would do it just to toy with the guy. And then finish with, "Btw, I've calculated pi to 10 trillion digits, and hold the world record."
 
@Drise lol
 
@Drise Nah, I'd be like, "Did you seriously just ask me how to compute Pi in an interview?"
 
Oh, and I can tell you the last 5 digits or so of 10 million, 100 million, and a few other sets.
Oh, speak of the devil.
@Mysticial But seriously, I was astounded when he said calculate the area of a circle in psuedo-code, they still couldn't.
 
6:26 PM
@Mysticial Remember, always bring your 20 HDDs that contain the digits in PI that you calculated to that interview
@Drise Yeah, no kidding...
 
@Chimera Hang on a sec, got somewhere I could plug these in to?
 
@Drise lol!
 
"Sir, why did you bring... (visually counts and estimates) 20 hard drives to this interview?"
 
just print them and attach them to your resume
 
LOL!
send resume via heavy freight
 
6:29 PM
We don't mention printers those infernal machines here.
 
PC LOAD LETTER wtf!
 
@Drise: we both just did
 
@Chimera Hehe.
 
@R.MartinhoFernandes I love that movie.
 
Ironic that the robot chooses to speak now:
 
6:31 PM
@Chimera Movie?
That is from reality.
 
@R.MartinhoFernandes Office Space
@R.MartinhoFernandes :-)
 
@Drise I just got in a fight with my printer yesterday. I couldn't cancel my print job because the printer had no paper.
 
HAHAHA
 
@MooingDuck Did it PC LOAD LETTER you?
 
@R.MartinhoFernandes it's a newer printer, so I had to go to the printer itself, and it's little screen says "OUT OF PAPER". So I put in paper, hit ok, walk back to the computer, and see that now my print job has finally canceled.
 
6:34 PM
> it's a newer printer, so I had to go to the printer itself
What?
 
@Drise it's got features!
 
I know you might laugh, but for several years I've owned Brother laser printers, never have had a problem.
 
I thought PC LOAD LETTER was a code returned to the computer. Further research shows that was a mistaken belief.
 
 
> This message is also displayed in the game Doom RPG, on a computer terminal next to a broken door.[5] In the MMORPG The Matrix Online, the printers in the office structures also displayed the "PC LOAD LETTER" message.[citation needed] Also on turntable.fm, a social music listening site, when a song is loading the "PC LOAD LETTER" message shows up.
 
6:36 PM
 
I never needed printers for non-school things.
 
I believe these two apply.
 
That said, school is still retarded because they want you to print stuff.
 
@daknøk heh, I was always confused by my CS prof who required a printed copy of all homework.
 
@daknøk Most university stuff I've done is all electronic.
 
6:38 PM
The only thing I would use paper for is to cut those pieces of thin skin between the fingers of people who want me to print things on paper.
And their mouths.
 
hello
 
@daknøk: tell the taxman that
 
i was hoping if someone could give me some direction about a linker error i was getting
 
6:39 PM
maybe he'd stop harassing me with "send us this paper" and what not
 
I will cut his fingers anyway.
 
@user245823 "Undefined reference" or "duplicate reference"?
 
So he cannot steal my money.
 
@user245823 Does it involve templates?
 
@user245823 did you try stackoverflow.com?
 
6:39 PM
yea
 
@MooingDuck: what's that?
 
7
A: "error LNK2019: unresolved external symbol" when using templates

DriseTemplates should be implemented in the header. Method.h template<typename type> void Method(Model<type>* sys){ /*Your code here*/ }; See also: http://stackoverflow.com/a/495056/868546 From Mark Ransom: In the .cpp file, the compiler can't guess what the template parameter wil...

 
so i had this project
 
See
 
Linker errors… Is your code written in C++? Answer: not a chance.
 
6:40 PM
working with no issues with /mt and MFC with static lib option
however i am trying to get it to work with /md MFC with shared dll option
 
@user245823 oh, one of those linker problems
 
please do not
talk in
 
yea
 
seperate lines.
it bothers
me quite
 
teh famous LNK 2005 already defined msvcprt.lib
 
6:40 PM
a lot
 
errors
 
@user245823 duplicate definition of ::operator new?
 
Also, please don't use internet slang, such as teh, plox, or plz.
 
Asynchronous I/O code is quite fugly.
 
hmm not quite.
 
6:42 PM
I feel another fish coming...
 
@user245823 then no, we can't help you unless you tell us what the problem is.
 
@R.MartinhoFernandes The code that implements the async I/O or the code that uses it?
 
yea i will in a sec
 
(Assuming you use an async I/O library.)
 
@Drise: why did you copy and paste the answer below yours into your own? o.O, oh nvm
 
6:42 PM
@daknøk My code.
 
@netcoder 1) I asked. 2) He said yes. 3)It provided another facet to my answer.
 
@Drise: yeah just saw that
 
Ah you are a robot. You just generate the code and put everything on a single line, with UUIDs as variable names and no redundant whitespace. :P
 
Xeo
@Drise teh fuck? :P
 
It's sad he only got +1, from me, because he is quite right.
 
6:43 PM
@daknøk doesn't need UUIDs, merely a sequence of non-keywords. a, b, c...z, aa, ab...
 
@MooingDuck easiest. :P A counter will do, too.
var0, var1, var2, …
 
@daknøk No really, do you know what CPS is?
 
Nope.
 
It's a similar kind of ugly.
 
6:44 PM
At least, not until you expand the acronym.
 
@daknøk wait, wouldn't he simply use machine code?
 
@EtiennedeMartel Is it trolling?
 
@daknøk child protective services!
 
@MooingDuck not portable enough for putting it on BitBucket.
@MooingDuck child porn services?
 
@daknøk oooooh
 
6:45 PM
@daknøk Continuation Passing Style
 
@R.MartinhoFernandes Read the damn thing.
 
@EtiennedeMartel Later :P
 
i am going to post
the error message not spaming
 
@R.MartinhoFernandes ah.
 
> He said the worst thing he ever did was vandalise the Facebook memorial page of a young girl who had committed suicide. "I wrote, 'How's it hanging guys'."
 
6:45 PM
@user245823 sounds good
 
just a warding
 
FP jargon.
 
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in Tflib.lib(cryptlib.obj)
1>msvcprt.lib(MSVCP90.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::a
 
@user245823 no, post on stackoverflow.com instead
 
oh ok
 
6:46 PM
@user245823 all linked libraries have to be linked against static MFC, or all against DLL, can't mix and match
 
When people ask about linker errors in chat. We usually link them to stackoverflow.com.
 
@user245823 So, you've read the CoC, and you still do that?
 
When people ask in chat, we usually link them to stackoverflow.com.
 
i guess could you point to me where u see this? sorry been looking at this for awh iel
 
lol a when keyword.
when (foo) {
  // do stuff when foo becomes true
}
 
6:48 PM
Looks like come from.
 
xD
I am wondering if it has any uses.
 
@user245823 sure: stackoverflow.com
 
Maybe with locks.
when (lock.available()) {
    // meh
}
// but mutices already block when calling .lock, AFAIK.
 
Xeo
@Mysticial When you mistype the link, does that also count as a "linker error" and is subject to linking to Stack Overflow?
 
6:49 PM
Gosh, "mutices"? WTF are you smoking.
 
@daknøk Might be useful with futures.
 
@R.MartinhoFernandes oxygen.
The oxygen makes me ztoned.
Oh English. You so inconsistent with your indices and mutexes.
lol regices.
when is trivial to implement with a spinlock.
 
Wut?
It sounds far from trivial to me.
 
Oh no wait. :P
 
Like, it needs to trap all memory writes.
 
6:52 PM
With a macro and a spinlock. xD
 
And forbid several optimizations.
 
Someone bin that please
 
#define when(expr) while (!expr);
// probably sucks
 
Unless I'm missing something about what it is really supposed to do.
 
ok i posted it
 
6:52 PM
@Drise Bin what?
 
@R.MartinhoFernandes execute the statement when the expression becomes true.
Once.
 
@daknøk That's not what your implementation does.
 
mooing what else do i need to do? is there a post number?
 
Your implementation blocks until it is true.
 
The specification I gave may be too ambiguous.
Should it happen on the same thread or on another thread?
 
6:55 PM
How should I know.
 
That’s what I’m saying.
1 min ago, by daknøk
The specification I gave may be too ambiguous.
I am going to fork clang to implement Hell++.
 
Good luck. You won't need it.
 
Infinite loop without side effects? Send SIGKILL to random process!
@R.MartinhoFernandes But it iz fun.
 

« first day (683 days earlier)      last day (4256 days later) »