« first day (880 days earlier)      last day (4084 days later) » 

7:00 AM
@sehe Occasionally a process called 'migration' is running and consumes all CPU. During those times the site is very slow.
Currently the view links are not slow in my experience.
Also every 60 minutes the archives are committed to svn. Since the Archive folder is currently so big the scan for changes part of the svn commit takes a lot of time. This might slow down the webserver.
 
Why do you commit the archives?
 
It's a backup.
Actually, a "temporary" solution until I have found a better storage solution.
I'll have to eventually fix it, because the current solution doesn't scale.
 
How much storage do you actually need?
 
Not much. It would easily fit on a free DropBox, Unity, Google Drive account.
 
Ah. Is there a reason why that wouldn't work?
 
7:09 AM
Not really.
But I still need a backup solution.
I've considered using a database to store the files.
 
NoSQL?
 
This would make it easier to add features like user tags and stuff.
 
Oh.
 
@Rapptz I was considering mysql because that's all I know, lol
 
If you can use it and it fits, why not
 
7:18 AM
Yeah, it would be more economical as well.
Currently a shared post requires 12K on disk (4K per file).
That's very wasteful.
Currently there are 2019 shares which makes for 105 MB.
 
Quite a bit of shares
 
Ell
Ooh bartek has committed! I shall test later, after school.
 
Meh
I don't think it should fix it yet
@thephd looks like you either are trying to do instancing, which is done by specifying divisors in OpenGL. You can't have multiple index buffers, or, specifically, multiple index data streams. Each attribute must be layouted so that it will produce correct value for give index number. I am not sure how the composition of above is done, though.
It seems that you can just create everything normally, and the loop does something like
 
7:40 AM
-11
Q: virtual , static , volatile , extern, can someone explain differences among them with an example?

banarunIn C/C++ I find these keywords before declaration of data type. Can someone explain the difference with some sample code and are there any other keywords that can be used before declaration of data type ?

^^ wow... how did that get down to -11?
 
for (i = 0 ; i < NumInstances ; i++)
if (i mod divisor == 0)
    fetch attribute i/divisor from VBs with instance data
for (j = 0 ; j < NumVertices ; j++)
    fetch attribute j from VBs with vertex data
@Mysticial 0 research effort
 
-4
Q: Confusion with c++11?

MrJavaCoffeeCan anyone explain to me thoroughly what c++11 is? And, I was wondering, how would you upgrade the entire language on windows if its native code is c++. I am so confused. Thanks. P.S. I searched for hours dont vote the question down just for that.

^^ lol at comments
 
> i am so confused
 
user1182183
oh great, now users start to be moved to bin ; >
 
user1182183
:8256944 I'll keep ya warm in the ice cold bro xd
 
7:52 AM
@Mysticial close (2/5)
what
 
yeah, that's new.
 
user1357851
@GamErix Yeah you would keep me warm like a pebble keeps camp fire warm.
 
I noticed it earlier when I went into the review queue.
> share|edit| reopen | delete (1/3) |flag|protect
^^ also for delete votes...
 
@Zoidberg glEnableClientState and glVertexAttribPointer are deprecated
 
If he didn't understand the Wiki article then he's not going to get it easier
 
7:55 AM
Why, he said that first answer helped
Also, read zoidbergs commits
 
Seriously the wiki article is as clear as it can get
It has examples and an explanation of new features.
Someone beat me to a meta question by 4 minutes.
 
0
Q: Bug in close vote display?

DaedalusWell, I believe this to be a tad minor.. but still a bug nonetheless. I recall that sometime today, a new display method for close votes was enabled.. next to the close button, instead of close 1, it now displayed close (1/5), or similar.. The problem comes in voting to close on a question that...

 
user1182183
lol xd then want you to do maths
 
user1182183
(2/5)(3/5) = 0.24 :D
 
user1182183
and you all know that' 24% :P
 
user1182183
8:01 AM
but g2g cya
 
Also, ITT @ThePhD is using Singletons in his code
2 hours ago, by ThePhD
Looks like a singleton might actually be useful here.
 
Ell
Hi bartek
 
Hi Elliot
 
Ell
I just built there updated version, still crashes, but I literally only had time to build & run
I am on my way to school so I cant debug :(
but I will when I get back
 
8:16 AM
Sure, no pressure
I didn't expect it to fix the crash yet
 
Ell
Oh right :)
I take it you're not doing anything with locales on the stream?
 
Ell
my limited Google ability is showing people getting bad_cast when using locales with streams
a bug in libstdc++ ithink
 
