« first day (690 days earlier)      last day (4255 days later) » 

1:03 PM
0
Q: Turning #ifdef's into a template metaprogram in C++

PanicSheepI have the following code inside a C++ class: class Features { #define Feature_Size_A 12345 #define Feature_Size_B 45678 #define Feature_Size_C 78901 //#define Feature_Size_D 14725 const int Feature_Sum = 0 #ifdef Feature_Size_A + Feature_Size_A #endif #i...

not sure if good question or noob
 
Since he wants to steer away from macros... kudos to him.
 
yes true
I was thinking SFINAE
but not sure, does that work with constants?
SFINAE is more for types I would have thought
 
:-??
I was thinking enable_if
 
yes, that is SFINAE (Substitution Failure Is Not An Error)
 
:)
I knew that, who said I didn't?
 
1:09 PM
There are no functions in the code. Why use SFINAE?
 
dato again?
0
Q: leftist heap implementation in c++

Aleksi Beriashviligood afternoon, i am trying to implement leftist heap here is my header file and source file for header file #include<iostream> template<class comparable> class leftistheap; template<class comparable> class leftistnode { comparable element; leftistnode *left; lefti...

 
@R.MartinhoFernandes could the sum part not be turned into a function?
 
This time he redacted the paths in the error messages.
 
> leftist heap
lol
 
1:12 PM
@TonyTheLion What for? It needs to be compile time constant for use in the arrays.
 
sounds political
@R.MartinhoFernandes ah I see.
 
Romney heap implementation
he's leftist, right?
 
donno
Republican
 
I know that...
meh
politics
 
He's "whatever position I can take to win"
 
1:15 PM
Per wikipedia, Republican's are right wing
> Inequality is viewed by the Right as either inevitable, natural, normal, or desirable,[1] whether it arises through traditional social differences[4] or from competition in market economies.
explains a lot about their IMO weird views
lol
@Rapptz Romney is an idiot
 
So the democrats are socialist???
BTW I completely agree with that view
 
@luchian but would you agree with them?
 
@LuchianGrigore the right wing view?
 
did the insect get offended too much again?
 
@LuchianGrigore Wait, what? No they aren't.
 
1:19 PM
I've not seen her in a while
 
@thecoshman donno
 
Summer's over.
 
she's hibernating
wait... do insects hibernate?
 
Some of them do, IIRC.
 
@TonyTheLion yes. (as opposed to socialist left)
 
1:20 PM
not sure if you would call it hibernation...
 
but this has nothing to do with democrats/republican
 
@LuchianGrigore seems a weird response to the question your message refers to
 
I'd go with a liberal right
@TonyTheLion which one?
 
There is no left wing in the US. Well, there's one, but it's not in power.
 
@LuchianGrigore per wiki Republicans are right wing, and right wing believes that
 
1:21 PM
Most insects have too short of a life expectancy to hibernate.
 
anyways, fuck politics
 
@TonyTheLion well, as Et. pointed out, Democrats are right-wing too
 
I believe I pwned the feature question
 
@DeadMG I'd upvote if I understood that...
 
1:22 PM
1
Q: Turning #ifdef's into a template metaprogram in C++

