« first day (1283 days earlier)      last day (3648 days later) » 

12:00 AM
github.com/Rapptz/Gears/blob/master/gears/functional/curry.hpp no function_traits here. It's technically partial application but I'm lazy with names.
 
@user315118 declaring it static will also ruin the semantics (you would need to reset the contents, seek to the beginning, clear exception and formatting state etc.). Best not to reinvent the wheel. boost::lexical_cast is your friend and it even works with your pool_string if you needed. No idea why std::allocator is faster, really. Maybe another day. Bedtime :) — sehe 5 secs ago
 
@Morwenn It's still far from a reason to use it everywhere.
 
@R.MartinhoFernandes I don't use it eveywhere.
 
Still, the problem can be solved easily if you don't need scoped memoising.
 
I'm bored
 
12:04 AM
@Rapptz Well, since my curried function returned a std::function<Ret(Args...)>, I kind of needed to split the types right from the signature.
 
But why would you want that?
 
Want what?
 
To return std::function.
 
yeah I'm not sure why you'd want that
 
Because curried actually returned a mere lambda so that i wouldn't have to bother with a custom type.
 
12:05 AM
I love you guys so much
 
No way
 
well I wanted mine to act similar to std::bind in a way wrt std::reference_wrapper
 
I only wanted to offer users a known return type. But I guess that std::function also has its downsides...
 
the only thing I've ever used std::function for is storing callbacks
 
12:09 AM
PRiVACY!!!!
 
@rightfold Don't use any. Use a custom type erasure scheme that retains the interface you need for the comparisons.
 
user1804599
@R.MartinhoFernandes Sure.
 
user1804599
Also not quite sure about references and cv-qualification of parameters.
 
cpptruths.blogspot.nl/2012/01/…, Sutter's Favourite 10-liner
 
12:12 AM
does it have a singleton
 
user1804599
does it have a shared pointer?
 
user1804599
YES IT DOES! :D
 
lol
 
user1804599
17
Q: In a leap year, is the extra month Adar I or Adar II?

Jon SkeetI'm implementing support for the Hebrew calendar in Noda Time, my date/time library for .NET. I think I'm mostly there aside from text support (although beta testers would be very welcome!) but one aspect still puzzles me. The Wikipedia Hebrew Calendar entry states that in a leap year, the extra...

 
user1804599
kek, Jon Skeet on Mi Yodeya.
 
12:20 AM
you're slow
 
user1804599
I’m faster than your mother; she doesn’t even know about Jon Skeet.
 
Jesus Christ
Adar Alef
 
user1804599
@MohammadAliBaydoun dat pun
 
Sounds just like Athar Alif in Arabic, which means First March
Alef is how you would pronounce the first letter of the Arabic alphabet and Beit is how you would pronounce the second.
I keep seeing parallels between Hebrew and Arabic
@rightfold YOU'RE A PUN.
 
user1804599
Aleph is the first letter of the Hebrew alphabet.
 
12:25 AM
Same in Arabic.
ph and f are pronounced the same ;~;
 
user1804599
@MohammadAliBaydoun Same in Dutch, except in “Schiphol.” :P
 
user1804599
Because the syllable “schip” ends there, and “hol” starts there, I presume.
 
In response to the comment on sporks in the Starboard, I'd like to say that dicks violate SRP too.
Bad design.
 
user1804599
Otherwise it would be “schi” and “phol.”
 
user1804599
Dunno. Perhaps it’s a compound word.
 
user1804599
12:28 AM
@MohammadAliBaydoun I was thinking about what an ugly hack dicks are a few days ago.
 
user1804599
Oh yeah this thing is rarely used for sex anyway let’s just piss through it too.
 
/o/
I should follow the YAGNI principle
And cut off my testicles ;~;
2
 
user1804599
I also think our vision has one important part which is an extremely ugly hack.
 
user1804599
They put a lens in front of the retina, which results in an upside-down image on it, and then the brain turns it around again.
 
user1804599
SO INEFFICIENT
 
user1804599
12:30 AM
@MohammadAliBaydoun LOL
 
Wow. Long time since a jazz take captured me big time
 
user1804599
@MohammadAliBaydoun Be sure to put them in version control, though.
 
user1804599
The client may want them back later.
 
And I'm not a big fan of django. But be sure to watch the bass/drums solos.
 
user1804599
I’m not a big fan of Django either.
 
