« first day (829 days earlier)      last day (4345 days later) » 

21:00
@EtiennedeMartel It is haha but just a general programming principle I want to know
@TonyTheLion I have no plans at all for February yet, so you can make your pick for now. The ape probably wants to coordinate with having the kids around and stuff.
@Crowz where is img declared?
img = myimg ? myimg : originalImg
@R.MartinhoFernandes ok cool :) That's why I wanted to check with Mr. Ape.
user142019
@Crowz var img = (new Image[] {myImg, originalImg})[(int)(myImg != null)];
21:01
@Zoidberg lulz
@Zoidberg wait what? (also, memory leak)
user1182183
man, I'm happy my name was never in the Lounge<C++> topic, only as "drama-qeen", but he, no Gam Erix! XD
@sehe From 18 to 21. German class. I usually get there a bit earlier so I can do some homework.
@MooingDuck Right there, it's a new image of Image type
java doesn't implicitly convert bools to ints though
user142019
21:02
@MooingDuck C#/pseudocode.
user142019
@Collin it's explicit.
oh right
@MooingDuck This is mine, obviously.
@Rapptz have you changed it since the last time I downloaded it (like an hour ago?)
This one is old ^
It just shows output
21:03
@Rapptz k
user1182183
kinda wonderin, who's the oldest in this room? ; o
user1182183
and who's the youngest? me? 18.
@EtiennedeMartel There is an exception that says if the class has standard layout you can reinterpret_cast it to something that shares the same initial sequence safely. Otherwise all bets are off.
Ell
Ell
@GamErix Nope, there are younger (I've heard)
Isn't Ell like 16
21:04
@GamErix Ell
Ell
Ell
Close, but no ciguar
@Rapptz ow, my eyes
BigInteger& BigInteger::operator+= (const BigInteger& bi) {
if (digits.size() < bi.digits.size())
digits.resize(bi.digits.size());

ullong carry = 0;
std::deque<ullong>::iterator it;

OperatorCarry<Add> addwc(carry);

it = std::transform(bi.digits.begin(), bi.digits.end(), digits.begin(), digits.begin(), addwc);

std::transform(it, digits.end(), it, Carry(carry));

if(carry)
digits.push_back(carry);

return *this;
}
Ell
Ell
I am 17 :3
user142019
@Quuxplusone Indent or GTFO.
user1182183
@MooingDuck hm okay :P
21:04
@GamErix either sbi or... there was another one...
user142019
@Ell I was 17. :3
Ell
Ell
I was 16 last year (suprise suprise)
Hey all :) Anyone comfortable with some GIT questions? I did read the rules, thought I would see, since it's language-agnostic
@Ell happy birthday!
Haha, GTFY
21:05
@Quuxplusone So? It works, it's fast, it doesn't look that ugly.
Get The Fuck Yonder
@Etienne For standard layout, you can only have one class in the inheritance lattice with non-static data members, so yours isn't (both A and B have non-static data members)
@R.MartinhoFernandes Yeah, it's in C++03.
user142019
@ThePhD "Got to fuck you." :L
Ell
Ell
@MooingDuck haha it was november, althoguh I appreciate the sentiment ;)
21:05
@EtiennedeMartel Well, replace standard layout with POD, then. The same rule applies, except to even less types.
Lol
@GamErix there's an Egyptian guy who pops in occasionally who's 13, but most of the room ignored him so I don't think he's coming back.
@Rapptz using normal for-loop syntax would be shorter, require no helper classes, and be easier to read (a consequence of #1 and #2)
"Normal for-loop" easier to read?
Hahaha.
@Pheonixblade9 are they complicated?
21:06
What are you talking about?
@R.MartinhoFernandes Yeah, well, I figured it would be UB.
@R.MartinhoFernandes Easier than std::transform(x.begin(), x.end(), y.begin(), y.end(), addmc), yeah
@Pheonixblade9 Did you get the point of the rules?
@GamErix mohamed-ahmed-nabil was the other young guy.
@Quuxplusone No
21:07
Tisn't.
@CatPlusPlus yes, hence why I asked politely and didn't say OMG YOU GUYS ARE JERKS ANSWER MY QUESTION NAU
user142019
@MooingDuck Wasn't that the guy who had something with his parents about software development and suing or something?
That addmc should be a lambda
addmc is a class
Yes
And it should be a lambda
21:07
I tried making it a lambda but it inherits from Carry.
@Zoidberg I don't remember that
I don't know how to do that with lambdas
Can you define a Lambda out in the wild?
Like, just sitting in the global namespace?
When I look at the transform and ask myself what it does, it is written there.
@ThePhD Why would you do that
21:08
Just curious, really.
user142019
@ThePhD auto mylambda = [] () {}; only problem I see is ODR if you do it in a header.
When I look at a "normal for-loop", I have to process it first.
@GamErix JerryCoffin also describes himself as old.
It's not really any more prone to ODR than normal function
@Zoidberg Ah.
21:09
@GamErix I think it's Alf, then Jerry.
user1182183
heh
user142019
You need extern std::function to avoid ODR problems, I think.
Well. Whatever :|
@Zoidberg static?
user142019
Oh of course.
user142019
21:12
static is such a terrible keyword.
user142019
It means a billion gazillion things.
@R.MartinhoFernandes I’m about to include wheels as a dependency in one of my projects and I’ve noticed that in ogonek you copied a header in instead of using a git submodule. Any reason for me not to do the latter?
user142019
It means a billion gazillion different things.
Don't define a lambda at a global level jesus, why why why why are you even thinking about that
Ell
Ell
Man 13 years old and his life is already over, that sucks
user142019
21:12
@KonradRudolph because he uses Mercurial, not Git.
user1182183
when is life over according to you guys? I still breathe..
@Zoidberg Ouch. Doesn’t Hg have something similar though?
user142019
I have no idea. :P
@Ell who?
user142019
There is a bridge though.
Ell
Ell
21:13
@MooingDuck the egyptian guy
@Ell oh yeah
user142019
It allows you to use Hg repos as Git submodules in a Git repo.
Ell
Ell
your life ends when you become an internet addict xD
user1182183
@Ell does having sex count as a exception?
Well, there go my plans for using git submodules :(
21:14
@KonradRudolph I have a zip in the downloads section with each component as a single header, i.e., no extra dependencies. When I only need one thing, I just grab one of those. If I needed three or four I would probably take the whole shebang directly. Just personal preference, really. Oh, and I am not that big a fan of submodules.
Ell
Ell
@GamErix Nop. I also notice you are quite intent on broadcasting that you have sex, are you insecure about something? :P
user142019
14
Q: git submodule from Hg repo?

Brandon FosdickI have a very old project that includes the source from another project directly, instead of linking it as a library. Back in the bad days, when I was keeping everything in CVS, I had the external code on a vendor branch and did periodic imports. Now that my project is in git it would make more s...

@MarcusStuhr thanks, with some debugging I found out what the issue is
user1182183
@Ell im all insecure, always insecure,m always unsure about my relationships, ALL OF THEM.
@R.MartinhoFernandes Oh, interesting, any reason for the aversion to submodules?
user142019
21:14
So indeed. :L
@Rapptz What was wrong with it?
user1182183
that's just me
Multiplication/division both?
user142019
@KonradRudolph One thing you could do is ask robot if you may host a Git mirror of the library. :P
user142019
(Or was it CC0?)
21:15
I need to normalize before comparing
@Zoidberg Well, I could do that myself ;)
@Zoidberg Awesome, thanks a lot
@Rapptz or normalize after mutating operations
@KonradRudolph Hg has some annoyances with them that I don't recall now.
Ell
Ell
21:16
Hmm. I want some programme where I can hide windows/mute sounds/etc. at the press of a button when my parents come in. For top security business skype calls, obviously
@MooingDuck Either way can yield too many normalizations.#
Something about pushing or pulling or whatnot.
@Ell speakers with a power button
Did you guys see TESO is now opening beta?
user1182183
@Crowz TESCO?
Ell
Ell
21:16
@MooingDuck but then I gotta close the windoww and all other stuff, my hand isn't quick enough :O
@DeadMG expression-template-somethings can handle that
The Elder Scrolls Online
Ell
Ell
this is starting to sound wrong, but honestly, it's not what you think :O
7
@Ell suuuure
@MooingDuck No, they can't.
21:17
@DeadMG oh, you're right, I see
I wonder how my code handles that. Probably never normalizes.
Who knew dubstep + violin would actually sound nice :O
@Konrad which bits are you using btw?
@MarcusStuhr Lindsey Stirling
@MarcusStuhr nobody else has done it to my knowledge
user1182183
21:18
ok ell just 3 more starred messages to go and you own all the star board in the lounge :P
2
user1182183
2.
Vanessa Mae fuses together classical and techno/electronica but that was somewhat pre-dubstep
@R.MartinhoFernandes For now, metaprogramming. I need to write a random-access iterator for a collection and I don’t want to write the const and non-const versions separately
Ell
Ell
I will own the star board!
Ah, yeah, WithConstOf is neat for that.
21:19
@MooingDuck She’s a nice enough performer, and quite enthusiastic, but I find her violin play seriously horrible for the ears :/
2129 7378 166  versus 2129 7378 166
Yes
int main() {
    gears::BigInteger A = 129127;
    if(A*A == (129127LL*129127LL))
        std::cout << "Yes";
}
whee..
@R.MartinhoFernandes Exactly
@KonradRudolph I like her music, but hate the videos. They're usually cool ideas, but I don't like the way she dances
@MooingDuck Yes, like a spider on ’roids ;)
@KonradRudolph Comes complete with her two main dance moves: The one-legged knee-twist, and the glance-around-mysteriously macro
21:20
@MooingDuck Kinda hard to dance when your hands are tied (or in this case, playing a violin).
user1182183
My GF says she can't come tomorrow because she has to do this, that, tha, this... WTF. ok. I let it be. Now I sit here and think: today she did fucking nothing, why didn't she do it all today?! Now I think further.. Should I bite in her ass? Like usual when i'm (slightly) upset ;>
@R.MartinhoFernandes I acknowledge the talent and skill, I just don't think it's a good idea
@GamErix leave it alone
Is BigInteger like... an item in the heap?
Yes, sure, what relationship problem can't be solved by some biting
user142019
@KonradRudolph Alternatively, you could write a script that clones the Hg repo and just use that script instead of submodules.
user142019
And just .gitignore wheels/.
@MarcusStuhr #define LINDSEY_GA_MYST(x) do { left(x); right(x); oneeighty(x); } while(false)
@Crowz it's a integer with no effective bounds on the range. usually on the heap
Yeah, the heap is not important at all
user1182183
21:22
@CatPlusPlus shut up grumpy cat.
@MooingDuck What if it's so big, it takes up all the memory on your computer :o
@Crowz std::bad_alloc
@CatPlusPlus Grumpy cat plus: “I once used the heap. I hated it.”
@GamErix > Should I bite in her ass?
Wat
user142019
Overload operator new to always return a pointer to the same block of memory.
21:23
sounds quite sexy, I might try that ;)
when he says she has a tasty ass, he's not kidding.
user1182183
@Collin I always like that and it helps.
@Zoidberg Seen it as a Singleton implementation.
user142019
lol
@Zoidberg nullptr?
21:24
@GamErix That.. that did not clear anything up
Ell
Ell
@GamErix you should literally "bite in her ass"
Word break rules, Y U NO LL(1)
user1182183
@Ell I do that alot, always when I get the chance, except when it's very romantic, then I lick it.
user1182183
Well. that sounds wrong.
Ell
Ell
@GamErix you bite inside her ass? :O
user1182183
21:25
@Ell NO XD
"Imma lick your ass" is very romantic, indeed.
6
user1182183
@R.MartinhoFernandes nah kidding :P
user1182183
ok to clear things up, I only bite when I am in a annoying mood and i'm slightly upset, else we do normal stuff ; >
user142019
@GamErix s/r/n/
@R.MartinhoFernandes :(
user1182183
21:27
@Zoidberg can't find that on google
@GamErix try sed
user142019
@GamErix try Perl
@GamErix swap r with n. (or maybe the other way around, I forget)
user142019
Substitute the first occurence of "r" for "n".
@Zoidberg fuck perl
21:28
Checking is still fast even with normalize
user1182183
@Zoidberg said? O_o
user142019
@Collin no Perl is awesome. :(
@Zoidberg If you don't use the implicit variable, I'll give you a pass
user142019
I like $_.
goddammit
21:29
Are you putting up a new version Rapptz?
user142019
And $@.
user142019
And $1-$9.
user142019
I use them very often.
bastard
@MooingDuck I'm having trouble with this rule where I should ignore characters with the format or extend word break property except when they are after a linebreak. I think I need to special case stuff.
user1182183
21:29
well fuck the lounge starboard. just a little deeper and we go to porn mode.
@MarcusStuhr Yeah I have to fix the other operators too.
@GamErix When did the star board get out of porn mode?
@R.MartinhoFernandes Wut, the wheels downloads are aaaancient. I’m gonna clone that instead.
user1182183
@Collin when there were CODE SNIPPETS on it
@KonradRudolph lol, have you seen the latest activity?
21:30
@R.MartinhoFernandes … today.
user1182183
(including struct lucian short penis)
@KonradRudolph Yeah, was a bug fix in the enums, but the latest non-aesthetic commit was in August. But you are right, I should update the downloads.
@R.MartinhoFernandes " In particular, the rules are formulated so that they can be efficiently implemented, such as with a deterministic finite-state machine based on a small number of property values."
@MooingDuck Yeah, that changes nothing.
user1182183
there is no martini -,-. I want martini. didn't have alcohol since yesterday. xD
21:33
The annoyance here is exactly the fact that I need to add extra states.
user1182183
I wonder how a bbq'd ass tastes like...
For the grapheme clusters, the states were dictated solely by the previous character.
For words it's more regex-ish, and current state may depend on a character I read two thousand umlauts ago..
@Crowz You mean, World of Warcraft: Elder Scroll Edition?
@R.MartinhoFernandes While reading the docs with the rules... I don't understand anything here :(
21:36
Because it has absolutely nothing to do with TES, gameplay wise.
@EtiennedeMartel lololol
@EtiennedeMartel: did you see the new SC2:HotS videos that came out on Gametrailers?
@Borgleader I have no headphones at work, so I'm gonna wait until tonight to see it.
Aight, some really neat stuff
They added a bunch of stuff to the MP
@MooingDuck Each character has a "word break" property. Those are the values that show up in the rules. "CR × LF" means that there is no break between characters with the CR word break property and characters with the LF property. ÷ means there is a break, | is "or", and * is the Kleene star you know from regexes. → means the lhs should be treated as if it was the rhs.
user1182183
fuck all the new games, I'm downloading C&C95
21:38
@Ell Try "boss key"
@GamErix Well, ham would be basically pig butt, so imagine BBQ ham...
user1182183
@JerryCoffin but I mean human butt xD
user1182183
You're the oldest.. you tried?
21:39
@ScottW Yes :) The intro trailer is awesome. Theres also an interview with Dustin Browder about all the new MP stuff. I'm hyped
@GamErix Like everything else, it tastes like chicken (no, probably not, really).
@Borgleader Yeah, I've been tracking the beta balance patches for a while now. They're currently trying out Burrow on tier 1.
user1182183
@R.MartinhoFernandes c'mon you never curious?
@LuchianGrigore I don't want to ruin that..
user142019
@LuchianGrigore lol
21:40
To be honest, no.
user1182183
;>
I don't really care what human flesh tastes like.
@EtiennedeMartel I'm talking more like Unranked Play, clans, groups and other related things.
user1182183
not that I care, but I am curious
@Borgleader Oh, right. I would say "hell, it's about time".
user1182183
21:41
if I cared I think I would've tried by now..
@EtiennedeMartel Hahaha some of those yeah it's been a long time coming.
Husky did this really interesting interview with Dustin Browder a while ago. Let me find it..
@MarcusStuhr okay, I pushed it.
It should work now.
@EtiennedeMartel The release date is only in two months. My confidence of an excellent balance upon release is waning.
21:43
Is 1 equal to 1?
YES
@Rapptz better!
@DeadMG WoL wasn't balanced at launch either, hell they're still balancing it. It took years for BW to get balanced. Hoping for a SC game to be released at launch is like believing in unicorns. You're gonna get disappointed.
@R.MartinhoFernandes lol
@Borgleader I think they are indeed released at launch.
21:44
@R.MartinhoFernandes s/released/balanced
T_T
user1182183
@JerryCoffin it's IT meat, now I want girl meat.
user1182183
xD
@Borgleader Hell, SC1 was a fucking mess right until 1.08, IIRC.
@GamErix You're starting to creep the hell out of me young one.
user1182183
@Borgleader IMA EAT YOUR WHOLE FMAMILY... BOO. nah, kidding.
21:45
@EtiennedeMartel I didn't ladder much in SC1 I was in elementary school when it came out :P
@Borgleader That's when Koreans start man.
Gotta game early.
Despite what my avatar might indicate, I'm not korean ;)
user1182183
I love this room, amount of discussions not about code = infinite, amount of discussions about coding -infinite.
That is so not true.
They added the [duplicate] suffix to questions?
21:47
15 mins ago, by Mooing Duck
@R.MartinhoFernandes " In particular, the rules are formulated so that they can be efficiently implemented, such as with a deterministic finite-state machine based on a small number of property values."
What do you think this was about if not coding?
@GamErix We are an implementation of Haskell, lazily (oh, so very lazily) evaluating an infinite list.
@R.MartinhoFernandes That sounds like a markov chain thing generated from your SO answers.
Hm now it's not liking the implicit int conversion
user1182183
@Borgleader heh
21:48
@MarcusStuhr I compile with -Wall and -pedantic and I didn't get any errors/warnings
@MarcusStuhr does his bigint have an implicit int conversion? I am ashamed for him
no ;_;
user1182183
oh bytheway
user1182183
@Zoidberg how's your MC clone?
21:50
Sorry, was my mistake -- it compiles fine. Just crashes at runtime
This one thinks Zoidberg can pour more then one hour into any project.
user142019
@GamErix didn't work on it lately. github.com/daknok/MineSharp.
@KonradRudolph She's mostly incredibly hot.
user1182183
@R.MartinhoFernandes xd
user142019
I have to work on a terrible school project.
21:50
@MarcusStuhr What does what() output?
@R.MartinhoFernandes ^^
user142019
So no time for Mine#.
@R.MartinhoFernandes Well, he's got so many projects active at the same time, it's not like he can spend much time on each of them.
user1182183
ahw ping me when it's playable
21:52
I don't know what I did, but fibonacci(20000) no longer crashes lol
@GamErix Try again in 20 years.
user1182183
@EtiennedeMartel I don't think SO will die in 20 years? (including this chat)
@Rapptz is it right?
@GamErix You missed the joke.
user1182183
actually, I would like even to have such a chat on my site
user1182183
21:53
@EtiennedeMartel nah sorry I'm anti joke chicken today ~.~
user1182183
angry.
user1182183
or well, slightly upset.
user1182183
1 guess why.
user1182183
only possible reason in the world a man could be upset...
21:54
@Rapptz excellent!
1
Q: Two very similar functions involving sin() exhibit vastly different performance -- why?

NPEConsider the following two programs that perform the same computations in two different ways: // v1.c #include <stdio.h> #include <math.h> int main(void) { int i, j; int nbr_values = 8192; int n_iter = 100000; float x; for (j = 0; j < nbr_values; j++) { x = 1;...

^^ bit of a honeypot there
@Mysticial looks deleted
> Fuck you all... – H2CO3 33 secs ago
lol
Also that Stephen guy is downvoted?
I thought this was his forte.
I think he overlooked something as well.
I didn't downvote though.
But I'm trying to solidify a few things before I comment.
21:57
@Mysticial I don't see that.
@R.MartinhoFernandes He deleted it. :(
The guy is contradicting himself.
I didn't vote, but that version is twice slower, not twice faster. — NPE 43 secs ago
While Stephen's answer is certainly possible, I know from my compiler experience that current compiler's don't actually do that optimization.
with ffast-math too?
@Rapptz It's not liking 5067001-5066996

« first day (829 days earlier)      last day (4345 days later) »