« first day (887 days earlier)      last day (4069 days later) » 

user142019
10:00 PM
My screen is sticky as fuck.
 
Hm...
 
user142019
FUCK COCA-COLA.
 
@Zoidberg Then stop coming all over it.
 
user142019
 
Fix my account day 2.
 
10:04 PM
I don't know what to say...
 
user142019
Then shut up.
 
In C++11, you can now assign class members at the spot of declaration, correct?
 
user142019
Initialize.
 
Yes.
 
std::function is used for storage, right?
 
Xeo
10:09 PM
For runtime-polymorphic storage
 
Does the initialize function take the place of the constructor?
 
Xeo
compile-time polymorphic can just leverage templates all the way through
@Pawnguy7 What?
 
@Pawnguy7 What.
 
@Pawnguy7 What?
 
user142019
@Pawnguy7 What!
 
10:10 PM
watno
also, Ook
 
user142019
Ook! > Wide
 
Xeo
> This is a bad proposal, do not do it like that!
How helpful!
 
@Xeo linkage?
 
user142019
lol
 
10:11 PM
The... what is the function called that is not the constructor, destructor, or assignment operator?
 
lol
@Pawnguy7 Wat
 
@Pawnguy7 Method?
 
Sure.
C++ automatically makes four if you do nothing.
I forget what it is called though.
 
user142019
> it has to be wrapped (e.g. with std::ref or std::ref).
 
user142019
lol
 
10:13 PM
@DogPlusPlus "Method" is not well defined in C++.
 
user142019
@Pawnguy7 member function that is not an assignment operator.
 
@Griwes I know, we're just trying to guess what he's trying to ask. :D
 
Like, if I did this, it would be called.
 
Did what? xd
 
Item item = otherItem
 
10:15 PM
@Pawnguy7 Copy ctor?
 
That might be it, yes.
 
...
 
Anyway - does this take the place of the normal ctor?
 
user142019
@Griwes That is a constructor. T_T /cc @Pawnguy7
 
@Pawnguy7 What.
@Pawnguy7 Seriously, grab a book.
 
10:16 PM
Oh, gawd.
 
I read it in a book.. once. I forgot.
 
-1
Q: stackoverflow a shitty community of nazi pricks

user1930591stackoverflow a shitty community of nazi pricks I WILL DO ALL I CAN TO BOYCOT THIS POS SITE mods like flexo can kiss my a$$ how about a real discussion about the policies instead of hiding behind your moderation abililty STACKOVERFLOW IS THE WORST develoment Q/A site with the worst moderators

 
@Zoidberg Thank you, captain obvious.
 
Concerning tuple iteration: is this recursive solution in some way inferior to sequence generation (using seq, gens, etc...)? Or is it just a matter of preference?
 
@Pawnguy7 Then REREAD IT, for fucks sake.
 
10:16 PM
AHAHAHAHAHAHAH
 
I no longer have it...
 
2
A: stackoverflow a shitty community of nazi pricks

DeadMGObviously, I fully agree with every word you have written. I personally saw Jeff and Joel doing Nazi salutes.

2
 
user142019
@Mysticial downvoted and flagged.
 
Xeo
@StackedCrooked The sequence version also uses recursion, but only for the generation itself
 
Does that make it better?
I find sequence generation confusing. Somehow the posted solution fits my brains better.
Dammit, I should train myself to use sequences instead of taking an easier path. I'm a wuss.
 
10:20 PM
f UUUUUUUUUUUUUU — user1930591 17 secs ago
 
user142019
FUUUUUUUUUUUUUU I JUST WANTED TO LINK THAT YOU STUPID @Mysticial. :'(
 
user142019
Now I'm crying.
 
@Pawnguy7 Then buy one, Goddammit.
 
awwwwwwwww
removed
I was still fluffing up my answer
 
I love fluffy answers.
 
10:21 PM
That was entertaining
 
user142019
Okay.
 
user142019
 
user142019
I think I will do just fine with the 2cl of coke I spilled.
 
@Griwes Would it kill you to be a bit polite? Not everybody buys things, you know...
 
@BoltClock It was gonna get better, I was describing in detail how I had infiltrated the evil SO Nazi Headquarters, but barely escaped after you had seen me, so you were hunting me down.
 
10:22 PM
If you don't want to answer, don't answer.
 
user142019
@Pawnguy7 TPB
 
@Pawnguy7 Then fucking download one. Seriously, we won't tutor you through the basics of C++, when there are books that can do it just fine.
@DeadMG What a shameless self plug.
 
