« first day (771 days earlier)      last day (4175 days later) » 

11:00 PM
@sehe I, uh. Accidentally put two functions together, without realizing one called the other. And then... ... hilarity ensued...
 
How appropriate for Stack Overflow
 
IOW you got pwned
 
Ell
@deadmg that seemed logical to me, but for some reason (dating back to some MySQL database or PHP ) I had in my head it was 20 bytes
 
that's probably some much shittier, very much older hash
 
Ell
does endiannes only occur to numbers? or all data?
 
11:02 PM
@Ell Anything stored in something bigger than a byte that is a native PoD type.
 
@Ell SHA-1 is 20 bytes.
 
Ell
ahhh I've done got myself confused again
 
no, my nubbery
SHA-2 is 256 bits, not 256 bytes.
 
E.G., double, float, short, long, int, etc.
These will all be ravaged by Endianess.
 
@DeadMG There are different sized versions.
Up to 512, IIRC.
 
11:03 PM
@sehe So yeah, the Callback system can take all kinds of abuse.
 
@Xeo uhm... nope. It seems that variadic templates are somehow broken in VC++ (Nov. CTP) and I can't make the thing work. (however it seems it could work in g++)
 
Xeo
Yeah, CTP variadics are pretty bad
 
You can even use Callback itself as a stand-in replacement for std::function, but I think std::function still has its merits (though I'm not sure if std::function is == comparable).
@Abyx Variadics eat shit in the November CTP. You have to wait for +0.1 (e.g., a minor version update) before you get what you want out of the VC++ compiler.
 
@ThePhD Really? The last incarnation I saw did not accept any callable object, like std::function does.
 
Of course, I haven't quite figured out a way to do Callback<void()> = {some function pointer}
@R.MartinhoFernandes Uh. You've, uh. Lost me. Any callable object?
 
11:07 PM
Yes, any object that is callable.
 
It can take free functions and member functions. ... that's, uh. That's all that's callable as far as I can tell...
 
.... WAIT. Do you mean anything that defines operator() ( stuff ) ?
 
Could anyone take a look at my question, regarding sockets and the read call?
 
11:07 PM
God FFFFFFFFFFFFFFFf Table-flip.
 
Like lambdas.
 
Alright, let's see if I can make it take lambdas.
 
Make them with captures, otherwise they convert to function pointers.
 
... Uh. Captures? The little strange [] thingies with optional &= inside?
 
11:11 PM
Hm. This problem can be simplified: if I make it constructible from a std::function, I can just consume Lambdas that way.
 
Then why aren't you just using std::function directly?
 
I think it was simply for a tokenless Event system.
And being able to identify things by function signature.
And by object + function signature.
 
Fred, you still there?
 
Lambdas... I don't know how you'd remove a lambda, because I don't know how to get its unique signature.
Much less how lambdas even work internally...
 
@ThePhD Not accurate. You were actually achieving thunking by specializing on the actual (mem)function pointer values. Which is why you could distinguish event handlers even if they have identical signatures on the same type! (/cc @R.MartinhoFernandes)
 
11:16 PM
Oh great... so my parents are fighting over who gets the 2x2TB drive I left at home.
Of all things...
 
@Mysticial ... 2x2TB? So there's 2?
Can't they share?
Or is it 2 x 2TB, as in 2 platters, 1 HD?
 
@ThePhD Yeah, it's a dual-slot enclosure with two 2TB drives.
It used to be my primary copy of my Anime.
 
=l
 
But then I picked up a pair of $100 3TB externals on black friday.
 
@ThePhD You can't.
 
11:18 PM
So I moved all the anime to that. And left behind the 2x2TB box.
 
Xeo
@ThePhD I told you it gets fugly as soon as you step away from pointers.
 
@Mysticial Obviously you need to donate it to children in need (of an anime fix).
 
Xeo
<--
 
Which is exactly why Boost.Signal and shit use tokens.
 
:)
 
11:19 PM
Oh, BTW, hi all.
 
A design without tokens just won't work in general in C++.
 
lol
 
@ThePhD That's the whole point of std::function and friends.
 