PanicSheepI have the following code inside a C++ class: class Features { #define Feature_Size_A 12345 #define Feature_Size_B 45678 #define Feature_Size_C 78901 //#define Feature_Size_D 14725 const int Feature_Sum = 0 #ifdef Feature_Size_A + Feature_Size_A #endif #i...

 
Democrats are left wing
Though not socialist just liberal. Though not really because they're both bad.
 
pffft
socialist, liberal, conserative, left-wing, right-wing, they're all idiots.
 
Apparently they're center
 
@Rapptz What. No. I'd go with "Center right".
 
whatever
 
1:23 PM
too busy wanking off about how ideological they are to adapt to the real world.
 
Are there any americans here? (probably not)
 
@LuchianGrigore @Rapptz is, I think.
 
That's it?
 
Yeah.
 
More should be arriving soon.
 
1:24 PM
Hmmm...
 
Politics here is pretty bad.
 
Ah, true. It's early morning there.
Or maybe they hang out in the PHP room :D
 
I am now tempted to open PHP room
 
In Syria, on the other hand, politics is pretty good.
 
Would be fun to enter the PHP room, start some huge politican discussion and leave quietly
 
1:26 PM
***
*****
 
oh come on
which one is it?
the horizontal line?
 
what are you trying to do?
 
Doesn't work on chat.
 
You mean this?
 
Ubisoft sucks
 
@R.MartinhoFernandes TL;DR
 
(I get paid every time I say that) :D
 
lol
I think @CatPlusPlus and @DeadMG get paid more everytime they say something sucks, seeing by how much they say it
 
@thecoshman So what? I even gave a short summary.
 
1:28 PM
@R.MartinhoFernandes too short
 
Ubisoft gives up o....zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
 
So do they not care about used games
Anymore?
God mobile is terrible
 
@Rapptz What? No. This is about (no longer) having to be constantly online in order to play their games.
 
amagad
 
@R.MartinhoFernandes ooh, well that sounds like a rare move towards making things nicer for those playing the games
 
1:30 PM
can't believe I named something "3Features"
that's so noobtastic
 
Haha, fail.
 
Ah. I just remember that you had to pay like $5 to play used games.
 
The puppy doesn't even know how to name variables. How much suck is that? :P
 
I'm sure he has a commit message explaining that name,.
 
I didn't
it was some pseudocode I whipped up for the guy with the macro hacks who wanted a template-based system instead
 
1:33 PM
And you used head/tail type lists :S
 
it worked
what would you have used instead?
 
But, but, variadics...
Or boost::mpl::vector for crippled compilers ;)
 
@R.MartinhoFernandes OP said he struggled with that.
@R.MartinhoFernandes I actually forgot about that.
but I don't think it would have made a big difference in this case.
 
@DeadMG OMG, you're so much fail today.
 
@R.MartinhoFernandes Inorite
 
1:35 PM
How was the interview yesterday?
 
oh
it went a lot smoother than I expected
as long as I keep actively looking for a job, they'll keep paying me, and having a bunch of my documentation be expired wasn't a problem
 
@DeadMG who keeps paying you while looking for jobs?
 
@LuchianGrigore Government.
 
wth
how much?
 
don't remember
but it's something and something > nothing
by the way
 
1:37 PM
Someone almost killed our new Prime Minister yesterday.
 
I'm making a list of things that people who do C++ should know even though we'd rather they didn't have to know
but for templates, all I've got is the enum hack
surely there's more old template crap hanging around than just that
@EtiennedeMartel Curious that the Beeb didn't mention it
 
