« first day (415 days earlier)      last day (4531 days later) » 

9:01 PM
@keithlayne ecstasy?
 
Empty
 
I'm on instant soup right now.
 
@nil that explains why I suck so much...maybe I should hold it a while
 
I'm out of food. :/
 
user457812
Would be worth trying
 
9:02 PM
@cat did you never go to the store?
 
user457812
I'd offer you some of my pizza, but I'd be out of food if I did
 
Been there, eaten that.
 
I'm out of empty stomach.
 
user457812
And it's the last of my food, since the license on my car expired and I'm waiting for the new stickers to arrive in the mail
 
user457812
I am doomed!
 
9:03 PM
@StackedCrooked since you love anime so much, I assume you're eating Ramen
 
user457812
No, he's eating pocky.
 
@keithlayne Nope, actually just bread and cheese. And instant soup.
 
user457812
And I like anime a lot, but I hate ramen for the most part
 
I don't know of another way to fill my stomach for $0.18
 
user457812
Could ask a hobo for the daily special?
 
9:05 PM
I've never had the real thing
I meant without resorting to hobofication
 
user457812
Nothing wrong with a little hobofication. You could strap rockets and chainsaws to your hobo and he'd be badass.
 
until he pissed out his excellence
 
user457812
I won't say how to stop that because it involves some very unpleasant surgery and a series of tubes
 
the hobonator 3000
 
user457812
THE HOBONATOR - He's going to bum you out. COMING FALL OF 2012.
 
9:09 PM
we'll sell you the whole seat, but you'll only need the edge!!
4
 
user457812
Damn it, my coffee is too hot to drink in one go, but I have to leave soon...
 
user457812
Hmmmm
 
First world problems.
 
user457812
I love first-world problems because they don't involve me dying
 
I need someone to accept my answer quickly so I can get 300 rep in one day
time is running short
 
user457812
9:12 PM
To class!
 
The 200 rep cap is stupid
 
@SethCarnegie I accept your answer. How's that?
 
user457812
I accept you as a friend!
 
I had 300 rep on Saturday. It felt good.
 
9:15 PM
@cHao @jalf Are you around? I need to pick your brains.. again :)
 
maybe there should be an adaptive rep cap
 
or just a bigger one
like 1000
 
Xeo
0
A: static variables in lambda function objects

Xeo§5.1.2 [expr.prim.lambda] p1 lambda-expression: lambda-introducer lambda-declaratoropt compound-statement p5 The closure type for a lambda-expression has a public inline function call operator [...] p7 The lambda-expression’s compound-statement yields the function-body (8.4) of th...

 
semi
sup?
 
I would prefer a rep minimum of 1000.
 
9:16 PM
minimum for what
 
as in rep_cap = name==std::string("jon skeet") ? 4 : ∞
 
meaning you get at least 1000 rep
 
for doing what
 
@cHao Hey, I hope you remember your stuff on UA and MTA?
 
nothing
 
9:17 PM
doing stuff is overrated
 
UA/MTA? as in mail?
 
@keithlayne comparing pointers ?
 
@Lews back to that again?
 
@cHao Yeah, exactly!
 
What about MTA?
 
9:18 PM
@keithlayne Different!
 
i know a bit, i guess...lol
 
@keithlayne I know, right.
Dammit, I need food.
 
@CatPlusPlus Em, what does it mean that the User is connected directly to the mta?
 
@Pubby happy now? :P
 
That's what I don't get... your knowledge would have to do! :)
 
9:19 PM
Depends on what the MTA is.
 
MTA == like, sendmail or qmail
mail server, basically
 
Well, I don't think it could be anything else than a SMTP server, really. Maybe SMTP forwarder.
I know, I'm just thinking out loud, dammit!
 
lol
 
@CatPlusPlus they're the same from the user's perspective, right?
 
Also, qmail is for masochists.
 
9:20 PM
@CatPlusPlus Yeah that's pretty much what the book has here.. the mta isn't a client or server. But I don't get how!
 
as is C
 
i couldn't think of another mta off the top of my head. i don't even consider exchange...lol
 
I have an idea though.. just not sure if it is right..
 
Xeo
@Kerrek fixed the post
 
@keithlayne Yes. I don't really know if that distinction is useful.
Maybe forwarder would be a server that never delivers locally.
 
9:22 PM
@Lews in my mind the MTA is a server, and maybe a client too
 
See, that's why I need food.
SMTP servers either save mail, or deliver it further along SMTP chain.
 
i consider the MUA a client, and the MTA a server. Unless the client is going and doing its own MX lookups and delivering mail directly to the destination
 
Is the mta stored with the ISP?
 
Yay, I just got TinyPTC to work under Visual Studio 2010.
 
