« first day (1007 days earlier)      last day (3955 days later) » 

3:00 AM
what is this? ascii art for compilers?
 
it's analog literals.
 
@DeadMG oh wow
 
lol
@Magtheridon96 Did you end up doing your variadic function composition?
 
in C? forget that shit.
 
@Rapptz Nothing worked ;_;
 
3:05 AM
lol
@DeadMG No, C++. He wanted to learn variadic templates by doing it.
 
orite
 
Oh wtf... I was browsing polycount (a forum about 3d models and related subjects)... some dudes are making 3d sculpts of Cockémons ... im scarred for life
 
doing it in C++ would be pretty trivial
 
@DeadMG lebgeeks.com/forums/viewtopic.php?id=14395 This was the excercise pretty much
 
@Borgleader Ahahaha! The only hit in google.
 
3:07 AM
I can probably do it for a special case where the return type of the function I have to return is int, but not much more than that O_o, Same for arguments. Not sure how to generalize anything.
 
@MarkGarcia The puns... so many puns
 
@Magtheridon96 Oh, you return a function that calls, that's slightly more complex.
 
I think if the functions take an int&, I can simply rely on how (f1(x), f2(x), f3(x)) is evaluated to get an accurate result
 
I can only make it work with a single parameter.
 
return (fn(x)..., f1(x));
^Is that even valid? O_o
(this assumes the functions have a signature int&(int&)
 
3:17 AM
@Magtheridon96 Yeah, but it returns the return value of the last function.
 
I need to stop buying stuff online
For the past few days I have been on a shopping spree
 
@MarkGarcia Which is the intention, so that's good :D
 
@Telkitty猫咪咪 Steam Sales?
 
@Magtheridon96 Oh. Well, then perhaps that's the right thing to do. :)
 
huh
 
3:18 AM
I am so going to get Seg faults for this
 
my trivial attempt fails because the compiler can't seem to grok the recursion involved.
curious
 
Hm.. mine fails on > 3 lmao
 
this is mostly correct, aside from the aforementioned recursion problem.
 
Hm.
 
not sure why the compiler can't find the function recursively
 
3:22 AM
user image
3
Not sure i this is supposed to be funny but im laughing my ass off
HL3 conspiracy theories ftw
 
auto f3 = [](int y) {
    return std::to_string(z);
};
 
@Borgleader nah ... got my tax return :x
and also need to replenish my hiking/camping gears
started with steam sales everywhere though
then discovered better deals online
 
Yup, mine doesn't even compile either and it sucks badly.
 
huh
Coliru won't recognize the recursion at all.
 
@DeadMG @StackedCrooked is going to be heartbroken hearing this
 
3:27 AM
ah, I found the problem.
 
@Borgleader The July 22 is real. The reason behind it is quite different though -- it's really to recognize the birthday of one of the true stars of the programming world.
 
quantum computer real or not
 
@DeadMG Hm.. That's not function composition. Well.. I guess it is.
 
3:28 AM
distrust because internet is full of hoaxes
 
@Rapptz Er, yes, it is.
the compose function returns a function that, when called, composes its arguments.
 
I'll be reading that code heavily to understand how it works ^_^.
 
@DeadMG Yeah I got what I meant when I edited it. Never mind.
 
@Magtheridon96 It would be a lot simpler, but GCC doesn't want to handle the recursion in quite a few places.
 
@DeadMG Why is it backwards?
 
3:29 AM
@Telkitty猫咪咪 Real, but quite limited compared to the standard model for quantum computers.
 
@MarkGarcia Why is what backwards?
 
@JerryCoffin Who would that be? (Also, what made me laugh was that middle section)
 
@DeadMG Clang didn't compile your initial version either :P
 
@MarkGarcia It's in the correct call order.
f4(f3(f2(f1())))
 
Oh.
 
3:30 AM
if you call compose(f2, f), then you get a function that calls f2(f(...)).
 
Ah, nice semantics
 
in addition
the functions may take and return any types, and the types may change during composition
and the initial function may take arbitrary arguments.
 
lol. I thought it would be executed sequentially with the return of the former the argument of the latter. :p
 
Needs more using.
 
Oh wow.
GCC compiles yours fine, but Clang generates errors on my end.
 
3:34 AM
@Borgleader Now, now. I can't make it too easy for you. You need to do some research.
 
Actually I found it in the mean time, Ada Lovelace
I first went on wikipedia and check the births for july 22 and it was all actors and such
but i googled it afterwards and found it
:3
 
Ada Lovelace is sexy
And I'm a necrophiliac
 
ewww
 
@Borgleader Sorry, but no. She was born 10 December.
 
3:36 AM
......... uhm. she wouldn't even be bones
 
wuutttt google has fooled me
 
fragments of bones at best
(current_year - 1852)
... we need wolfram alpha integration -____-
 
The programmer I'm thinking of is still alive (at least AFAIK).
 
Alan Turing was born on June 23
1 month backwards and 1 day forwards
 
man
I have spent way too long on the American SC2 servers
now I can't stop talking about niggers.
 
3:38 AM
How Paula Dean of you
 
@DeadMG Better than stopping, just don't even start.
 
@DeadMG :D
 
@JerryCoffin Jon Woods?
 
@JerryCoffin I had to disguise myself as this guy as part of an RPG, and he named himself "Hitler Was Right" and spent the in-game days talking about how we should "gas ALL THE FUCKIN' NIGGERS".
 
@JerryCoffin how many cores does the quantum computer have?
 
3:39 AM
cue me after I murdered him and disguised myself as him being forced to also spew that we should gas all the niggers to maintain my cover.
 
@Telkitty猫咪咪 With a quantum computer, you mostly care about qubits, not cores.
 
Arent quantum computers currently limited to solving optimization problems with like... simulated anhealing or something?
 
@Telkitty猫咪咪 That statement made me laugh. Not that... it's just funny. :)
 
@Borgleader Who's Jon Woods?
 
Hello
 
3:41 AM
oh BTW ... just bought this: dx.com/p/… ... so much cheaper online
 
@JerryCoffin Alan Cox?
 
@JerryCoffin Jon Vincent Woods is a former UK based computer game producer. In 1984 he co-founded Manchester based software development company Ocean Software with David Ward.
 
#Research
 
@Telkitty猫咪咪 I don't trust Deal Extreme. I figure at those prices it'll probably fall apart in my hands when I open the package
 
@Magtheridon96 Best guess yet, but less known than that (yet clearly a better programmer, since Alan apparently mostly writes C).
 
3:44 AM
@JerryCoffin Are you born on july 22? :P
 
@Borgleader Finally figured it out! Congratulations! :-)
 
