« first day (1143 days earlier)      last day (4031 days later) » 

Xeo
Xeo
17:00
@ThePhD Ya
Also, better put an extra '\0' at the beginning
user3010322
Why so? D:
Xeo
Xeo
Empty array not allowed
user3010322
:c
user3010322
So much hackism for such simple ideas.
@EtiennedeMartel While I don't find Quora particularly great, I think comparing it to Expert Sexchange is going a little too far.
17:03
@JerryCoffin :) based on history my choice of tone is a much more likely way to success :/
Great, I renew the subscription to EVE after a week off and what? Oh, just several hours long unscheduled downtime. Lucky me :F
@JerryCoffin Maximum disrespect.
@sehe I suppose that depends on how you define success.
I just got 26/95 on my exam.
My life sucks :(
@GamesBrainiac No, you suck.
17:06
@Griwes No, you suck.
@GamesBrainiac Unlike you, I do not.
user3010322
There's, uh
user3010322
a way to get the opposite std::integral_constant trait
user3010322
right?
user3010322
Like a reversal of some sort
Xeo
Xeo
17:06
wut?
user3010322
That is, a std:: way
Xeo
Xeo
Define "opposite"
user3010322
Um. Like !std::is_member_function<ClearlyAMemberFunctionPtr>(); // false_type
Xeo
Xeo
std::integral_constant<bool, !SomeVal::value> is one way
user3010322
Ooh. Okay.
17:08
@JerryCoffin success is "Tomalak takes notion of a fact without spending 13.5 minutes calling the other party names" :)
@EtiennedeMartel Quora only requires that you sign in, not that you pay, to see more. As such, while they're being dickish, it's not even close to comparable to Expert Sexchange.
Xeo
Xeo
Of course, a template<class C> using Not = std::integral_constant<bool, !C::value>; goes a long ways
user3010322
Too late, long explicit lines for me. <3
I think even with the new healthcare bill, sex change is still an operation that requires private funding
oh good race discussion is over
17:10
@sehe I'd define success somewhat differently.
user3010322
@BartekBanachewicz Poles deserved to be danced on. ;D
@ThePhD I like how you're 13.
user3010322
What, you don't want a lap dance? :c
They're expensive
2
A: "vector<T> too long" error while filling std::vector

SilasSince I havent got enough rep to comment, so you get it as an answer. The error text sounds like you are on a windows machine http://msdn.microsoft.com/en-us/library/2af6btx2%28v=vs.80%29.ASPX And I think it has to do with a resize, since creating a vector that is too big throws bad_alloc (on l...

