« first day (613 days earlier)      last day (4350 days later) » 

9:00 AM
You can try to google help if you want, though you won't find this particular problem because it's one I've invented myself
 
uhoh
 
@Neil wild assumption there
 
@Neil Let's see it then.
 
¬_¬ who stared that? he just mumbled a noise
 
calm down boy
 
9:01 AM
@thecoshman Who cares? 48 more stars to go until 10,000 stars!
 
A little girl is at the top of a flight of steps. She can either choose to step one stair or skip one. If there are 10 steps, how many ways can she descend the staircase?
 
do you really want to most recent 50 stars to be pure garbage, if anything, you should be more reserved with your stars
2
 
@thecoshman +1
 
@CatPlusPlus No
 
9:02 AM
@Neil that you did not invent on your own
 
@thecoshman Pure garbage is kind of on par for Lounge<C++>.
 
it's quite a classic brainteaser in ridiculous interviews
 
@sehe Oh gawd. I was so afraid of that.
 
You know it's a (bad) joke, no?
 
@KillianDS I did, though I'm sure there are variations
 
9:03 AM
I don't like combinatorics.
It's silly and boring.
 
It's a bin packing variant.
 
@Neil: I was expecting a more interesting math problem. :-/
 
But assuming I get the data exchange via shared memory working. I still do not have any communication between the two processes, I need to tell one process to read an updated version of some object in the shared memory. How can I do this?
 
@Insilico Sorry :/
 
@CatPlusPlus Silly and boring?
 
9:05 AM
Yes. Mostly boring. And guessing.
 
@Nils Global mutexes and events. OS?
 
@Neil: Don't get me wrong, I was expecting a more interesting math problem only because you made it seem more interesting than it actually was (to me that is). :-P
 
@sehe I always tend so say “mutices” because of “indices”. Oh the inconsistency.
 
@Insilico Well I find such things interesting. It's not a simple combinatorics problem
 
9:06 AM
6 mins ago, by sehe
uhoh
 
If it were, it would be 2 pick 10 or something, but that isn't the case
 
Index is (from) latin. Mutex is (from) hell
(Mutual Exclusion) so latin declination doesn't count
 
3 mins ago, by R. Martinho Fernandes
It's a bin packing variant.
 
I like problems like this because it almost seems like it would be a cinch to solve at first glance
 
@sehe So, mutexen?
 
9:07 AM
@RMartinhoFernandes Cat said it was combinatorics, not you.
 
like emacsen -_-
 
@Neil How about problems that look really difficult but are really easy to solve?
 
@RMartinhoFernandes Better. Mutex-es to disambiguate and iglify
 
the new Savage Chickens is a bit slimy
 
English language y u no consistent.
 
9:08 AM
@RadekSlupik it's more fun this way :D
 
@thecoshman Hey, no onebox. Amaizing
 
Especially the pronunciation.
 
@Insilico I can do that too
 
@Neil there is even a question about it on SO.
5
Q: Finding all paths down stairs?

Josh MorrisonGiven a staircase with N steps, you can go up with 1 or 2 steps each time. Output all possible way you go from bottom to top. For example: N = 3 Output : 1 1 1 1 2 2 1 When interviewing. I just said dynamic programming. S(n) = S(n-1) +1 or S(n) = S(n-1) +2 But I didn't give a good code ...

 
@sehe it needs the added suspense :P
 
9:09 AM
@RadekSlupik Because the English language is obviously a well-thought out language developed over many, many years.
 
@RadekSlupik The pronunciation is ok, the spelling though...
 
@RadekSlupik really? punctuation is the easy part if you ask me
 
@KillianDS Ah, well, if you found it on the internet, my pardon. Clearly I didn't think it up.
 
@thecoshman Dyslexia FTW
 
@Insilico the problem is that it has been developed over hundreds of years
@sehe suspected dyslexia FTFY :P
 
9:10 AM
@Neil Not sure if trolling or playing hurt
 
I actually didn't know there was a question about it, though it still doesn't answer the question
 
@Neil sigh, have it your way then, ignore you go
 
The good news about buying electronic components online: there's 3,320,542 different parts I can possibly buy.
 