user142019
Btw @DeadMG.
 
meh
 
user142019
10:23 PM
I linked my friend to your tuts and he liked them.
 
why should I be ashamed of linking excellent reading material teaching C++ to those who don't know C++ and want teaching material?
@Zoidberg I have more to put up, but since I've been working so much on Wide, there hasn't been much time.
 
@DeadMG I was trolling, you know.
 
then gtfo
 
user142019
@DeadMG you should make it into a book and sell it. :3
 
10:24 PM
@DeadMG <3
 
@Zoidberg That was it's original intention.
 
@Griwes There is a nicer way to say that, you know.
 
@Pawnguy7 But we are on teh interwebz!
 
Irrelevant.
 
user142019
@DeadMG it will earn you a billion bucks!
 
10:25 PM
ah
 
user142019
Your writing style is funny at times.
 
I need to write more about Unicode, a bunch more about concurrency, and I also have a section about hardware/memory
to start with
@Zoidberg Any specific examples?
 
Is "Nazi" supposed to be like the worst possible insult or something? We get that all the time
 
@LucDanton Is that a general statement or does it only apply to "unpacking tuple into function arguments"? (i.e. is this inferior in some way to a solution that uses sequence generation.)
 
@BoltClock Eh, I get the feeling that it used to be a lot more serious, but ever since Godwin's Law and the phrase "Grammar Nazi", they've become almost comic-book-villainy style bad.
 
10:28 PM
Plausible
 
wait
you get called a Nazi a lot?
 
@BartekBanachewicz, what were you saying of a screencast?
 
@DeadMG Maybe casperOne. But definitely not Boltclock...
Aside from that one instance where some dude called him out for his age... haha
 
user142019
> Hungarian Notation is a particularly nasty form of evil.
 
@BoltClock The most scary insult today is to be called a homophobic or sexist, or anything that makes you politically incorrect person.
 
10:31 PM
I just opened a file I wrote last night and found delete new int;... not sure what was going on there.
 
@Zoidberg So reverse Polish notation is a particularly wonderful form of good!
 
user142019
@sftrabbit badness
 
@Mysticial lol, I don't know if I've ever been called one. The rest of the mods certainly have
 
@StackedCrooked Or to be accused of talking about dongles and/or forking in public.
@BoltClock Your'e a Nazi. There, now you won't feel like the other mods might be talking about you behind your back because you might not have been called a Nazi! :-)
 
@JerryCoffin Fantastic, thanks.
 
10:35 PM
@BoltClock No problem at all, I assure you.
 
@sftrabbit Obviously, you ran pretty late.
 
Xeo
lol
CPP: Macros are Magic
 
1
Q: optimizing code for various C/C++ compilers

JasonFor those that develop software for multiple platforms, how do you handle the potential that compilers might do certain things better than other compilers. Say you develop for OS X, Windows, Linux and you are using Clang/LLVM, VS and GCC. So if someone compiles your app on OS X and they are usi...

^^ any idea why that's getting close votes?
Did I overlook something?
 
10:48 PM
The questions sound like they're seeking anecdotal answers (to the people close voting anyway)
 
user142019
 
@BoltClock You have a point there...
 
@Mysticial I have the impression that performance-related questions are considered offensive by some.
 
@StackedCrooked I have the same feeling too...
Unless they are written in a very specific way...
 
Esp questions about whether X or Y is faster invokes angry responses.
 
10:52 PM
It's only the ones where there is proof that X is faster than Y do they actually work.
 
At my job my colleague frowns if he sees if (!x) return; because he thinks it will be slow due to branch prediction fail. (Meanwhile he's using dynamic dispatch all over the place, unnecessarily.)
 
@StackedCrooked Those get an instant downvote from me
 
@BoltClock And yet some of them net hundreds of upvotes...
 
Xeo
@Mysticial s/hundreds/thousands/
 
@StackedCrooked lol...
 
10:56 PM
Another one: void foo(char c); // colleague: you should pass by reference! .
 
@Xeo Not thousands. I don't think any "Is X faster than Y?" have gotten over 1k.
900 is the highest I've seen.
@StackedCrooked nice...
 
Xeo
@Mysticial Does "Why is (processing a sorted array) faster than (an unsorted array)?" ring any bells? :)
Oh, wait, you had no "why"
Nvm
 
That's X and X' :P
 
@Xeo That's "Why is X faster than Y?".
If it was an is, it'd probably be downvoted to like -5 and then deleted.
 