@EtiennedeMartel Aww :(
 
@DeadMG It's not like they care about Quebec anyway.
 
@LuchianGrigore welcome to socialism
 
@EtiennedeMartel It's very strange seeing you tweet in French.
 
1:41 PM
Yeah, stop feeding weird languages to my feed.
 
Sometimes I whip out my first language.
 
Ok, design feedback time again.
 
@R.MartinhoFernandes Woofing at your service.
 
@R.MartinhoFernandes it's all wrong
 
Should I provide == for text?
 
1:43 PM
does it actually work?
 
@R.MartinhoFernandes what is 'text', is it just a string class?
 
I will have several different named comparators for different equivalences, but I'm concerned about an actual operator==.
 
well
strictly, it's important to provide == as well as you can, because else, it's difficult to insert into a hash map or something like that.
 
Alright guys, gotta go to work. See you all in 30 minutes.
 
@DeadMG It's as difficult as providing an extra template argument...
 
1:45 PM
well, technically, you can
but my experience of providing a custom allocator to a std::unordered_map was a lot less than stellar.
I'd rather not depend on that machinery if at all possible
 
(anything) in regex boost is what? \( ?? \) ?
 
But what equivalence should I use for op==?
 
@R.MartinhoFernandes What equivalences are there?
 
in JavaScript, 1 min ago, by Amaan
Oh. What's ??! in C++?
 
@thecoshman There should be something at gist.io/3166256, but it seems borked, so it's here: gist.github.com/3166256
 
1:47 PM
Tri something?
 
@DeadMG I should make a list.
 
@Amaan graph
 
@Amaan It's a trigraph.
| if I'm not mistaken.
 
Thanks!
 
yep
it's the WTF operator- ??!??!
 
1:48 PM
@R.MartinhoFernandes are the the same string of characters, case sensitive of course
 
@thecoshman That's not a good enough description (FWIW, I don't use the term "character" because it's not well-defined).
 
@R.MartinhoFernandes As you shouldn't.
 
@R.MartinhoFernandes I see. Reading through your link, not sure if you want say that "test" == "test" only if they are both of the same type of characters
 
codepoint, code unit, extended grapheme cluster, etc.
 
so a etf-8 string can never equal a utf-16 string
 
1:50 PM
@thecoshman Well, that's plain BS.
 
> The concepts of canonical equivalent (D70) or compatibility equivalent (D67) characters in the Unicode Standard make it necessary to have a full, formal definition of equivalence for Unicode strings. String equivalence is determined by a process called normalization, whereby strings are converted into forms which are compared directly for identity.
 
two Unicode strings are obviously equal if they contain the same codepoints after normalization
 
@thecoshman That sounds wrong.
 
the source code units are utterly irrelevant in every way
 
I don't care about the underlying representation. I only care about the text, not the bytes.
 
1:51 PM
@R.MartinhoFernandes Indeed, I would not like to see a library where "test" != "test"
 
Exactly.
But it gets complicated when combining marks and other crap gets in the way.
 
@R.MartinhoFernandes You'd have to normalize to a normal form.
 
@DeadMG Well, yeah. My doubts boil down to canonical vs compatibility.
 
@R.MartinhoFernandes I don't know anything about that discussion.
aren't all the normal forms equally, well, normalizing? I mean, surely you don't care about the actual form of the normalized string as long as they're both in the same one.
 
I think I'll pick canonical.
> Compatibility equivalence is a weaker equivalence between characters or sequences of characters that represent the same abstract character, but may have a different visual appearance or behavior.
Stricter is better, right?
> Canonical equivalence is a fundamental equivalency between characters or sequences of characters that represent the same abstract character, and when correctly displayed should always have the same visual appearance and behavior.
 
1:57 PM
yep
canonical seems a lot better to me
 
the word canonical always has me confused
I never really understood what it meant
 
it's kind of like, truth.
 
for example, what the Standard says is canonical by definition
 
@DeadMG Two normal forms use canonical decompositions (NFC and NFD), and two others use compatibility decompositions (NFKC and NFKD). Each of the two sets yields different equivalences.
 
1:58 PM
because if the Standard says it, then it's true.
 
wiki says it has come to mean "typical", "standard"
@LuchianGrigore that's old
 
@TonyTheLion Yeah, that's more like it.
 
well
 
Like ax^2 + bx + c = 0 is the canonical form of 2nd degree equations.
 
1:59 PM
right
 
also consider for example what happens with large media universes like Star Trek or Star Wars
do the authors consider every fan fiction to be the truth about that universe? of course not
so they're non-canon.
 
right
 
Some authors don't even keep truth (but there's a notion of canon).
 
but if you watch a Star Wars film, they are canonical- i.e., that is the accurate description of those fictional events.
 
If you watch Wrath of Khan, you'll probably enjoy it.
 
2:00 PM
rofl
 
It's the probably the best of the lot.
 
> Hello, I have a problem with my brain.
Why?
 
It was a joke.
 
and then there was Nemesis....
As much as I drink, I still can't make my brain believe I haven't seen that movie.
 
19.6%. God I hate paycheck withholdings
 
2:03 PM
@Drise why do you get those?
I don't have a problem with my brain, my brain has a problem with me.
 
@TonyTheLion Because I need to pay for social security for which I will never see a dime of!
 
@Drise yes, same thing here.
Gov't wants your monies
 
@TonyTheLion So if I take my year to date total, of some 18k, and divide it by my gross pay, of about 14k, I get taxed 19.6% D:
 