This is why rep barriers don't work. People assume the rep barriers are there to force them to break the system, rather than say "oh ok, I'll shut up for now then". Annoyingly, this is a poor example because his "comment" is insightful and useful.
17:15
@CatPlusPlus Never quite understood any of that -- men paying to be teased, knowing ahead of time there's basically no chance of any more than "look but don't touch"? Why would they subject themselves to this?
That depends on how much you spend
Some people are able to defer gratification.
Besides, you get a top-up of the mental imagery bank...
@LightnessRacesinOrbit You should've posted that as a comment there.
@Griwes I yet may
user1804599
Ugh.
17:17
@LightnessRacesinOrbit There was a tiny "instead of here" in that sentence :P
user1804599
Fifth day in a row that I’m eating nasty food.
user3010322
@JerryCoffin It's also the idea that people fantasize that they're desired (even though they paid money for it).
user3010322
Slightly delusional.
17:19
@ThePhD "Slightly"?
Why is Lulu.com sending me emails in Spanish?
Also in French.
@EtiennedeMartel Because their Chinese translator is on vacation this week.
Actually, Lulu sent me two emails that were essentially the same but in different languages.
@rightfold Try again in 3 years, pussy
user1804599
I’d love to.
17:21
@rightfold there's a comma in that sentence
user1804599
I want something like tenderloin with fried goat cheese today, instead of Chinese.
user1804599
I ate fries like four days in a row. :(
user1804599
@BartekBanachewicz I know.
at least they weren't rotten
user1804599
But I prefer cooked ox or cow flesh over genitals or cats.
3
17:29
@rightfold I can't say I've tried them myself, but I've heard people claim that testicles were quite good.
@JerryCoffin 11 weeks till my next medical disappointment
Xeo
Xeo
You should stop replying to random messages if you just want to ping the person
nah
maximum confusion that's my policy.
@DeadMG Though it's hard to blame you for feeling a bit skeptical about likelihood of success, I really do hope it's at least less of a disappointment than its (all too many) predecessors.
I'd be less upset at their failure if they tried more often.
17:34
@DeadMG It certainly doesn't help to wait for months after it's obvious the last attempt has failed.
user3010322
is std::unique_ptr
user3010322
allowed in unordered_map ?
as value.
not as key.
user3010322
@Rapptz q___q table needs to be copiable?!
@DeadMG Hmm?
17:40
@Griwes Now show code that looks up into the map.
@Griwes Try to instantiate the map: coliru.stacked-crooked.com/a/502d240ae7925c1e, and you run into problems.
@JerryCoffin Erm, foo is a variable.
@Griwes Yeah, I realized that right after I posted. My apologies.
Xeo
Xeo
@DeadMG Can also be as key, IIRC
user3010322
@Rapptz OH MY GOD
user3010322
17:44
THE LUA WRAPPER BUILDS
user3010322
FIIIIIIIIIIIIIIINAAALLLLLLLLLLLLLLLLLLLLLLLYYYYYYYYYY
user3010322
... Now, how do I execute a script...
@jalf and of course they put a picture of a titan missile there in the article :p
@ThePhD by writing horribly ugly lua :D
user3010322
@melak47 q_q
don't tell bartek I said that :E
17:46
@Xeo Nope.
yhe entire point of N3573 was that it can't be used as a key.
Xeo
Xeo
huh
What was N3573 about?
me complaining that the unordered_map interface (and unordered_set) doesn't permit unique_ptr keys.
which I took and presented in Bristol.
Xeo
Xeo
It does, it just doesn't properly allow lookup from just the contained pointer.
doesn't allow lookup, full stop.
user3010322
=[
user3010322
17:52
How do you call a void function in lua?
unless you want to start constructing two unique_ptrs to the same value, which is obviously hideously wrong.
user3010322
just myfun() ?
Xeo
Xeo
@DeadMG maybe_delete~
user3010322
lua.script( "arf()\n"
		"function add_free(a, b)\n"
		"    a + b;\n"
		"end\n"
		"function add(a, b)\n"
		"    return a + b;\n"
		"end\n"
		"function ultra_add(a, b, c)\n"
		"    return a + b + c;\n"
		"end" );
user3010322
^ is that a valid lua script?
user3010322
17:54
Disregarding \n's and all...
ask your thing? :p
user3010322
It's throwing. But I'm not a lua expert.
try this then: lua.org/demo.html
@Xeo You can totally have two unique_ptrs pointing to the same value as long as they're not actually unique.
Xeo
Xeo
It may be a hideous workaround, but it's a workaround.
17:56
and I hope that operator== doesn't check deleter equivalence.
and I also hope that nobody, ever, makes a mistake about whether or not to use maybe_delete(true) or maybe_delete(false).
it's practically malloc and free over there.
@ThePhD except a missing return in add_free, it seems to work :)
Xeo
Xeo
@melak47 I think it's supposed to miss that
user3010322
@melak47 Why can't I have a + b without a return? (It's meant to be a free function)
@ThePhD why is it not a free function if it returns?
user3010322
I'm still getting an error (says there's a syntax problem at the a + b of add_free
user3010322
17:58
@melak47 I was just checking void functions, that's all
@ThePhD Because addition is not a statement.
apparently, void functions can't add :)
user3010322
How do I make it a statement?
Assign it to a bogus variable?
function add_free(a, b)
   c = a + b;
end
function add(a, b)
    return a + b;
end
function ultra_add(a, b, c)
    return a + b + c;
end
yep :)
user3010322
Looks like it.
user3010322
17:58
Lame lua. ~_~
:D
you chose this! you did this to yourself :p
@melak47, how's your snake going?
no progress. :E
user3010322
Can make_shared be polymorphic?
user3010322
Because it looks like it's slicing my shit right in half.
Xeo
Xeo
18:00
wat?
user3010322
maked_shared isn't polymorphic. =[
user3010322
I forgot, I wrote my own polymorphic ones for all of these. =/
It is polymorphic
What do you expect it to do
~magic~
user3010322
e.g. std::make_shared<base>( derived_args );
18:02
How would that work
Just cast it after creating it
user3010322
It doesn't, is what I'm saying. :3c
how the hell is it supposed to know what derived you want to instantiate :p
You really love guessing, don't you
user3010322
I can do std::shared_ptr<base> = std::maked_shared<derived>( derived_args );, and it'll just work?
@Pawnguy7 That's nice. Really.
@melak47 Do you know of others attempting the snake challenge a part from me, you and pawn?
user3010322
18:05
Nope, nobody else.
Nov 25 at 11:34, by ThePhD
for my snake game
And ThePhD apparently :)
user3010322
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
user3010322
Nice.
It has been a while since I last saw void func(void).
-3
Q: How to minimizing stack overflow?

MS TabrezStack overflow can be minimized that is what someone telling me but i do not have any idea about that. please help.