Well, yes, MUA would implement a retrieval protocol, too.
POP3 or IMAP.
 
9:23 PM
@CatPlusPlus That makes it a client though..
 
SO CLOSE
 
Mail infrastructure is fucking complicated, what do you expect.
 
10 rep away from 300
 
@SethCarnegie Keep posting, you've got 3 hours.
 
@CatPlusPlus Nothing less :)
 
9:24 PM
@SethCarnegie how do you break 200? Only accepted answers?
 
That's why Google Apps is such a good idea. You can set MX records and forget all this crap exists.
 
@FredOverflow howdy
 
Also Postfix is the best SMTP server evar.
 
pretty much explains things the way i've understood them
 
9:25 PM
@keithlayne yes rep is unlimited for accepted answers
 
@cHao Thank you. Hopefully it answers my questions!
 
@LewsTherin TinyPTC was apparently developed for Visual Studio 6, and the code is quite strange in some places. But I'm glad I don't have to download a 1.6 GB library just to blit some pixels to the screen :)
 
Well, maybe except for Lamson, but I didn't use it in production yet.
 
@Xeo I'm still missing a puzzle piece; I added a comment
 
@FredOverflow Use GDI?
 
9:27 PM
@FredOverflow Hey dude, I just asked how you were... now I'm going to kill myself :(
 
@CatPlusPlus Would I have to write that WinMain crap myself? No thanks.
 
Well, or OpenGL. VS2010 already comes with WinSDK.
 
Xeo
@KerrekSB Shall I gather some more quotes?
 
@LewsTherin Well, you linked to my TinyPTC messsage...?
 
9:28 PM
@FredOverflow He didn't, chat autopicked it because message was only referring to nick.
And that was the latest thing you've said.
Yeah, that behaviour kinda sucks.
 
Yeah
 
@LewsTherin I still don't understand why you want to kill yourself.
 
@Fred I hadn't heard of TinyPTC...I assume the page I found is old. It seems X-centric.
 
@FredOverflow No idea what you were talking about.. lol. Was just a joke though.
 
^ my first TinyPTC output :)
 
9:30 PM
@Xeo If you can. I haven't found anything, so yes, I'd be very interested.
 
I think I'll write the next killer app as a native windows X client, just to piss everyone off.
 
@FredOverflow What does it mean?
 
@LewsTherin It clearly is a sine of Christmas.
 
@keithlayne TinyPTC runs on many platforms.
@LewsTherin Just a sine and a cosine overlapping.
It's also animated over time, but you can't see that here, of course :)
 
9:33 PM
@FredOverflow Very cool. I think writing CoD would be more fun though...
 
Are integer overflows ub for unsigned?
 
Xeo
Oh, wait...
 
@JohannesSchaublitb Instead of abstract template masturbation, I wrote a little program that actually does something "useful". Now I feel a little dirty :)
 
@cHao the UA is not connected directly to the MTA .. ugh so many variants :(
 
9:35 PM
@Pubby There are no integer overflows for unsigned numbers, unsigned arithmetic is defined modulo 2^32 (or whatever the size of your int).
 
There is a girl in this room?
 
@FredOverflow good
please spare us details about your other activity you mentioned.
 
is there a badge for a certain amount of rep in a day more than 200
 
There should be
 
9:36 PM
there are no girls on the internet. didn't you get the memo?
 
@SethCarnegie Yes, it's called the "you have no life" badge.
 
There's 200 rep/day X times.
 
aptly named
 
@cHao Something must have gone wrong...
 
@SethCarnegie there is if you have 200 rep a certain amount of days you get a gold badge
 
9:36 PM
[badge:rep-whore]
 
"Legendary"
 
@JohannesSchaublitb yeah I know about that one, 150 days I think
 
@LewsTherin you need a better mua.
 
There's Epic, too.
For 50 days.
> earned at least 200 reputation on 35 days
Gettin' close.
 
@cHao Mua or mta?
 
9:38 PM
you can't get a better mta unless you run your own mail server. :)
 
You can run it at home.
 
@cHao Lol. My PC is on virtually 24hrs so it is possible :D
 
when you earn badges like "epic" and "legendary" it should play a sound to announce it in the style of Unreal Tournament
 
It doesn't have to be, unless you want to receive mail from other SMTP servers.
 
I have 20 something days
of 200+
 
9:40 PM
@CatPlusPlus Please explain...
 
Sending mail requires one way connection.
There's no callback involved.
 
Yeah
 
@keithlayne And if someone accepts your answer in a question where all other answers have 0 upvotes, it should say "flawless victory".
 
@CatPlusPlus What about receiving mail?
 
3
A: How do I convert a char array to integer/double/long type?

FredOverflowWriting such a function yourself is a great exercise: unsigned parse_int(const char * p) { unsigned result = 0; unsigned digit; while ((digit = *p++ - '0') < 10) { result = result * 10 + digit; } return result; } Of course, you should prefer existent libr...

The bug discussion (in the comments) continues :)
 