Yay! :3
 
@JerryCoffin Happy almost-birthday Jerry :3!
Oh hey, I finally got my Electorate badge ;_;!
 
@Magtheridon96 Thanks -- but at my age, making it to another birthday is more a matter of relief than celebration. :-)
 
@JerryCoffin I searched for your birthday. Couldn't find it. Guess I'll take that seriously. :)
 
3:49 AM
@JerryCoffin I thought you'd already seen so many you lost track of how old you were back in the Cretaceous?
 
@Magtheridon96 Congrats.
 
@JerryCoffin @MarkGarcia, should know it operates on a different theory. But still, wouldn't two quantum computer working in parallel faster than 1 quantum computer? I mean, yes, by definition, qubits can be a superposition of 0 and 1 at any time, but not at the time result is read.
it could only be 0 or 1 ... otherwise the result would be meaningless ... remember a computer has also have to work with external devices like say, monitor, printer etc
 
@DeadMG I did, but I'm still pretty sure it's been a really long time.
 
@JerryCoffin 50 is the new 35
 
@Telkitty猫咪咪 Of course they would be faster, just like more humans, though they are slightly more complex than quantum computers, working together at the same.
 
3:52 AM
@Borgleader I trust it as much as I trust ebay
 
I'm going to be 18 in about a year and I really do not want to drive, so how long do you think it'll be before Google actually starts selling their self-driving cars? o_O
 
@Magtheridon96 Depends on what base he uses.
 
@Telkitty猫咪咪 In theory, probably. Comparatively speaking, think of them as somewhere around the stage of, say, an Eniac though. They're mostly trying to get one to work dependably at a decent price, not thinking in terms of anything like multiple cores.
 