^^ muhahaha
18:14
I have no idea about that either
OP got trolled hard.
@ScottW Lansing Snowagain.
user3010322
I can't fix this error. =/
user3010322
Guess I'm stuck with this nonsense.
@ScottW Drink Mountain Dew first.
18:18
@JerryCoffin People still drink that?
so, who's up for some proofreading?
@sehe you seem like a regular volunteer ^
@bamboon Apparently quite a few do (e.g., they make enough money to be the primary sponsor of the DewTour).
@thecoshman Don't start sentences with 'And'.
@JerryCoffin Indeed, wiki says that they had 7% market share in 2009
@sehe lol, took me a while to notice what was going on there :P
18:22
@MartinJames And why is that?
user3010322
Heh.
user3010322
Well, I think I've truly well and fucked the compiler good this time, guys.
@MartinJames vOv
Better: 'HTTP1.1 introduced five more; OPTIONS, PUT, DELETE, TRACE and CONNECT. That's it: as far as RFC2616 is concerned there are only eight types of request to make all the magic work.' ->
@R.MartinhoFernandes anally retentive teachers
18:24
@R.MartinhoFernandes Starting sentences with conjuntions is mid-level suckage.
@thecoshman Nah, it really reads weird.
user1804599
A HEAD request is just like a GET request in more or less every way, except the server should not only send the header information that it would send.
user1804599
s/not //
user3010322
Where does the calling convention go on a lambda?
'Before I start explaining what the HTTP methods mean, and how they are intended to be used, ' - add come commas.
user3010322
18:25
[] () _cdecl {} ?
"must" not "should"
user1804599
@ThePhD __thiscall :V
Compliant server is not allowed to return a body to a HEAD request
Needs an 'a': 'The user should feel safe to make a 'safe' request knowing'
Also why are you replicating HTTP spec in a blog post
user3010322
18:27
Lambdas... can't take function call designations... ... huh.
a lambda function pointer MSVC allows to convert to any calling convention.
'For the sake of brevity and keeping focused on the methods them selves' - themselves is one word - no space.
@CatPlusPlus because the methods 'purposes' are horribly misunderstood
'Obviously this method is not safe. If it was, that would imply'
user1804599
@thecoshman methods’*
user1804599
18:31
I prefer “purposes of the methods,” though.
@rightfold ¬_¬
user1804599
You wanted proofreading. vOv
'ta in some bespoke format Of course, the server' Missing fullstop here.
user1804599
I’m proofreading your chat messages.
@Jefffrey you think the instructions menu was good?
18:32
@rightfold proof read this <grabs genital area in a thrusting motion>
'but when it does store what it is sent, it should be telling the client'. 'if' reads better than 'when'.
user1804599
“Proofread,” not “proof read.”
if I have a static lib, and it depends on other static libs...can I just link them into it? for some reason I still get unresolved external symbols
@Pawnguy7 Yup. It looked nice.
@thecoshman Uh
18:34
'A HEAD request is just like a GET request in more or less every way, except the server should not only send the header information that it would send.' - you need to clean that up somewhat:)
user1804599
I wish PHP had lexical scoping.
@CatPlusPlus it is mostly the latter methods, and I was going to get them all done in one go, but was taking too long.
What you wrote is pretty much what spec says, so
Also "gain, GET is a good example, no matter how many times you GET a single resource, the result is the same. " is not true
user3010322
Hm.
user3010322
So MSVC cannot properly clean up the stack because of hte mismatching function call declarations...
18:36
@CatPlusPlus well, I was thinking mostly about when dealing with 'static' sites.
Methods can also have the property of "idempotence" in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request. The methods GET, HEAD, PUT and DELETE share this property. Also, the methods OPTIONS and TRACE SHOULD NOT have side effects, and so are inherently idempotent.
@Jefffrey I assume you also approve of the transitions?
user3010322
std::is_function only works on function pointers.
user3010322
That's pretty retarded. :v
'So far I have covered the three methods that HTTP 1.0 started with, and I want to get something up, so I shall' sounds sexually suggestive:) How about simply: So far I have covered the three methods that HTTP 1.0 started with. I will tackle the methods introduced by HTTP 1.1 in my next post.'
18:41
@Pawnguy7 Yeah, that was a nice touch. Are the snakes in the instruction screen using the AI or a predefined path?
@Jefffrey Neither. They are player controlled, as an attempt at making one of those interactive instruction things.
@MartinJames thanks guy :D
Oh, really?
Then it's less good.
Do you think AI would be better?
@thecoshman No probs - I do too much documentation - annoying customers demanding it :((
user3010322
18:44
@Xeo std::is_function lied to me: it seems to only take function pointers on MSVC. :c
Xeo
Xeo
what
@Pawnguy7 I was jk. But I mean, when the instruction screen says you have to avoid the walls and in the video the snake goes against the walls, how is the user supposed to interact?
@ThePhD It's a category function, it's not supposed to return true for all callables.
user3010322
It should return true for a function type.
user3010322
e.g. a plain c function in the global namespace:
18:46
oh...I think it's supposed to.
user3010322
void breaking( ) {
	std::cout << "Nice!~\n";
}

TFx=void (__cdecl &)(void)
@Jefffrey That is user controlled. In this case, I ran into the wall to demonstrate that it is unbreakable, so to speak.
user3010322
TFx, with that type, is not considered a function.
user3010322
RIDICULOUS. D:<
@MartinJames ergh... I get stuck with that too... not sure who is demanding it though...
18:46
Every snake in the instructions screen can be moved by the player.
Xeo
Xeo
@ThePhD I think you're misreading
@ThePhD It's a reference to a function
so, duh
user3010322
....
user3010322
TABLE-FLIP.
@thecoshman Edit posted.
user3010322
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU TYPE_TRAITS Y U NO WORK WITH REFERENCES
Xeo
Xeo
18:47
_Is_funptr<typename remove_cv<_Ty>::type *> is what MSVC checks
@JerryCoffin where?
user3010322
<_>
Xeo
Xeo
And if Ty is R(Args...), that's R(*)(Args...) and a function pointer
(No idea why so convoluted)
user3010322
q_q
Xeo
Xeo
oh wait, because of missing variadics
18:48
@thecoshman Proofread and edited your post. Should be on Github as a fork,
@Pawnguy7 Yes, I understand that. But why? What is the user supposed to do there?
@Jefffrey Hard to say. I was just trying to make it interactive, and tell them stuff.
Get a feel for things, perhaps.
@thecoshman Oops -- hadn't clicked quite enough butans yet.
@JerryCoffin ah, I see it now
Given the simplicity, nothing really changes, though it is a bit more friendly, as you just reset when you die, rather than have to click things to restart.
user3010322
18:49
typedef typename std::add_pointer<typename std::remove_pointer<typename std::decay<TFx>::type>::type>::type clean_fx;
user3010322
No references shall escape alive <_>
Xeo
Xeo
wtf
y u no using
Xeo
Xeo
std::decay already removes ref and cv
@Pawnguy7 I think that a premade path that shows different actions the user can do related to the instructions that are shown, is better. Something like: "You should avoid walls" -> show snake avoid walls; "If you hit the walls you loose" -> show a snake hitting a wall and losing; "If you eat food you get bigger" -> show snake that eats food and gets bigger.
Xeo
Xeo
18:50
(also turns R(Args...) into R(*)(Args...))
Or maybe reuse the AI there.
user3010322
@Xeo It does?
Xeo
Xeo
It decays the argument, so yes.
Would these just repeat?
Although, I think there is something I am missing from some of the interactive ones.
user3010322
But will it also remove the refernece?
18:52
They... say, force you to do something until you do it correctly.
For example, on the food screen, you could give them a green checkmark once they successfully reach 5 food.
Not sure how to do that for the walls one though.
Xeo
Xeo
3 mins ago, by Xeo
std::decay already removes ref and cv
It models by-value argument passing
user3010322
std::integral_constant<bool, !std::is_function<clean_fx>::value>( ), with clean_fx = void (__cdecl *)(void), keeps evaluating to true.
There is another issue as well. The first screen is a way of giving the controls. If you let the player's move there (kind of pointless if you don't), they expect to be able to do it later on.
user3010322
I don't know how to make it stahp.
You did remind me of something though.
I need to add the pausing controls to that first screen.
Xeo
Xeo
18:55
@ThePhD Erm, if you mean the final integral_constant has value == true, well, duh.
user3010322
It should be false if clean_fix is a function?!
user3010322
And evaluate to std::False_type ?!!?!?!?!?!
Xeo
Xeo
No
You're !-ing it
wait
user3010322
Yes. So std::is_function<clean_fix>::value is true,
Xeo
Xeo
you're confusing me
user3010322
18:56
so ! makes it false
user3010322
then that's std::integral_constant<bool, false>(), which is essentially std::false_type, yes?
Xeo
Xeo
Norepro in 2012
#include <type_traits>

static_assert(std::is_function<void()>::value, "void()");
static_assert(!std::is_function<void(*)()>::value, "void(*)()");

int main(){}
Plug that into a dummy project
if it asserts, that's a bug
user3010322
    typedef typename std::decay<TFx>::type clean_fx;
	    const static bool isfunction = std::is_function<clean_fx>::value;
	    static_assert( isfunction, "FUCK!" );
	    return set_function( std::integral_constant<bool, !isfunction>( ),
		    std::forward<T>( key ), std::forward<TFx>( fx ) );
user3010322
reports "FUCK!"
Can I undo deleted comments?
Xeo
Xeo
18:59
no
lame
user3010322
But when calling overloads, it ends up here:

« first day (1143 days earlier)      last day (4031 days later) »