user1182183
hey guys where can I view the lastest episodes of American Dad, Family Guy, The Simpsons, the cleveland Show? I thought they're released every week, so the 11,th, 18,th, 25,th.. it's 26th (0:21 AM UTC+1 Amsterdam Time) and I still don't see the episodes on watchseries.eu :(
 
thepiratebay.org
 
11:22 PM
watchcartoononline.com probably has them (but how would I know? I'm not a pirate!)
 
user1182183
uh ok
 
Ell
hmm. how does authentication work in a game client? do servers hold an authentication ticket which expires after a certain time? or is it all in the client code? I guess not trusting the client is important
 
I don't understand why you would want to watch those shows though
 
user1182183
I like to watch those shows :$ especially family guy and the simpsons
 
@Ell: Be more specific - what authentication?
 
user1182183
11:24 PM
I hate my life and I have to have something to live for, cartoons don't seem to be a too bad idea. and it work.
 
But the new episodes? Watching grass grow is funnier.
 
Now to bed. Good night.
 
user1182183
@Pubby personal preference huh
 
Stop liking things I don't like! Hehe.
 
night
 
Xeo
11:25 PM
@GamErix Anime > western cartoons.
(Except Avatar - The last airbender, that thing is basically an Anime from the western hemisphere)
 
user1182183
@Xeo on watchseries or watchcartoons ? ;p
 
Xeo
What?
 
@R.MartinhoFernandes G'night.
 
Anime and non-anime are pretty even IMO
 
user1182183
even torrentz.eu doesn't have the simpsons s24e06 :(
 
user1182183
11:27 PM
@Xeo which website
 
question unrelated: is there a way to measure angles in photoshop?
 
user1182183
uuu
 
user1182183
i think I found it
 
user1182183
.rar ... password/scam suspision
 
go eztv or piratebay
 
Ell
11:29 PM
@deadmg well for example, one must log in to play a multiplayer game online. the player logs into the lobby server which chooses other players to create a match.
players shiuldnt be able to impersonate other players
 
@GamErix It hasn't aired yet.
 
user1182183
@DeadMG oh ok ;o
 
TV in the US isn't uploaded to the internets until 2-3AM GMT
 
user1182183
what time is it in america?
 
11:31 PM
no idea
but IME you won't get US TV until 2-3AMGMT, so it's usually best to just grab it tomorrow
 
@R.MartinhoFernandes Well, even if I can't I'm going to try. I'll attempt to make a uniquely wrapped callback deducer from a lambda. Hopefully I'll get lucky and maybe strike Lambda Gold or something.
 
5:30 pm Chicago
 
@Crowz Sort of -- if you draw a line with the ruler tool and open the Information window, it'll show you the angle of that from horizontal. If you want the angle between three points, you need to do that twice and subtract to get the angle between the two lines.
 
user1182183
I should add an additional clock to my PC...
 
@ThePhD You won't. It's impossible to create a tokenless system.
 
user1182183
11:31 PM
with GMT time
 
@DeadMG I made it this far. I can't just roll over and give up!
 
user1182183
so if it aires 25-11-2012, then how late does it air? ; o
 
I assure you it is completely impossible.
 
@JerryCoffin Ah thank you good sir!
 
Well, okay. I'll limit myself: an hour, at the most, in my foolish endeavors. Ey? That's not a bad trade.
 
user1182183
11:33 PM
@DeadMG we have so powerfull machines nowadays, I always feel very sad when I hear something is impossible
 
@Crowz Surely.
 
@ThePhD He who knows when he can fight and when he cannot will be victorious. — Sun Tzu.
 
@GamErix It has nothing to do with power.
 
user1182183
@DeadMG Iknow, just , have to write somethign here as there's nothing to watch xd
 
@ThePhD Can waste as much of your own time as you'd like :P
 
11:35 PM
Nothing to watch? You have watched all videos made in the past 100 years?
 
user1182183
@Pubby if you substract all the videos that I don't think I'll like, yes.
 
@Crowz I was brushing teeth, did I miss anything?
 
@FredOverflow The greatest endeavor: hacking the lambda expression in C++, is about to begin.
 
man
I wanna play SourceForts
 
@GamErix If you need a reason to live, dive into Haskell. You will never run out of stuff to learn.
 
11:38 PM
@FredOverflow Yes -- looks like there's still a bit of lettuce between your second and third teeth on the upper right side.
 
@JerryCoffin Nope, I always floss on Sundays. Pretty sure no lettuce left. I didn't eat any to begin with :)
 
user1182183
@FredOverflow Uh programming is not for me : ( I even can't properly code in C nor C++ and Haskell.. isn't it harder?
 
Oh wait, now I get the pun, lol
@GamErix Haskell is a lot more theoretical, but it also has a lot less stupid gotchas.
 
@GamErix Depends on what you're looking for out of a programming language.
 
user1182183
@DeadMG so what's stopping you from playing it?
 
11:40 PM
@GamErix Dead.
 
{} doesn't help - ideone.com/8G361c /cc:@Xeo @JohannesSchaub-litb @sehe
 
user1182183
@DeadMG Oh, well, ther are always a few people who play it, find them, else play with friends
 
@FredOverflow Oh I think I got it. You can see what I was working on if you want, I'm trying to program a "dynamic grid" artist tool
 
user1182183
@FredOverflow hello world program in haskell? link? :P
 
@GamErix They're not released every week, sometimes there are small pauses due to sports events or whatnot.
@GamErix main = putStrLn "hello world!"
 
Xeo
11:41 PM
@Abyx A compiler bug.
 
user1182183
@FredOverflow ye but there aren't any special events right now, right? ; o
 
user1182183
@FredOverflow and that.. prints to a console window?
 
Whaaaaaat?
A lambda expression isn't allowed to be a constant expression?
 
Xeo
A braced-init-list is required by the spec to evaluate left-to-right.
 
11:42 PM
What kind of BOLOGNE reason is THAT.
 
Ell
I get abyx and xeo confused. and the cat and mooing duck confused.
 
@GamErix Nope.
 
Is it my imagination or C community is a bit happytrigger? They love to vote negative without any explanation
 
fuck C++ compilers ='(
 
@AlbertoBonsanto I would think that applies more to C++ than to C.
 
11:43 PM
@GamErix What's stopping you from checking an episode guide to see what is the latest episode?
 
Ell
@abyx if only we could, I would be a significantly less frustrated teenager.
 
And anything that even smells like premature optimizations tends to get downvoted.
 
@Mysticial lol
 
@GamErix yes
 
@AlbertoBonsanto It's your imagination. They're actually a lot trigger happy, not just a bit.
 
11:43 PM
The C++ community downvotes and then leaves a snarky comment which is not helpful
 
What does "trigger happy" mean?
 
"-1 You suck."
 
@Mysticial So you're implying that they pay attention to whether it's premature? Most I've seen seem to assume that all optimization is premature.
 
@JerryCoffin Note the "smells like" part. Everything optimization "smells like" premature optimization. :P
 
11:45 PM
@FredOverflow Presumably something like "quick to shoot" -- in this case, downvoting with little or no real reason.
 
Ell
this code smells like fish.
 
@JerryCoffin & @Mysticial Now I imagine them with a trigger in their hands with an evil Lelouch's Smile looking posts to vote negative or laughing totally crazy youtube.com/… . :)
@FredOverflow Happy trigger means someone who likes to shoot like crazy :)
 
What the fuck kind of type is this, C++?! :
main::__l3::<lambda_a61a01de8ec45941342188d070ca2f65>
Holy shit how am I supposed to tinker with that?
 
It's the type of a lambda function. You're not supposed to look at it, though. Highly implementation-defined.
 
@ThePhD You're not.
 
11:49 PM
@JerryCoffin But I have to! For the good of Tokenless callbacks everywhere!!
 
sbi
@R.MartinhoFernandes The thing is that I did let myself drift. But it would take days, if not weeks...
 
@ThePhD Told you it was impossibru.
 
(╯°â–¡°ï¼‰â•¯ï¸µ++) dammit how can we write any code with that fucked compilers =\
 
But it's like I've run straight into a brick wall. ._.
 
@Abyx (╯^_^)╯C︵++) Now It is C
 