Good afternoooon!
 
The bad news about buying electronic components online: there's 3,320,542 different parts I can possibly buy.
@Serge Good afternoon!
 
9:12 AM
Buy all the things.
 
Or, really, its 4:00 am. But close enough, right?
@Insilico =)
 
Don't really see what I did wrong, actually
 
@Serge It's 4:00 AM somewhere.
 
It's 4:00 am where I am =)
 
Buy all the things! :)
Buy all the things. :(
 
9:13 AM
Anybody here cut ferrite cores before, by any chance?
 
Just been reading some fun / interesting questions...
 
@Serge Guessed country: Canada
 
like the one involving the --> operator
 
That operator doesn't exist (nitpick)
 
@Cicada : Texas.
 
9:14 AM
@Serge you mean ->
 
@Cicada That was the joke XD
 
@Cicada But the question about it does /cc @thecoshman
 
1224
Q: What is the name of this operator: "-->"?

GManNickG Moderator Note: Please think carefully before providing another answer to this question. If your answer duplicates an existing answer, it will very likely be removed. After reading "Hidden Features and Dark Corners of C++/STL" on comp.lang.c++.moderated, I was completely surprised that ...

 
@thecoshman He means the "goes to" operator.
Texas is a country?
 
Is this becoming some sort of C++ inside joke?
 
9:14 AM
@Serge meh
 
@RMartinhoFernandes Yes. Or something like that (jk).
 
@RMartinhoFernandes Mercins have an inflated sense of self worth
 
@Serge Eh. It's just an interesting side effect of the rules of the C++ language.
 
@Insilico Hehe I know, but still! It's fun to tease/imagine =)
 
It's not like there's a section in the C++ standard that actually specifies a "goes to" operator. :-P
 
9:16 AM
Then we must write one!
 
@Serge The C++ standard has an interesting gem in it
 
Oh?
Where?
 
@Serge: Lemme find it
 
=D Awesome!
 
Oh, I guessed Canada because you have a French name. Whatever.
 
9:17 AM
§14.7.3p7
> When writing a specialization, be careful about its location; or to make it compile will be such a trial as to kindle its self-immolation.
 
Oh, Serge is my nickname =)
 
There's even an index entry for "immolation, self"
 
@RMartinhoFernandes Wat
 
Could have been Louisiana
 
The full quote:
 
9:17 AM
@RMartinhoFernandes Which version!?
 
14.7.3/7 Explicit specialization [temp.expl.spec]
 
@RMartinhoFernandes LOL
 
am I wrong in reading 'Serge' as in a sudden serge of water down the pipes
 
@Serge fork from git://github.com/cplusplus/draft.git
 
9:18 AM
> The placement of explicit specialization declarations for function templates, class templates, member functions of class templates, static data members of class templates, member classes of class templates, member class templates of class templates, member function templates of class templates, member functions of member templates of class templates, member functions of member templates of ...
 
@thecoshman nah, you can pronounce it however you wish
 
> non-template classes, member function templates of member classes of class templates, etc., and the placement of partial specialization declarations of class templates, member class templates of non-template classes, member class templates of class templates, etc., can affect whether a program is well-formed according to the relative positioning of the explicit specialization declarations and their points of instantiation in the translation unit as specified above and below.
 
@sehe why?
 
> When writing a specialization, be careful about its location; or to make it compile will be such a trial as to kindle its self-immolation.
 
3 mins ago, by Serge
Then we must write one!
 
9:19 AM
@Serge Flapper
 
It's a pity they dropped the radioactive bit.
 
When you read the PDF of the C++ standard it's literally this huge monolithic block of text
 
Oh, Thanks! =)
 
@Insilico Only minutes late
 
@sehe I wanted to include the whole thing. :-/
 
9:20 AM
Speaking of specialization, I made the mistake earlier of attempting to specialize a struct in a derived class, who's base class had a templated struct.
 
@Insilico (a) I don't think it is monolithic, (b) if you don't read it, it is still the same text
 
The compiler did not say very nice things to me =<
 
3 mins ago, by R. Martinho Fernandes
§14.7.3p7
Did you see it^
 
@sehe Well, it probably should've been a list instead
 