@MarkGarcia We all use base 6 :D
 
so far so good ... delivery speed sucks but hey it is cheap. can not expect $50 quality from a $5 gadget.
 
3:54 AM
@Magtheridon96 Hmm...I guess I'm still pretty spry for being past 80.
 
@Magtheridon96 and the 40 is the new 30, hey by that definition I am only 25 :p ... or even less
 
Well, I think I need to go get some ice cream. Somehow I have a serious craving all of a sudden.
Later, all.
 
Base 6 has that effect on people
@Telkitty猫咪咪 In base 20, I'm not even 10 :D
 
haha, ~calls mod to ban you account~ j/k :)
 
4:00 AM
@JerryCoffin Later :)
 
@DeadMG Permission to post your compose implementation?
 
sure
 
I wish java would stop trying to peddle bs McAfee, toolbars and security exploits in their updates.
 
Next thing you know, they'll be walking to your doors asking you to accept Oracle into your heart
 
lol Money Oriented Programming
This interview is ancient.
> The best way to judge a language is to look at the code written by its proponents. "Radix enim omnium malorum est cupiditas" - and Java is clearly an example of a money oriented programming (MOP). As the chief proponent of Java at SGI told me: "Alex, you have to go where the money is." But I do not particularly want to go where the money is - it usually does not smell nice there.
 
4:04 AM
haha. It kinda sounds like a name that would belong to the a super evil syndicate in a movie or something.
 
I'm still gaining rep after yesterday's whoringfest
 
whoringfest?
I only have 76 rep. I'm not very famous.
 
rep whoring feast
 
All questions sucka
just answering questions?
 
Yeah, usually, I answer one question and stick around until I make sure the asker is done. Yesterday, I did this with 3-4 questions at a time
 
4:08 AM
ah nice
I haven't asked one in a while. I'm getting the hang of openGL finally
 
I wish I could say the same
 
and lambda functions.
Well, I mean I don't know dick about shaders or anything like that
I just mean I can render some textures and primitives and blend shit. Make some wordss.
haha
I understand the frustrum stuff
how the perspective is set up
but no idea how to really doa nything cool
haha
 
@Chemistpp Draw something blue.
 
@MarkGarcia for somereason I can't log into imageshack right now
 
0
Q: Difftime seems to not calculate it right

PALENWhen I run the following code: struct tm tm1, tm2; strptime("2001-11-12 12:00:00", "%Y-%m-%d %H:%M:%S", &tm1); strptime("2001-11-12 00:49:00", "%Y-%m-%d %H:%M:%S", &tm2); seconds = difftime (mktime(&tm2), mktime(&tm1)); printf("seconds: %f\n", seconds); I get the output: seconds: -4481653...

A free question.
(He answered it himself pretty much)
 
4:22 AM
ok ill read it real quick
haha
 
Then again, how would one answer such a question? :p
 
bah he got it
 
I was trying to answer it, but the man was changing his code every 15 seconds
 
lol
that's my current menu system. My font is broken right now
I'm noob :x
 
Internet connection is so slow...
 
4:27 AM
mine to
what is that?
I think it's image shack
 
I'm in Indiana
you anywhere close?
 
Philippines. :p
 
The Earth is a very small place anyway
 
Other side or the world.
 
4:28 AM
@Magtheridon96 well, agreed. But not in this context.
 
~150 ms speed of light delay. Bad place to surf.
 
Hmm, I never thought about that. Base &&b = Derived{};
 
okay, so if i have an object t, &t is it's address, what is &&t
 
@Chemistpp That isn't valid.
 
@Chemistpp I say it's a pretty cool UI.
 
4:34 AM
@Chemistpp Nothing?
 
@MarkGarcia and it's blue. I'm still working it out. I can click and drag menus. minimize so far. I'm working on text input right now and broke my font class. Not sure how yet.
 
Base&& is an r-value reference.
 
@Chemistpp You can assign &t first to a pointer, then & again on that pointer.
 
@Rapptz i think he wants to be able to put all of it in a namespace but enum classes act like namespaces already unlike regular enums so the namespace would be redundant
 
@Rapptz Yes, I was asking because of the comment above
 