9:42 PM
@FredOverflow uber awesome
 
Xeo
@KerreK: Editing done
 
@LewsTherin frequent polling
 
@LewsTherin What about it?
 
@FredOverflow What is that? Checking every couple of arbitrary minutes?
 
there was a UT mod we used to play with that would announce "crotch shot" and "crotch master" etc. It was super happy funtime.
 
9:42 PM
@LewsTherin yes
 
@FredOverflow Lol.
 
@FredOverflow Nice, thanks.
 
@FredOverflow sorry I can't help you if don't see security flaws in this code
 
:)
@LewsTherin Well, that's exactly what e-mail clients like Thunderbird do, right? Mine polls every 5 minutes or so.
 
Ah, another contestant for bullshit optimizations.
 
9:46 PM
@FredOverflow How can you tell it does that? I haven't used Outlook or Thunderbird before..
 
@LewsTherin Because you can configure the interval yourself :) How do you read e-mail?
 
Because it can't really do anything else, duh.
 
pine
 
@KerrekSB I don't think % can ever outperform &.
 
@FredOverflow Lol gmail, yahoo.
 
9:46 PM
At least for POP3. IMAP has idle push or something.
But POP3 sucks.
 
I haven't read about POP3 or IMAP yet.... ugh. So slow! :'(
 
@LewsTherin So webclients? They suck, mostly.
 
@FredOverflow A fight to the death is clearly indicated :-)
@Xeo Great. "safely", by the way
 
@FredOverflow What, why?
 
@LewsTherin Please try Thunderbird for a week and see for yourself.
 
9:48 PM
Poor support for PGP.
 
Xeo
@KerrekSB Woops
 
What's funniest in all those performance questions is people going all the way to assembly.
 
@FredOverflow Fair enough. Forgive my skepticism but I will try it out.
@CatPlusPlus What's PGP?
 
@CatPlusPlus Assembly is not deep enough, I want to see the transistors!
 