Ell
People call me a homosexual homophobic dD
 
11:00 PM
Here's the most upvoted is-type performance question:
533
Q: Is < faster than <=?

Viniyo ShoutaI'm reading a book where the author says that if( a < 901 ) is faster than if( a <= 900 ). Not exactly as in this simple example, but there are slight performance changes on loop complex code. I suppose this has to do something with generated machine code in case it's even true.

Closed with a delete vote... geez...
 
Lol. It's perfectly answerable and many people learned from this.
If you ask a question which is a duplicate of a deleted question, does it still count as a duplicate?
 
@StackedCrooked Doubt it. Since you can't pick a deleted question as a dupe target.
 
@Ell ...and you're allergic to your own skin (or your own blood?)
@StackedCrooked Hmm...I wonder if it wouldn't make more sense for votes to close to be a percentage of up-votes instead of a fixed number (and probably similar with votes to delete).
 
@JerryCoffin That would certainly make it more painful.
20% muahah
 
so the real question is
what Wide feature should I implement next
 
11:06 PM
On the plus side: it gets cheaper every time.
@DeadMG You should aim for a minimal working version that people can toy with.
 
@DeadMG does something along the lines of cin << name; cout >> name; work yet?
 
If you have a C++ variable like auto idk = "idk the type"; what is the type? What if I accidentally used visual studios?
 
@JerryCoffin close votes also age. So it gets trickier...
 
@MooingDuck I showcased that about two weeks ago.
 
@DeadMG I saw output, I missed input
 
11:07 PM
@StackedCrooked Well, the minimal working version would probably require... destructors, exceptions, function arguments, your own types with all members, and all the usual operators/types.
 
@DeadMG I'd basically find a programming tutorial and make the example programs work one by one. Gives you a mostly arbitrary order of working up.
 
destructors and exceptions I will look at last.
they are likely to be the nasties
 
@Mikhail I sometimes use this trick to figure out the type.
 
@Mikhail const char*.
 
@DeadMG Isn't it const char[13]?
 
11:10 PM
nah
 
@Mikhail I don't understand your question. But if you enter auto idk = "Idk the type"; in visual studio, then the type of idk is.... char[13] I think
@StackedCrooked definitely not, auto copies, so (A) the const would be dropped, or (B) it decays to pointer.
 
0
Q: Turbo C Linker Error

Joe PerksI know this is a long shot but here it goes. I have to use turbo C in windows xp for a project in an operation systems class, using the language C (not C++). For hours I have tried to fix an issue where I keep getting linker errors. The problem is that I am trying to include a header file in m...

^^ AHHH! Turbo C and Win XP!!!
Social Engineering ProTip: if you put "Turbo C" at the end of your question, you will at least have a chance someone will indeed read the question. — H2CO3 22 secs ago
 
@MooingDuck sometimes the type becomes const wchar* or some other nonsense.. But thanks for the help guys
 
@MooingDuck Such fury to prove me wrong :)
 
11:13 PM
You need to (a) use include guards and (b) stop declaring your variables in headers - simply define them. We can help more if we see the actual code - inconvenient, I know, but solar flares are interfering with our crystal balls today. — Nik Bougalis 56 secs ago
 
@StackedCrooked no wait, that adds a reference. hybrid: coliru.stacked-crooked.com/…
@Mikhail no it doesn't. It could only be wchar_t* if the string was L"blah". No L: no wchar_t.
 
11:31 PM
@Pawnguy7 I have to find it
Turbo pwnage
welp lounge died again
If I was telkitty I would post an obcene image or possibly 10 of them
@Pawnguy7 found it!
wow
I totally forgot how cool colorscheme I had in VS2010
I have to recreate it
oh, it's in SDL :/
it was an uni project that's why
 
11:48 PM
@Mysticial, accept all of them. Twice. — Anthony Pegram 31 secs ago
^^ lol
 
Made me think of CatPlusPlus for some obscure reason
 
does gdb have the capability to "insert" code into a program I'm debugging?
 
@BartekBanachewicz it always dies off about this time of day
 
@BartekBanachewicz THE LOUNGE NEVER DIES
it always comes back
man, I've barely been awake for 8 hours and I'm so fucking tired
 
11:56 PM
I have to tweak it a bit more
but totally beats the default one
I should've done it earlier
 
looks like like the VS11 one
 
Well I've added the things that are white by default
it supports a lot of stuff
differentiation between variables/functions, static/global/member
etc.
 

« first day (887 days earlier)      last day (4069 days later) »