11:50 PM
@ThePhD Told you it was impossibru.
 
sbi
@FredOverflow Your statement said nothing about int.
 
@sbi But the question was about calling max on integer literals.
 
Xeo
@ThePhD Not like we didn't warn you.
 
sbi
@Mysticial What joke would that have been? Looks sternly at the puny puppy.
 
0
Q: Rename Stack Overflow to Homework Helpers (a rant in plain text with bullets)

SAJ14SAJI think it is time to accept what Stack Overflow is, and rename the site Homework Helpers. We need to write at least the following FAQ topics to help new users know the best way to ask questions: How to ask a question when you don't even know what the subject is. Why use of Google is antithet...

 
11:51 PM
@Mysticial 1+
 
sbi
@FredOverflow Ah. Well, go ahead and add it. I have done a day's work today, and won't do anything as daring anymore.
 
@Mysticial You'd think this would be posted by a veteran, but this guy has 106 rep...
 
> How to ask a question when you don't even know what the subject is.
@Mysticial lol
 
Oct 3 at 21:51, by DeadMG
fifty quid says that he snaps after finding something he wants to bin but can't
 
sbi
@Mysticial Erm. Where's the joke in that?
 
11:53 PM
@Borgleader probably a sock puppet
 
Xeo
I think this must be a joke, or sarcasm. — Alberto Bonsanto 59 secs ago
Wooosh
 