It?
 
9:20 AM
@Serge did you remember to set the --friendly flag?
 
@sehe Yes.
 
the who what tag?!
 
@Insilico Wokay :)
 
@sehe So instead of a paragraph it could've been like:
 
oh
>_<
I am and idiot
2
 
9:21 AM
The placement of
* explicit specialization declarations for function templates,
* class templates,
* member functions of class templates,
...
That's what I meant by "monolithic"
 
@Insilico Oh never mind. I see, you were referring to a paragraph, instead of the PDF (which is what you said)
 
@sehe: Oops. Yes, I'm referring to §14.7.3p7.
 
Now that we're talking about templates... would anyone mind giving a quick look over a question I made earlier?
 
@Serge Depends. Let's see it.
 
@Insilico did you see this one:
May 31 at 20:31, by R. Martinho Fernandes
I'm sad footnote 341 (page 1107) from this draft didn't make it to the final document :(
 
9:24 AM
> Write down your password and be sure to keep the sheet of paper in a safe place - freenode.net FaQ
 
4
Q: How to count the number of CRTP subclasses of a template class?

SergeDoes anyone know of a method to use CRTP to count the number of subclasses of an object? Suppose we had a setup similar to the following one: template <typename T> class Object { .... }; const unsigned int ObjectSubClassCount = ...; class Subobject : public Object<SubObjec...

 
really?
 
@RMartinhoFernandes Yes, I did see the "radioactive" footnote.
 
In this question, I felt like attempting to pretend to be smart
 
@Serge What if I define a subclass after you use the count? What if I define a subclass in another translation unit?
What you're after is just not possible without severe constraints.
 
9:26 AM
@Serge perhaps of interest
12
Q: Does C++ support compile-time counters?

PotatoswatterFor the purpose of introspection, sometimes I've wanted to automatically assign serial numbers to types, or something similar. Unfortunately, template metaprogramming is essentially a functional language, and as such lacks global variables or modifiable state which would implement such a counter...

 
Was worth a shot... I guess.
ah, well
@RMartinhoFernandes @sehe Thanks, both of you
 
ugh, listening to two coworkers discuss whether a class should be a singleton
 
@jalf Tell them yes, it should. Job security, you know.
 
@jalf eww =(
 
@jalf convince them it should be a singleton manager!
 
9:36 AM
@KillianDS A singleton factory manager builder.
 
I don't want to get too involved. They're working on a different project than me, and the other anti-singleton guy isn't here today
 
class <insert name here>FactoryBuilderManagerSingleton { ... };
 
All of these "Design" terms seem utterly abused.
 
@jalf Wait, there are only two anti-singleton guys around?
 
9:41 AM
@Neil Job security? As in the certainty you'd have to look for another job in order to survive?
@RMartinhoFernandes Yeah at our place we are good on anti singleton guys. However, quite a few dependency injection buffs
 
@sehe dependancy injection?
 
I like dependency injection.
 
@Serge dependency injection, inversion of control
 
@jalf tell them to overload the new operator for the class. For fun.
 
@RMartinhoFernandes Me too. It's just easily overused
 
9:43 AM
@sehe can you give me an example of it?
 
@sehe No job security, as in you're always required to fix their code
 
Dependency injection is a software design pattern that allows a choice of component to be made at run-time rather than compile time. This can be used, for example, as a simple way to load plugins dynamically or to choose mock objects in test environments vs. real objects in production environments. Definition Dependency injection involves at least three elements: * a dependent consumer, * a declaration of a component's dependencies, defined as interface contracts, * an injector (sometimes referred to as a provider or container) that creates instances of classes that implement a given...
@Neil How is that a gain
 
The intent of the user was never related to while (true) it is all about the problem he is having with designing his calculator which exits when the main function returns. The way the question has been asked is inappropriate (no code snippet) and the way some people are answering the question (related to while (true)) is more inappropriate. — Yavar 1 min ago
 
@sehe Job security
 
@Serge: I just realized that you said "I am and idiot" and not "I am an idiot". :-/
 
9:44 AM
@Neil I'd rather have a job I like
 
@Insilico I'm pretty sure it's a meme, somewhere. But just for fun =)
 
I am a not idiot
 
@sehe Me too. Not sure where you're getting at.
 
@Neil Job security != at all cost
 
@sehe It was meant to be a joke.
 
9:46 AM
@Neil Besides, if you're any good, you shouldn't have that hard of a time w.r.t. getting a job
 
Aha. That would explain you holding on to it so long :)
Sorry I don't get jokes that don't logically work unless they are puns or other 'surprisey' stuff
 