user1182183
Oh well, I shut down my laptop, got on the bike, cycled to school, waited for the bell, got to the classrom, got a PC, logged in in those fucking slow things, came back on Stack Overflow, and I see my old message in the same window. okay lol
 
Xeo
@LucDanton Note that I don't actually have any pointer to member overloads.
 
8:24 AM
I was making an analogy to INVOKE, which is in terms of ptm.
 
Xeo
I know
 
user1182183
hm guys what do you recommend to check if a pointer is accessible without causing an access voilation?
 
Xeo
I tried mirroring those cases
Btw I think I should put some constraints on those overloads to ensure that &C::foo represents a member function pointer for the first two overloads, otherwise private data members that have an overloaded operator() might actually get called.
 
Ell
@gam I don't think that's possible
 
user1357851
I have decided 3 level email system is still too weak for the spammers, now I am going 5 levels deep
 
user1357851
8:27 AM
5th level will be closed and reopen at another address constantly
 
Ell
Unless you keep a track of all allocations and deallocations
Anyway. School time unfortunately
 
user1357851
4th is for semi shady but tolerable ones. 3rd is imformal, 2nd is not important personal, 1st is important or very personal (coz this never gets purposely deleted).
 
user1357851
go me!
 
Xeo
Hmm... Although I don't think I can make sure that &C::foo represents a member pointer without having a concrete signature handy.
I can test whether &o.foo is valid, though, since you can't do that with a member function
 
@Xeo That's a clever corner case.
 
Xeo
lol?
 
user1182183
@Ell well then I'll have to use try catch ;F (yes it can catch access voilations)
 
@Xeo ignore me. I just woke up.
 
All kinds of zany D3D11 warnings.
 
Did you get my response @ThePhD?
 
8:36 AM
For vertex streams?
Yeah.
 
@GamErix that is wrong in so many ways. I recommend fixing your code instead
 
Also let me congratulate you personally for using Singletons.
 
I haven't used Singletons, I just thought about it.
 
Xeo
@ThePhD Back into your corner
 
8:37 AM
It does make sense that a singleton-type deal could make legitimate sense here, but meh.
 
user1182183
@jalf how the hell am I going to fix a "hack" xD
 
user1182183
and thanks will read
 
@ThePhD No. Just no.
 
@GamErix I don't know, I don't have access to your code. But you can't fix a hack by adding another, even less reliable hack on top of it
 
user1182183
8:39 AM
It's just that there are multi level pointers and sometimes when, for example your car get's reset the pointer is invalid, then if the car respawns the pointer is valid again..
 
user1182183
 
@GamErix nobody cares about game mods though
 
@GamErix fine, let me rephase then: I have no interest in poking through code which, going by your claims, is fundamentally broken
 
user1182183
@jalf Imagine a situation where you make a mod, need a multi leveled pointer to access some value, e.g. Health. now that pointer can be sometimes invalid. What would you do?
 
:c
 
8:41 AM
@GamErix investigate why it is "sometimes invalid"
 
user1182183
@jalf Well that would be hell easier if I had access to the source of Need For Speed Underground 2
 
@GamErix Probably, but how does that change anything? If you don't know why it is sometimes invalid, then you don't know how to detect when it is invalid. What if it doesn't point to unmapped memory (which would yield an access violation), but instead just points to... some other data used by the game, which will then be overwritten, corrupting the whole thing?
The game itself is obviously able to access the health value reliably, yes? So if they can do it, and you cannot, then you are doing it wrong
 
Xeo
Btw @LucDanton, it's possible that my envisioned []id syntax clashes with two proposals. :s
 
Protip: people generally do not like mods which corrupt the entire game
 
user1182183
@jalf well people enjoy my mod xD
 
8:45 AM
@Xeo Does that matter for the deadline? Oh, you might want to mention it right?
 
Xeo
One is about having foo represent the name of the lambda in []foo(params...) so it can refer to itself. The other is from the C++Next blog, that says it wouldn't be impossible for normal function templates to be written as []foo(params...) :/
 
@GamErix Well, you asked what we would recommend. I would recommend understanding what goes wrong, because until you've achieved that, you don't know whether you've fixed/worked around the problem
At the very least, you need to verify that when the pointer is invalid, it always points to unmapped memory, so you can rely on getting an access violation
 
Xeo
@LucDanton Yeah, I should mention it atleast.
 
@jalf depends, some mods change the entire game mechanics, for example Minecraft mods that turn it into an RPG, and a rather popular. But I think the aesthetics is what you can't really change that much
 
user1182183
well, some pointers just point to NULL, so I can check for that, bo some point for example to 0x0AED3300 (just an example) and are invalid when accessing
 