4:34 AM
@Borgleader enum classes already do this, hence.. what's his issue lol
 
the functions
 
sec I'll show you.
 
@MarkGarcia Okay, so the address of the pointer :)
 
@Chemistpp Yeah. But as what they said, what && in @chris's example denotes an r-value reference. And hey, && is the and operator too! :)
 
@MarkGarcia Yeah, i realized what you said didn't apply. I"m on my way to look up r-value references now. So, hanging out in this room, I learn a lot of C++.
 
4:37 AM
@Chemistpp Good luck. It's a huge topic.
There's a nice SO question on them, actually.
 
@Chemistpp Sure you'll do. I learned a lot from here too.
 
@chris which means, I"ll read about it. Some time from now, I'll try to use one, and then actually learn them.
 
242
Q: What are move semantics?

dicroceI just finished listening to the Software Engineering talk radio podcast interview with Scott Meyers regarding C++0x. Most of the new features made sense to me, and I am actually excited about C++0x now, with the exception of one. I still don't get move semantics... What are they exactly?

 
or a way around it
yeah, thats some good votes
someone linked me the C++ faq the other night when I was toasted
 
@chris s/are/is/, I think.
 
4:38 AM
I think it was bartek, but I was really drunk
 
Don't expect to understand it completely the first time.
 
type safe.
Non-issue.
 
@Rapptz He wants to be able to put the functions in the namespace colour as it used to be (to avoid the prefixes). ANd Ive tried to do that but if the namespace and the enum class have the same name the compiler cries that Colour is not a type
 
This is my understanding of what he wants: ideone.com/0Zv0du
@EiyrioüvonKauyf stackedcrooked :P
/cc @StackedCrooked
 
4:42 AM
@Borgleader Moronic.
But you can emulate it you really want.
 
I'm trying :P
 
0
Q: my app runs very slowly in windows7, not happen in windows xp

Jacky ZhouI write one app with VS2012 in windows 7, if the app runs over than 1 day, now just click a button to show a simple dialog, it becomes very slowly, it shows the window after more than 30 seconds. But it's fast when I run other application in windows 7 now. It only happens in windows 7 OS, not wi...

 
I'll show you how.
 
I like this comment:
who knows it? Thanks in advance — Jacky Zhou 21 hours ago
 
Still retarded.
Probably not that type-safe either.
 
4:47 AM
@StackedCrooked hey mind if i ask you a bunch of questions about how you made coliru
 
Alright, so just from the first part. I find that this is making sense. consider: fa(fb(v));
Where we operate on v by some function fb and pass that into fa as a parameter, we cannot ever reclaim fb(v) because it was only temporarily stored.
but rvalues allow us to move that data so it can be inspected later
although I need to go read the second part because I don't really understand what the application is
I don't understand why the function cares, I guess.
 
@Chemistpp Move semantics let that temporary be moved into the parameter of fa instead of copied.
 
is it faster?
 
Take a vector, it copies the pointer instead of everything it points to.
 
I guess it would make sense
 
4:52 AM
Since the compiler knows that fb(v) will never change after, it gives fa the real thing, which is defined by the type's move constructor.
 
Sot he function changes to the input are reflected afterwards but sense the input is not stored, nothing really matters
 
@Chemistpp Pretty much, by moving it, you're saying you'll never touch the original again.
 
Ok, cool
 
Rvalue references come in more with std::move.
If you store the result of fb(v) into a variable...
 
I'm pretty sure I read a "WTF is std::move" doing a wh/ile back
 
4:53 AM
Then you never plan on using that variable again...
You can use std::move on it to create an rvalue reference, which allows the variable to be moved somewhere else.
Which then means it could very well be left in an invalid state.
It's a big time saver sometimes.
 
Yeah, I realized that
with the instead of copying everything, you copy a pointer
that was like pretty intuitive. But when explained that way ;)
 
Even when you pass by value, it still moves it if it's a temporary or an rvalue reference (which std::move returns).
You can also take an rvalue reference explicitly, which comes with a guarantee that the object it references will never be used again.
 
@chris Or if the compiler can satisfy the as-if behavior. :)
 

« first day (1007 days earlier)      last day (3955 days later) »