@sehe Oh, I think I understand what it means, then. I'm pretty sure it's one of those things that I've done before, but never known the term for?
 
Well in the same chatroom in which I can safely say something like "Those aren't tits either. :(", I have to explain what I meant by job security.
 
@RMartinhoFernandes well, we are two who are really anti-singleton. Most are kind of undeclared. You know, "yeah, singletons are overused and should generally be avoided, but they have their uses"
 
9:48 AM
@Serge Assuming you refer to DI, yes, likely
 
@sehe yeah, about DI.
 
@sehe That would also explain why you responded sourly to my jest about you being the nerdiest drunk
 
@Neil (a) you can't safely say that (b) I know what you mean by job security. I just have another definition: A job that sucks is a job I must lose. That's not job security
 
Did someone request tits?
 
@Neil Nah, that was because you didn't get mine. Others did :)
@Serge Not yet. In ample supply
 
9:51 AM
@sehe does that mean... we have an ever increasing buffer of tits, waiting to be used?
 
@sehe You said you don't enter bars and that you don't drink alcohol. What's so funny about that?
 
@Serge You know you can (should, often) reply to a specific message? Click the 'reply to this message' arrow
@Serge It means, I don't anticipate a shortage
 
@sehe I see.
 
Most meatbag individuals have a pair.
 
I love this chat. I'm not in here enough.
And by enough, I mean, this is probably my 2nd or 3rd time to talk this long in here.
 
9:53 AM
@Serge Damn, did I miss something interesting?
 
@Neil A hint: originally you didn't jest about "you being the nerdiest drunk"
 
@Serge Yes. This is the bestest room.
 
@KonradRudolph I do not know. Interesting is something that likes to avoid me.
 
room topic changed to Lounge<C++>: This room is bester than the others. [c++] [c++11] [c++-faq] [c++-fuq]
 
@sehe So I have to think you were joking because you responded?
 
9:54 AM
@CatPlusPlus I love the name of it. Templates.... =)
 
@Neil Good idea. But no. There was plural involved (wait for it...)
 
People will tell you we're hostile and stuff, but that's only towards stupid people who come here to ask PHP questions.
12
I mean, gah.
 
If we're so hostile, how come we're the most popular room?
 
@sehe That's still not obvious if I was referring to more than one person.
 
If it weren't for Lounge I'd quit SO long time ago.
9
 
9:55 AM
And we have so many regulars.
 
Oh... I just got a new badge. "Talkative".
Greatk.
@CatPlusPlus You're kidding, right? People have... asked... PHP questions in here?
 
@Neil Poor you. I'm not about to explain the joke. Just trust me you missed it.
 
Yes, they did.
 
@Serge Yeah. With some regularity.
 
But they didn't live to tell
 
9:56 AM
@sehe I must not have missed that much.
 
One guy even wanted to pay us to make some PHP crap.
 
(i'm kidding, btw)
 
@Serge They don't get answers :P
 
(me too btw)
 
9:57 AM
D=
 
MySQL is the failure.
 
sbi
@thecoshman But that wasn't until much later that evening!
 
lol
I love it when one hand is off by 1 column of keys...
 
@CatPlusPlus Yeah that was funny. The guy got banned IIRC
 
I wish more trolls made whiny meta posts.
 
9:58 AM
I don't post much... I don't have much to say; and I especially don't have many answers to give.
 
We'd have a constant stream of amusement.
 
...and I tend to abuse semicolons.
 
What did they ever do to you, you monster.
 
They probably like me, really; I tend to use them more than others.
...does anyone ever ask the PHP chat C++ questions?
 
Not with our blessing.
Yes, we can give blessings because we're gods.
Or maybe not.
 

« first day (613 days earlier)      last day (4350 days later) »