pfft, I get taxed like 21% :(
 
room topic changed to Lounge<C++>: Hello, my brain has a problem with me. [c++] [c++11] [c++-faq]
 
2:05 PM
@R.MartinhoFernandes yep, it's true
 
Java generics suck ass
 
Java generics suck ass FTFY
 
indeed
 
@thecoshman Tell me about it.
 
but the generics are particularly bad
 
2:08 PM
Definitely.
 
▄︻┻═┳ - - - - - - - - - - -                    O
              guess what?                      /|\
  your code makes me want to shoot myself...   / \
^ will that fit in the room description?
 
Probably not, but thanks for sharing
 
@rlemon no
 
@rlemon Besides that's paradoxical
 
I think we've had something similar to "your code makes me want to shoot myself..." before.
 
2:12 PM
If I wanted to shoot myself from seeing your code, I would have gone about it, not written a message indicating how much I wanted to shoot myself
 
@Neil Well, at least you're committed
 
Your code makes me want to post a message about shooting myself.
3
 
@kbok This is an accurate statement.
 
Is it appropriate to tag C++/CLI questions as C++?
 
not really
 
2:17 PM
k
good
 
@R.MartinhoFernandes: haha.
 
user image
5
 
Stock photography is awesome.
 
Well, well.
 
2:30 PM
In the HotSpot Server compiler they make extensive use of temporary scopes within methods, what do you think about that?
 
@ManofOneWay Whats not to love about that ?
 
@ereOn It looks messy
 
int a = 5;
int b = 6;
{
int c = a + b;
a = c;
}
 
@ManofOneWay To me that usually screams "function!"
 
If you are talking about that, all the time : then yes, I agree.
 
2:32 PM
@R.MartinhoFernandes Agree
 
Otherwise, it may have its uses I think : scoped_lock<> works well with that for instance.
 
Well, the mostly use it for timing different steps
 
@ManofOneWay: That indeed sounds wrong.
 
But also just to be able to use the same names over and over
 
@ManofOneWay: That sounds even worse.
 
2:34 PM
Fuck C++/CLI. I have to forward declare stuff.
 
1
Q: efficient way for finding min value on each given region

John SmithGiven a we first define two real-valued functions and as follows: and we also define a value m(X) for each matrix X as follows: Now given an , we have many regions of G, denoted as . Here, a region of G is formed by a submatrix of G that is randomly choosen from some columns and some row...

David really deserves reps for that edit.
 
:)) I was about to say the same.
 
lol nais edit
 
Indeed.
 
Why are flags so annoying? It's just a blue bubble next to your avatar... Why does it make you want to punch the flagger/flagee in the face?
 
2:41 PM
Because it generally feels like the flagger is overreacting.
 
@LuchianGrigore Blue bubbles are blue and they remind me of Microsoft, which also uses blue everywhere.
 
"OH MY GOD! FOREIGN LANGUAGE! I FEEL THREATENED!"
 
Stomach y u no hungry.
 
you hate me cuz im black — nick 33 secs ago
hahaha
 
First world problems.
 
2:45 PM
The question is great!!!!!
i know great HTML like <body> and <body/> but now I want to build notepad web server in windows/redhat. how i can?
 
@DeadMG Looks like the BBC is talking about it after all: bbc.co.uk/news/world-us-canada-19478694
 
-12
Q: How to build a notepad web server in windows/redhat

nicki know great HTML like <body> and <body/> but now I want to build notepad web server in windows/redhat. how i can?

 
@LuchianGrigore: dude voted to close his own Q
 
Please please let's upvote this & get it on the multicollider
 
2:46 PM
> i know great HTML like <body> and <body/>
<body/>, yeah, great HTML.
 
What's "Great HTML"? Is that like HTML, but non sucky?
 
@EtiennedeMartel it's html with <body> and... get this: </body>!!!!!
 
Also, those tags are so random. The question is about Notepad and it is tagged .
@EtiennedeMartel LaTeX.
 
 
But yeah, not understanding your own question is quite an epic fail.
 
2:53 PM
@EtiennedeMartel it's all uppercase, of course. And with more exclamation marks
 
damn it. For some reason I lost 18 reputation and my profile shows no reason for it.
 
@Chimera a question got deleted, most likely
 

« first day (690 days earlier)      last day (4255 days later) »