user1804599
12:31 AM
It’s not flexible enough.
 
user1804599
Using it with anything other than Django models results in endless pain.
 
user1804599
Full-stack web frameworks violate SRP!
 
user1804599
DJ Ango.
 
Hahahahahaaaaaaaaaaaaaa xDDDDD
 
You don't like her because she isn't flexible enough in bed? You shallow programmers.
 
user1804599
12:40 AM
She told me she wanted to feel my cock in her throat, so I shoved it up her ass.
 
wut
 
user1804599
Especially the stomach acids made me hard.
 
@Mysticial morning
 
evening
 
user1804599
Hallo Mysticial. :3
 
user1804599
12:41 AM
It’s neither morning nor evening, sillies.
 
user1804599
It is night.
 
That's like saying a front wheel drive car is faster than a rear wheel drive car. It's not which wheels drive the car that really matters for speed, but the overall design, power of the engine, if corners are involved the tyres, suspension, etc - front or rear wheel drive is pretty small factors in the whole scheme. I believe this analogy compares fairly well with "garbage collection vs. non-garbage collection". And in my compiler project I'm working on, I just lazily ignore all freeing of memory, and rely on the whole thing being cleaned up at exit. Obviously won't work forever, but... — Mats Petersson 5 mins ago
dat analogy. Not bad actually
 
user1804599
Bug trackers and compilers are both boring to write.
 
user1804599
What shall I write today?
 
> incomplete type 'std::ios_base' named in nested name specifier
wait what
std::ios_base::fmtflags is valid though :v
 
1:21 AM
is Clang ever going to support EnableIf<....>... syntax?
I thought Clang >= 3.3 did but it turns out it doesn't
 
user image
6
i was skeptical but this turned out to be hilarious
 
damn you clang
 
user1804599
clojang
 
Haha, my boss suggested using Boost.PP to emulate variadic templates in a part of the code where I expanded them manually to appease the MSVC demons.
 
I don't want to rewrite all my EnableIf<...>... bits just to please Clang
 
1:34 AM
I expanded them manually because when I used Boost.PP the compiler ICEd.
 
user1804599
MSVC sounds like fun.
 
user1804599
I AM ICE
 
this programming thing!!
 
Hey @R.MartinhoFernandes have you had any luck with your trick on clang?
 
Also, why the fuck is my boss doing a code review at this hour.
 
user1804599
1:35 AM
Because he is a programmer.
 
@Rapptz No, I just stick to = something.
 
sucks
@R.MartinhoFernandes He can't sleep
 
Xeo
@R.MartinhoFernandes Why the fuck do you know he's doing a code review?
 
@Xeo I get e-mail notifications when someone comments on my commits in our code review system.
 
Xeo
Also, why the fuck am I not asleep yet. Just because tomorrow is yet another day off is a bad excuse when the day after tomorrow is not.
 
1:39 AM
I have 27 results for EnableIf<...>... and Requires<...>... in my code
 
user1804599
@Xeo Nah, it’s a good one. :3
 
user1804599
@Rapptz sed
 
Granted, he's in southeast Asia, so the hour may not be so weird there.
 
Xeo
Also, I think the half-bottle of Mojito is finally getting to me
so, g'night
 
@Xeo That comes in bottles?
 
1:40 AM
poison
xeo needs to be told what to do
 
Xeo
@R.MartinhoFernandes There's one from Bacardi that I tried out. I like it.
 
so when left unattended, he's very unproductive
 
cough Visual Studio Ultimate cough
 
user1804599
EMACS
 
Xeo
@MohammadAliBaydoun Ugh, that horrible grammar.
 
1:43 AM
@MohammadAliBaydoun What is that supposed to mean?
 
@Xeo He tried ;~;
 
"If you don't pay for things, you don't spend money"?
 
user1804599
@R.MartinhoFernandes It means that if you pirate games you save money as opposed to buying them.
 
Life-changing epiphany material there.
 
it's actually a joke
 
user1804599
1:44 AM
It’s very weird that someone as smart as you didn’t understand this obviousness.
 
it's playing on the "justxthings" from tumblr
 
user1804599
    HEXAPODA
justrightfoldthings
 
     void*
justthephdthings
 
I wonder where he is
I haven't seen him in a while though he's always playing DotA2
 
user1804599
1:47 AM
He’s chained to the wall in my basement.
 
user1804599
I feed him pointers to eggs every now and then.
 