8:49 AM
morning all :P
 
user1182183
because what I've done before using try_catch was check if all the levels are greater than null
 
user1182183
but then found out not all invalid pointers point to 0..
 
@thecoshman By corrupt I mean "accidentally overwrites arbitrary data in the process"
 
smart stuff
@jalf oh right right, yeah, no one likes a dick :P
 
@GamErix Why are you telling me? I'm not an oracle, I can't tell you which address the data you're looking for is stored at.
 
user1182183
8:52 AM
@jalf just a example value lol xd
 
yes, but what am I supposed to do with it?
 
user1182183
@jalf nothing. just what you want :P
 
I'm just pointing out that you need to consider more than two cases: sure, there's "the pointer points to an invalid address which yields an access violation" (this includes the NULL case), and there is the case where it points to what you need. But what about the case where the pointer is "valid" (it won't yield an access violation), but it points to something else
how will you handle the third case?
Or how will you distinguish between the latter two cases?
 
user1182183
@jalf I thought about those cases, I did find a few of such pointers, but I did check all the pointers I get from Cheat Engine a few times and did alot of tests with them
 
user1182183
somehow CE does detect an invalid pointer and just shows a "??" as address, and if it's a valid address the value. compared in as many as possible cases which values are pointed to and checked if that are the correct ones
 
8:56 AM
mawning
 
Well, you could look at the disassembly for CE or for the game. You could print out the pointers in question repeatedly, and see if you can spot any patterns, or you could examine the memory area around the pointer, and see if you can recognize any patterns there.
Anyway, I'm just pointing out that catching access violations will only handle some of your crashes
How you fix that problem is up to you. :)
 
user1182183
@jalf owkay :p
 
Oh gawd - y'all still trying to design 'pong' after 24 hours...
 
@MartinJames we are?
 
9:00 AM
Maybe not. I looked like it at first glance. Maybe you've moved on to 'Invaders'.
 
@jalf That's the IsBadXXXPtr approach
better to use VirtualQuery.
 
Yep
 
user1182183
@DeadMG ;o never knew bout that function!
 
@GamErix what the hell is ;o ??
that's no emoticon I know of
 
user1182183
@TonyTheLion >O_O
 
9:03 AM
meh
 
@GamErix it still doesn't solve your entire problem though.
 
@TonyTheLion 13yolds are creative these days
 
user1182183
@jalf ah well it was just a side project :P my friend wanted some hacks for it so I made them, they work and the game still runs at 120 fps xD
 
you guys should see the amount of stuff Google wanted me to read before the interview.#
it was a complete shitload.
 
@DeadMG How did the interview go? :O
 
9:10 AM
@BartekBanachewicz seems like it
 
@DeadMG about what?
 
@DeadMG what kind of stuff? Code, legal documents, that awesome fantasy novel the manager is working on?
 
@ThePhD I scheduled it for a couple weeks from now, to give me time to read everything.
uh, basically every useful aspect of coding you can imagine- entire books on algorithms, concurrency, etc.
 
Hooboy.
I never knew they'd send you actual reading material.
You must be applying for one tough job.
 
@ThePhD hobo-boy!
@DeadMG they want you to read that? I'd have assumed that they wanted you to already know it?
 
9:13 AM
@jalf The downtrodden protagonist of Alf Pilgrim vs The Mods, Flexo Edition !
 
I was thinking it sounded kind of like some really lame superhero's sidekick
 
Oh.
Well I guess that works too.
 
Xeo
@LucDanton: One thing I'm still concerned about is access restriction. If you create the lifting-lambda inside a member function, it should have access to all members, even if you call it outside - but that should work without me doing anything special, right? (Btw, if these pings are getting on your nerves, please let me know. :) )
 
Good morning folks
 
9:26 AM
That is one serious kitteh
:P
 
Wow
int a = 1;
int b = 2;
do
select that in VS2012 and press Enter
(from the top to do)
works for for too!
hey, that's nice.
oh welp.
that's how the snippet completion works then
 
user1182183
@BartekBanachewicz I don't have VS here at school, what does that do? (the enter)
 
Xeo
@BartekBanachewicz Erm, I don't think you should select that...
Or atleast, you should only select do
 
@Xeo if you select it it will put it inside the snippet
^ 3d simplex noise
 
Xeo
@BartekBanachewicz uuh... can't confirm. :s
Or I'm doing the selection wrong
 
Ell
9:34 AM
Woo simplex noise
Hi guys
 
Xeo
And then just enter? Replaces the selection with a newline :P
 