@sbi The puppy does not have fifty quid.
 
sbi
@Cheersandhth.-Alf Did you just admit to be unable to tell your nation's flag from that of another nation's?
 
@Xeo I say what I think
 
Relevant
 
sbi
11:54 PM
@R.MartinhoFernandes Oh. Well. And why would that be funny?
 
So, if I'm getting this right,
almost all Lambdas are structs,
and Lambdas with captures contain the information stored inside of them...
 
s/almost//
 
Xeo
all are
 
@sbi In this case, it's actually none of the above: it's the flag of a long-defunct attempt at a nation (the confederacy from during the US Civil War).
 
Xeo
s/structs/non-union class types/
 
11:55 PM
Then their operator() can be considered a Member Function ?
 
Ell
I want a Norwegian apprenticeship in programming after college. I hope there's such thing
 
Xeo
They're required to have one.
 
Mmmmm.... this might prove helpful.
 
Don't treat lambdas specially.
 
@ThePhD operator() must be a member-function as per the standard.
 
Xeo
11:55 PM
MSVC fucks decltype(&T::operator()) up :|
 
What about struct foo { template <typename T...> void operator()(T&&...); };?
 
@Xeo I've been meaning to ask, what's decltype() for?
 
Xeo
declared type
 
Ell
get the type of an expression
 
Or the type of a variable.
 
sbi
11:56 PM
@JerryCoffin And how is that answering my question?
 
So it's sizeof for types? Is it standard-mandated?
 
sizeof is for types.
 
sbi
@JerryCoffin Hi. You appearing here means I should go to bed.
 
Xeo
@FredOverflow A variable name is an expression, isn't it?
 
@Xeo decltype treats variables differently. decltype(var) is not necessarily the same as decltype((var)).
 
Xeo
11:57 PM
Ah, yeah, the value category stuff
 
@sbi It's not. I almost never answer questions here.
 
Xeo
(var) is an expression, and just var is a name, yeah.
 
@sbi Apparently you must be an hour late or so.
 
@JerryCoffin You just did!
 
@R.MartinhoFernandes Thus the "almost"...
 
11:58 PM
@Xeo Although in almost every context var and (var) mean the same, just not for decltype.
 
sbi
@R.MartinhoFernandes Shush! Didn't you say you wanted to nop about an hour ago?
 
You can even say int (answer) = 42; :)
 
Xeo
@FredOverflow return (local_var); will not move, IIRC :)
 
@sbi Good point.
 
11:59 PM
@Xeo It will, IIRC. I had a question about that somewhere. Let me see if I can find it.
 
@FredOverflow what would you do if one of your students do that in an exam?
 
@AlbertoBonsanto Do what?
 
Xeo
@FredOverflow Meh, was it that rule that (expr) is equivalent to expr? I seem to remember something like that.
 

« first day (771 days earlier)      last day (4175 days later) »