I want to see electrons :(
 
9:49 PM
I want to see... quarks or something?
 
Screw electrons. It's quarks all the way down.
 
Let's ask the guys at the Large Hadron Collider whether &3 is faster than %4!
 
"Will quarks in i % 4 spin faster than quarks in i & 3?"
THAT IS THE QUESTION.
Otherwise we loose performance and it is suck.
 
@CatPlusPlus lol, where did that one come from, by the way?
 
how will we debug a quantum computer?
 
9:51 PM
With quantum debugger.
 
don't look at it
 
D'oh.
@FredOverflow Some poorly written question.
 
link?
 
1
Q: WRL restrictions

Hamed MahmoodiI want to write a library using C++/CX syntax and use it in other projects. As you know, public value struct could not have any methods or operators, so we had to do things like writing static methods in another class to provide behaviour. Also we can't write code like this : private: int ...

First revision.
 
It's funny that you can remove downvotes even after the remove-vote-timelimit has expired by editing the post yourself
 
9:54 PM
@SethCarnegie But removing a stray space completely changes the meaning of the post!
 
C++/CX???
 
How is text encoded in ascii?
 
@SethCarnegie thanks for getting my crappy joke
 
Xeo
I love it when SO silently swallows comments to me. I wouldn't have known that @Johannes wrote a comment if I didn't go back again to my question just now.
 
@keithlayne what joke
 
9:58 PM
I guess it was crappier than I thought
 
@keithlayne just kidding, I got it
 
@Xeo Om nom nom nom comments.
 
I'm debating learning haskell
 
I can't convince myself that it won't be a monumental waste of time
 
10:01 PM
 
It's all cute and fluffy.
 
Me just love comment
@seth at least it would be an interesting waste of time
 
Is Real World Haskell suitable as an introduction or is it for people who already know Haskell
 
@SethCarnegie Real world haskell is for newbies, it goes very slow
 
Xeo
@SethCarnegie Take a look at "Learn you a Haskell for Great Good", I found that quite informative.
 
10:04 PM
@seth I'm using "Learn you a Haskell" and even though I knew some basic stuff I've learned a ton already.
 
I'll take a look then
The weird name reminded me of Land of Lisp which I didn't like
so I avoided it up to now
 
plus it's funny
 
There's also "A gentle introduction" which is actually rather ungentle
although it actually feels like you're learning due to the short chapters
 
LYAHFGG is a small short book too isn't it
 
not so short
 
10:06 PM
highly compressed
 
@KerrekSB It's "silly-benchmarks" you nub
 
Haskell is horrible.. throw it in a bin somewhere :(
 
@Lews you should GFY immediately for that comment :P
I have discovered a new smiley -- :{) -- the mustache man
 
@keithlayne rofl xD
 
10:25 PM
ok
I think I've determined that it's physically impossible to implement WideC :(
 
Noooooooooooo.
Why, though?
Are you trying to make the computer dance as part of the core language?
 
because the functions won't play well together
no
imagine I compile the compiler using Visual Studio
how am I going to access any of the data structures? I don't have their Standard libraries to use in the LLVM generated code
 
Why does it matter what you use to compile the compiler? Codegen is not related to that.
 
because the metafunctions are implemented as automatically generated compiler plugins, effectively
 
Use JIT.
 
10:28 PM
the JIT cannot magically determine the std::string implementation
I guess I could go and C-style abstract it
 
Weren't metafunctions supposed to be WideC code executed at compile time?
It should be using your standard libraries, not?
 
they are
but how am I going to compile my standard library? I need the standard library to compile the compiler
anyway, I figure that a C-style abstraction might solve the problem
it'd be real ugly, but it might solve the problem
 
Bootstrapping is always ugly. :P
 
lol
 
use your existing compiler's library for "scaffolding", and write your own library :P
once you have a compiler up and running, you can build your library and use it instead
 
10:32 PM
well, I was also guessing that Clang could be used to solve the problem
as their Standard library will be available as LLVM IR
but I think C-style would be a better idea
it'll also prevent me from having to implement C++ interoperation until later
 
oh, you're gonna love that part.
 
I am
 
esp if you have any hopes and dreams of being able to use c++ libraries.
 
use clang -> problem almost entirely solved
 
user457812
Clang's error messages make me cry
 
10:41 PM
Is it possible to prevent slicing at compile time? Some combination of templates, is_base_of and = delete?
 
@KerrekSB i.e. for operator=()?
 
no
I think
well, actually I expect you can
 
I don't think there is - you'd have to template to get the type information statically; but since it's the dynamic type that's the problem the right info just isn't available.
You'll never know at compile time that the A* you're sending in is actually an instance of B : public A {};
 
Slicing doesn't happen with pointers.
 
well, you'd only be able to prevent simple cases like Derived d; Base b; b = d;
 
10:49 PM
I think the only way to stop it 100% is to not derive from concrete classes.
 
Or thinking when writing code. :P
 
@DeadMG Yeah, but not b = static_cast<Base const&>(d);
 
that's unnecessarily convoluted
I've never actually seen slicing occur, ever
 
I've only seen it in SO questions.
 
All it takes is for the d to be a parameter to the function
 
Xeo
10:51 PM
Anybody with GCC 4.7 installed willing to test some code for me?
 
`int foo(Base const& param) { Base local = param; }
 
@Xeo I can do it if it won't take long
 
Xeo
@Pubby It won't
 
@Xeo Alright, send it over
 
Xeo
// invoke with -std=c++0x
#include <type_traits>

template<class T>
struct foo;

template<class T>
void check_error(foo<T>*);

template<class T>
struct foo{
  friend void check_error<T>(foo<T>*){}
};

template struct foo<int>;

int main()
{
  check_error<int>(0);
  check_error<char>(0);
}
I just want to know the build result (specifically the linker errors)
 
10:54 PM
Something like struct Base { Base(Base const &}; template <typename U> Base(U const &) = delete; }; maybe?
 
@Xeo main.cpp:12:37: error: defining explicit specialization ‘check_error<T>’ in friend declaration
 
Xeo
oh, wait @Pubby, there's something missing
@Pubby Damn, so GCC 4.7 still does that
The C++11 standard specifically allows it. :(
And I think it would solve my problem
 
@KerrekSB I think it'll still resolve the Base& overload for derived classes
 
@Xeo What does friend {} do?
 
Another approach may be to make it Base(Base passByValue);
 
10:56 PM
@rvalue That's not a copy constructor, though
 
Xeo
I'd test with clang, but clang doesn't instantiate templates when needed in this case (stackoverflow.com/questions/8379002/…)
@KerrekSB It is
But an infinitely recursive one :D
 
No, it's not.
 
=)
 
Xeo
oO
 
It's invalid.
Copy ctor always takes a reference.
 
10:57 PM
Yeah, didn't think that one through
 
Xeo
I remember reading that the argument of a copy ctor may be a non-reference type
wait a sec
 
Nope.
That part of the standard I actually remember.
> A non-template constructor for class X is a copy constructor if its first parameter is of type X&, const X&, volatile X& or const volatile X&, and either there are no other parameters or else all other parameters have default arguments (8.3.6).
 
Xeo
Hm, then I misremembered
 
@CatPlusPlus ty
 

« first day (415 days earlier)      last day (4531 days later) »