oh fuck
tab not enter
sorry :/
 
Xeo
Ahh!
 
you can just type for<tab> too
 
user1182183
9:37 AM
@BartekBanachewicz minecraft?
 
@Ell yea, but I gotta make 2d version anyway
@GamErix Minicraft.
 
user1182183
@BartekBanachewicz that;s now how minicraft looks on google images
 
user1182183
;o
 
That's how my Minicraft looks
 
user1182183
 
Xeo
9:37 AM
@BartekBanachewicz With for, when you change the counter name and press tab, see what happens. :)
 
user1182183
@BartekBanachewicz but GL, I will definitely try it when it's done
 
when it's done
@Xeo umm? it uses global autocompletion for me, but just on the selected one
 
Xeo
In fact, you can tab around all day inside the for code snippet, lol
 
Xeo
@BartekBanachewicz Type for, select the code snippet, complete, change var name, tab around
 
9:39 AM
tab has to be in front of the variable
also, after the snippet has been finished, no way to edit it :/
Anyway, you can create your own
 
Xeo
Uhm..
Then what am I doing right now? :P
 
I can imagine that you can use that for your TMP trickery
@Xeo dunno.
 
Xeo
Follow my instructions above
 
sooo... who uses RSS and has a good alternative to Google Reader? Looking for a nice web based reader like GR
 
@thecoshman I just use Firefox' live bookmarks, or whatever they call them. Works fine for my needs, but it's definitely a low-tech solution compared to Google Reader
 
9:53 AM
@BartekBanachewicz What colorscheme are you using?
 
@GamesBrainiac i think it's the default one. I honestly don't care
 
@jalf yeah, tried it before, didn't like it much. Besides, I'm a Chrome boy :)
 
Xeo
Welp, time to tackle this bug... ;_;
 
user1357851
10:13 AM
I want one of these:
 
user1357851
 
@jalf Apparently, it's common for Google to ask very advanced questions, where people typically don't remember the answer after university.
 
user1357851
@DeadMG lemme guess they have asked one or more related to those: hash, tree, recursion, multithreading, skilled use of pointer to either minimize speed or space
 
user142019
@BartekBanachewicz aren't tabs wonderful?
 
user142019
 
user142019
10:21 AM
Your formatting is bad and you should feel bad.
 
@Zoidberg meh. that's probably my error
@Zoidberg I have looked at your code. It certainly isn't in C or in any language I know of
 
user142019
What code.
 
user142019
I have so many code.
 
latest one
 
user142019
Oh. What's not C about it.
 
user142019
10:22 AM
It's clearly C.
 
struct dirt_block dirt_block_stone = {
    .on_add = dirt_block_stone_on_add,
    .on_break = dirt_block_stone_on_break
};
 
user142019
That's C.
 
user142019
It's a designated initializer.
 
what the fuck does it mean.
 
Xeo
Think named parameters
You're basically saying which member you want to initialize
 
user142019
10:24 AM
Have you looked at the definition of struct dirt_block? If you have and if you can't understand that syntax I don't know your IQ. :P
 
Xeo
With struct dirt_block{ something on_add; something2 on_break; };
 
oookeeey.
ITT Zoidberg is implementing objects in C.
how are you going to call it?
 
user142019
A struct with function pointers and other data.
 
(*(obj.fun))(obj); ?
 
user142019
10:26 AM
Wat.
 
user142019
obj.on_add(point);
 
user142019
Why would I dereference a function pointer.
 
hm.
okay, you are right.
but, uh, why?
Y
 
user142019
Because I want to execute code when a block is added or destroyed depending on the kind of block.
 
user142019
I am not going to allocate some block object for every block that is created.
 
10:27 AM
no, I mean, why C.
 
user142019
Because fun.
 
that sounds as funny as grinding my face with sandpaper
 
user142019
Well do it.
 
are you aware that you won't be able to do generics anyway?
 
Xeo
Who cares when you have void*!
 
user142019
10:29 AM
Yes.
 
so std::enable_if<std::is_pointer<T>::value, T>::type is ::type here then a T*?
 
user142019
Although C11 does have _Generic for overloading. :P
 
so the best you can get from this is crappy C++ wannabe
 
user142019
Why are you implying I'm going to emulate generics.
 
user1182183
@BartekBanachewicz depends, it's fun for the one who's doing it
 
10:30 AM
because sanity?
 
user142019
No in C that's insane.
 
user142019
(And not because C is insane.)
 
C is just bad.
 
user142019
You are bad.
 
10 hours ago, by Bartek Banachewicz
@Zoidberg you are outright retarded
 