meh
fuck clang
too much effort
 
2:36 AM
Warning - struct template 'tuple_size' was previously declared as a class template [Disable with b'-Wno-mismatched-tags']
what's the point of this?
warning: 'tuple_size' defined as a class
      template here but previously declared as a struct template
      [-Wmismatched-tags]
oh ffs
 
I always use -Wno-mismatched-tags
It's a bullshit useless warning.
 
this experience is making me really dislike clang
 
GCC has it too.
 
it's not that warning
I mean in general :( trying to "fix" all of this
btw, how do I fix this error? coliru.stacked-crooked.com/a/a035d0ec106be35d
I can't place it outside of the class because it errors out for some reason
 
2:52 AM
Just declare it before.
 
guess I'll try that again
welp
my code compiles on both clang 3.4 and gcc 4.8 now
good riddance.
 
0
Q: WHAT'S WRONG WITH MY C CODE

user3530561THIS IS MY CODE I DIDN'T KNOW HOW TO FORMAT IT THAT WELL I GUESS... #include <conio.h> #include <stdio.h> #include <iostream> int main(int argc, char *argv[]) { FILE *pFile; char name[21]; char answer; int quiz; int test; int midterm; int final; // Open The File...

^^ aha, What's wrong? It's in all caps. :D
 
lol conio
 
3:14 AM
Lots of amazing questions today:
0
Q: FUNCION RECURSIVA PARA ENCONTRAR LOS NUMEROS QUE SUMADOS DESDE 1 HASTA B , SEAN IGUAL O EXCEDAN X,

user3553038int SumaRec(int z,double b,int x){ int total; /* cout<<b<<endl;*/ if (b==1){ total=b; b=b+1; total=total+b; if (total<x){ b=SumaRec(total,b,x); } }else{ b=b+1; total=total+b; if (total<x){ b=SumaR...

 
"amazing"
 
hello I have a couple compiler questions
I am stuck with gcc 4.6.2 on a certain project
and after profiling with intel VTune
i noticed that very insignificant functions were not being inlined
an example function is a reinterpret case, 2 numeric additions, and a ternary statement
i BELIEVE these are being inlined in Windows, but due to the profiling, think they are not being inlined in linux under gcc 4.6.2
 
@Mysticial translated it
 
I am attempting to get an ICC build working, but that'll take a little time
 
out of boredom anyway
 
3:20 AM
Yeah, you've gotta pretty bored to do that.
 
So, there's a crowdfunding site for breast implants.
 
until then, dows anyone know if GCC 4.6.2 is that different from VS2010 in terms of compiler optimizations? I've turned on O3 in GCC
 
@Mysticial not that bored
I didn't translate the code
 
what led me to this is that this is a rewrite of a significant section of code, and on Windows, the performance is approximately equal or a little slower, while on Linux it is at least 2x as slow
 
3
Q: Filtering an infinite list in Haskell

Code-GuruI have the following code that implements the Sieve of Eratosthenes: primes :: [Int] primes = primes' [2..] primes' :: [Int] -> [Int] primes' [] = [] primes' (p:ps) = p:(primes' [p' | p' <- ps, not (p' `isMultiple` p)]) a `isMultiple` b = (a `mod` b) == 0 main = print (sum (primes' [2..100000...

What noob wrote this code?
 
3:22 AM
you apparently
 
oh yah...
one of my first haskell functions, and how ugly it is
 
it's not that bad
it doesn't try to be overly clever
 
true
it's just a little more verbose than I'd write it now
 
oh
you don't get rep on meta anymore?
 
@Rapptz Only on meta.SE.
 
3:25 AM
neat
does this mean I don't lose rep either
 
correct
 
time to downvote everything
nah I'm kidding
I'm glad the Community bulletin is full of important questions such as "Why Community's age is 0"
 
4:25 AM
@ScarletAmaranth Did you see that movie?
I don't remember that song btw. But it's definitely nice.
 
 
1 hour later…
5:44 AM
 
 
2 hours later…
7:49 AM
hello
3 hours later...
hello again
5 hours later...
well well
2 hours later...
 
Hai, what's up?
 
as you can see, nothing much is happening here ...
 
Probablly is cause the time...
Idk if we can talk about C++ RE here...
 
8:06 AM
@MarcosEusebi What is RE?
 
@FredOverflow Reverse Engineering
 
And what is C++ RE? You have machine code, and want to guess the C++ source code it came from?
 
Freddy: geeky looking scale 0-10, you currently score 9.7 :p
 
@telkitty.exe based on what?
 
Good question!
 
8:09 AM
based on looks?
 
Based on your lecture video maybe >_<
 
@FredOverflow once the code is compiled to ASM or ARM can't get the source back, but you can reverse it (Copy functions) to make something similar.
 
8:26 AM
@telkitty.exe Oh, okay. I thought it was related to the RE question.
@MarcosEusebi What do you mean by "you can reverse it (Copy functions)"?
 
@FredOverflow Once the C++ code is compiled it becomes ASMMBLY code where the code is different, those are instructions where fill or move dbs and call a top level (Normally import) function with those parameters (JUMP, CALL or RETN).
 
lol haxx0r ITT
 
@FredOverflow so if you understand basically the code you can reverse it. Because of that dissamble protection exist (Like Themida, VMProtect, ASPack, WinLicense, etc.).
I'm not a hax0r >.<
 
@MarcosEusebi yep, you're a wannabe hax0r
 
Oh, I almost forget about a pun that came to this morning:
breaking news: control flow leaves switch/case in several constructors
 
8:37 AM
lol
 
I don't get it
 
s/constructors/conditions/ ?
dunno but it doesn't look funny
 
@DeadMG Is like a terrible new, and is just a normal programing error (Newbie).
 
@DeadMG If you new an object, its constructor gets called. To leave a switch/case, you use break. Get it now?
 
No.
 
8:43 AM
The funny part is that "breaking news" is part of the pun.
The "news" (the constructors) break.
 
well, they really don't break at all.
when the constructor returns, control flow will still be in the switch/case.
 
The switch/cases are inside the constructors.
Maybe I should accompany the pun with source code?
 
also
if you say "breaking news", people expect imminent sarcasm, like, "Breaking news: men like women" or something.
it pretty much just ensures that nobody will process it as part of any kind of pun.
 
Okay I get it, you hate my pun. Time to move on.
 
"Breaking news: men like women" omg
 
8:47 AM
@DeadMG Okay, how about this:
breaking news: control flow leaves switch/case in several constructors
 
Lemme try one...
 
you're still putting the break and the new together, and there's absolutely no logical connection there whatsoever.
 
Breaking news: A application which simulates a politicans choises not uses BREAK in Swich statement where is a CASE!
 
@DeadMG Maybe it works better for Java people. They don't differentiate that much between new and "constructor".
 
@FredOverflow show us teh codes
 
8:48 AM
they'd still have a hard time imagining how new and break are related.
 
class Foo
{
    Foo(int x)
    {
        switch (x)
        {
            case 0: foo(); break;
            case 1: bar(); break;
            default: baz();
        }
    }

    Foo(char x)
    {
        switch (x)
        {
            case 'a': foo(); break;
            case 'b': bar(); break;
            default: baz();
        }
    }
}
phew
Now people should get it.
 
nope.
 
Can I ask why Foo functions has a generic visibility?
 
I mean, you have breaks inside constructors, okeydokey, but I'm not sure how this is supposed to be funny.
 
public isn't better?
 
9:03 AM
@MarcosEusebi What the fuck is generic visibility?
Oh, you mean package private constructors in Java. You're right, that might irritate Java programmers.
@DeadMG It's not funny at all without the "breaking news" prefix.
@MarcosEusebi wat
You mean politicians always choose the same thing? case fall-through?
 
9:19 AM
ITT overnight hiking/bushwalking trips and diving don't mix - body full of bruises is not something you want to show off in a bikini on a crowded beach
People might be suspicious of family violence. Which is probably true, my family (meaning me) love to torture myself
saw something that looked like a stone fish today while in the water
 
hi
 
9:34 AM
morning
 
so... what'cha talking about
?
 
I'm now working on a WP site. So sad...
 
how do you stop people from spamming your WP site?
what's the best free captcha for wp site?
 
akismet?
note: I'm no WP expert. First time working with it. I also don't have the intention to become an "expert" in it
 
@telkitty.exe physically?
@HamZa What is WP?
 
9:47 AM
wordpress
 
Should I feel embarrassed for not knowing that?
 
@FredOverflow no since it's so crappy
 
@FredOverflow WordPerfect
 
@FredOverflow yes, I am that kinky! >_< </troll>
 
10:04 AM
wordpress?
 
yeah
 
ok replaced my shower, feels good
 
user1804599
@FredOverflow dat pun
 
10:25 AM
I didn't think of the move @0:26
 
@rightfold Did you get it without the explanation? ;)
 
user1804599
Yes.
 
finally
 
 
1 hour later…
11:28 AM
quite @ this time of the day ...
first time in ages ...
did the easter bunny eat em all :'(
 
@telkitty.exe that's one good pic.
 
thank you, I am sure the bunny agrees
 
I hope I won't have nightmares tonight
 
I have been thinking, if you are a pedophile, there are two seasonal jobs that would suit you - santa & bunny. You get to touch a lot of children twice a year.
@Abyx you would love this one too
 
11:45 AM
@telkitty.exe no I'm not
@telkitty.exe that one isn't so creepy, it looks just drunk or stoned
 
hai
 
hi
 
-2
A: Does return-by-value mean extra copies and extra overhead? C++

Eduard RostomyanAll commercial-grade compilers optimize away the extra copy. Certainly the compiler is allowed to create a temporary, local Foo object, then copy-construct that temporary into variable x within caller(), then destruct the temporary. But all(?) commercial-grade C++ compilers won't do that: the re...

lol, guy asks a question, and three minutes later replies with a copy/paste from parashift :)
 
chat.SO on mobile is beautiful
 
@Jefffrey is it? are you, uhm, kinda special?
 
11:55 AM
@FredOverflow the guy had a plan
 
@StackedCrooked Not as good as the Cylon plan, it would seem.
 
it failed miserably
 
12:13 PM
Two reasons: the main one, I don't want to get to 125 rep (ability to downvote) and the other one, I'm not confident in my ability to express myself clearly in English (<-Exhibit 1), and by making them community wiki almost anyone can edit any errors I make. — cv_and_he yesterday
lol, he doesn't want to downvote
 
@JohannesSchaub-litb nice guy
 
I'm mister irony, abyx
 
yeah but you didn't master it
 
@StackedCrooked no I haven't seen it; worth watching?
 
12:32 PM
I am hungry again ... I shouldn't be - it's 10:32pm
maybe I will eat some boiled veges
 
and become FAT
 
you can become fat from eating boiled veges?
 
you can.
just think about it
about getting fat
...
sometimes I wonder, would you hit me if you could reach me
 
No I wouldn't, if I hit everyone who verbally attacks me I would be very exhausted all the times when I am awake
 
welp it's not happening anyways
 
12:38 PM
Steamed Brussels sprout & cucumber it is ... with soy sauce & hot chilli paste
an hour jogging tomorrow as usual
 
@telkitty.exe yeah that sounds good
brb gonna take some cookies
aww those croissants are quite tasty
 
12:53 PM
I love my veges :p
besides, family friend was over today so had roasted duck, prawns etc
cookies & croissants are great for breakfast, I don't crave them for supper :p
I hope this disgust you
freshly cooked
 
@telkitty.exe why would it?
 
It's green?
Some people don't like greens
 
so what?
but you know, it's quite a lot
you probably have a very large stomach
 
16cal/100g x 300g + 43cal/100g x 100g = 91 cal
digest will take 90 cal
so net = 1 calorie
chilli worth 5-10 cal
 
@ScarletAmaranth This movie was even a hit in the US (I think it even got an oscar).
 
1:09 PM
I calculate calories when I eat veges, but I don't count it when I devour cakes ~_~
 
That's pretty hardcore if you actually calculate calories at all...
 
I don't like cake.
 
try french cake
 
@StackedCrooked What movie?
 
Spirited Away
 
1:20 PM
"All our profits were... Spirited Away"?
 
dunno about that :D
> Hayao Miyazaki was not present at the awards ceremony. Presenter Cameron Diaz accepted the award on his behalf.
lol
 
you can do that? "I'll take it for him..."
 
if you are quick :)
 
auto dynamic = false;
love auto.
 
if Cameron Diaz took my award, I wouldn't even be angry
 
1:40 PM
maybe two are good friends ~shrug~
 
haw bout she bein presenter makes it normal to accept award for absentee
 
user1804599
Man.
 
ITT StackedCrooked is a slut.
6
 
user1804599
Clojure compiler source code is full of mixed tabs and spaces.
 
@rightfold I feel like a Woman?
 
1:55 PM
oh alf
so friendly
 

« first day (1283 days earlier)      last day (3648 days later) »