user142019
10:30 AM
At least my code is formatted consistently. :P
 
wow
that's totally not something fixable in one macro
 
user142019
I'm not going to write macros.
 
user142019
They're terrible.
 
I mean editor macro sigh
anyway, you'll end up with a pile of useless, yet well formatted code
way to go.
I mean, the "objects" concept is interesting
but C++ is so much more than simple call-on-object
and that is a thing with C language, because it's just too simple to write that stuff in it.
 
user142019
What are you talking about?
 
10:33 AM
your idea
 
user142019
What is "objects" concept? OOP?
 
nah, your implementation.
 
user142019
I am not implementing OOP.
 
that's why ""
 
template<typename T,
typename = std::enable_if<std::is_pointer<T>::value, T>::type>
void multi(T* p)
{
   std::cout << *p << '\n';
}
is the second actually a parameter or just a thing?
 
10:34 AM
@Zoidberg if you have a structure with behaviour in it, it's an object.
 
is this considered to be a template with two or one parameters?
 
user142019
There will never be any two instances of struct dirt_block that have the same set of function pointers.
 
@TonyTheLion Yes.
 
it doesn't matter regarding the OOP
 
user142019
I don't really care about OOP anyway.
 
Xeo
10:36 AM
@TonyTheLion A U* I'd call it, so as not to confuse things.
 
4 mins ago, by Bartek Banachewicz
anyway, you'll end up with a pile of useless, yet well formatted code
 
user142019
In C++ I would have done it the same way only with std::function.
 
I am done here.
I seriously don't get people sometimes.
 
user142019
There is only one "class" if you want to call it that: struct dirt_block.
 
@R.MartinhoFernandes that doesn't answer my question?
 
10:37 AM
did you get second message, regarding deprecated OpenGL you are using?
 
@TonyTheLion Yes.
 
user142019
Yes.
 
Xeo
@TonyTheLion Sure, unnamed parameter
 
So this is whats confusing me?
 
user1357851
10:40 AM
@TonyTheLion which part about it?
 
You have the stars on the wrong place, btw.
If T is already a pointer, T* will be a pointer to a pointer.
 
user1357851
the brackets are not matching to start with
 
Shut up.
So you have multi<int*>(int**), which doesn't quite work when you pass int* p; to it.
 
Xeo
He also forgot typename, but that doesn't fix the redeclaration problem
Btw robot, saw my stuff about lifting-lambdas?
 
For those who care, Feedly seems like a very good replacement for Google Reader
 
user1182183
 
Why is everyone suddenly looking for a replacement to Google Reader?
 
@R.MartinhoFernandes because come July 1st, there is no Google Reader
 
@Xeo Not yet.
 
Hi
struct A { B b; B getB() { return b; }};
A a;
const B& b = a.getB();
VS
struct A { B b; const B& getB() { return b; }};
A a;
const B& b = a.getB();
 
@Nils 2nd is faster.
 
10:49 AM
Neglecting RVO the first program will make one copy more I think. Does it actually make a difference if you consider RVO? Should you return by const ref?
 
but you should be careful with lifetimes of a and b.
 
@Nils whoops, miss read the code
 
are you sure could you elaborate on how RVO works?
 
@Nils The copy is always observable.
 
@R.MartinhoFernandes This is what I do not understand.
 
10:51 AM
there is no copying in 2nd snippet.
 
WP Says about RVO: "In C++, it is particularly notable for being allowed to change the observable behaviour of the resulting program."
@Abyx yes that is for sure
 
and there is one copy in first snippet.
 
@Nils Well, depends. The former is safer in general (the result can outlive a), and more flexible (you don't really need a backing b, i.e., it can be computed on the fly). The latter has no copy whatsoever-
 
these are two different snippets duh
 
@Nils Consider a.getB().x = 42; in the two snippets.
 
10:52 AM
doing two different dthings.
 
B getB() { return b; } will be compiled as void getB(B& b_copy) { b_copy = b; }
 
// given struct B { int x; };
a.getB().x = 42;
assert(a.getB().x == 42);
// this code can distinguish the two
 
@BartekBanachewicz they do same thing IMO.
 
@R.MartinhoFernandes you could not do that on a const ref
@R.MartinhoFernandes but assuming that unnecessary copies upon return are optimized would mean that returning by const ref is mostly nonsense..
 
@Nils Right, but in the first one, a copy must happen and cannot be elided (otherwise it would change the value of a.b).
WTF Why would anyone even... WTF twitter.com/historyweird/status/312152859313577985
 

« first day (880 days earlier)      last day (4084 days later) »