« first day (1422 days earlier)      last day (3525 days later) » 

12:00 AM
@LightnessRacesinOrbit this was also posted on gd today
0
Q: What does "~" in front of a function name inside a class mean?

user3316397I added a class using the 'add class' item in Visual Studio Express and it generated two functions in the .cpp file with the same names. But the second has the ~ character in front of it. What does it mean?

 
people answer that?
 
on gd.se I guess they do
 
@AlexM. Oh good lord
 
ugh
tbf on SO they would too
bless them they think they're "helping"
 
12:01 AM
nah..
 
@LightnessRacesinOrbit I guess he teaches code commenting in the next chapter?
 
"whats the problem if i helped the op"
 
I don't think that question would.
Probably -8
 
yeah -8 and 4 answers
 
I am with Rapptz on this one, this is too bad to get answered.
 
12:01 AM
there are many users on gd.se who think everyone should be ultra-pampered even when they're wrong
20
Q: Can we please be more friendly to new users?

ashes999I've been monitoring closed questions for a few days now. I noticed a very common pattern emerging: The question is closed ("on hold") It was closed by a single diamond mod The mod closed it within 10-15 minutes of it being asked The user (OP) had one rep only The question is a poor fit to the ...

 
@LightnessRacesinOrbit I guess I can see if it's like a 10 rep newbie.
 
@LightnessRacesinOrbit All of them at -3, and completely wrong.
 
if I saw someone with like 10k+ rep answering it I'd downvote it though
 
@AlexM. Sounds like SO
 
12:03 AM
why does Game Development feel so dead?
 
Ell
@Rapptz Low quality
 
Because Game Dev attracts the real bottom of the barrel?
 
@AlexM. TBH whenever I go to Game Development from google, the question is 99% of the time closed.
 
You could have meaningful questions there, probably, but not if it is a public website. :-D
 
I don't know what's on topic for the site.
 
12:05 AM
@AlexM. dat accepted answer; spot on for SO
@Rapptz cos 14 yr old Americans
 
@Rapptz the content it gets is mostly from beginners (most of them very young kids) who want to learn but don't really know what the hell they're getting into, so most of their questions are very basic, almost about debugging and/or duplicates
 
Ell
@AlexM. yeah, this
 
it's the same thing as SO but it doesn't clutter my search results
 
Ell
most gamedev questions are just really nooby questions about some other domain
 
there are only 3 people who work and/or worked professionally in gamedev there: Josh Petrie (worked on Guild Wars for a long time, and on the new Halo for a while), Almo (worked on boardgames being "ported" to mobile platforms and I believe also at Ubisoft) and me
the rest are hobbyists
 
not sure how gamedev is different from opengl questions...
 
@AlexM. I don't think so bub.
 
I'm not aware of any others
 
I can already list 4 different people.
and I barely visit the site
 
are they active?
I always see the same faces all the time on gd.se
 
12:09 AM
I don't know.
 
@Mikhail gd.se has a policy of not allowing anything that's even slightly open to having two valid answers or answers complementing each other, like codereview.se does it
so yes
most questions are about code
it seems it's not that easy to come up with game design questions that can have a single answer
 
@AlexM. One, two, three, and four.
 
@Rapptz by activity I normally mean the review queues and general answering/asking, but yeah if they're not that active I may have missed some
 
Is codereview.se any good?
 
yeah
 
12:13 AM
@Rapptz right, I'll take a note, thanks for listing them
 
Or is it horrible waste of time?
 
I had no idea Sean worked at GPG
 
it's a neato site.
@AlexM. Looking for their profiles made me realise Game Development is... dead.
 
GPG = Dungeon Siege, which was one of my favorite party-based H&S games
 
Only 17 people in Game Development have >10k rep.
 
12:14 AM
too bad I just couldn't like the graphics, must have been the colors that were used
it felt depressing to some degree
@Rapptz there is activity on the site, daily
 
yeah.. with 17 people with 10k rep...
that's the lowest number I've seen out of all graduated SE sites.
 
hmm, I don't think that was ever raised as a problem, perhaps I should bring it up
we always concentrated on the poor content
 
zch
8/15 most upvoted questions are closed lol
 
A bad comparison, I'm sure. But SO has 9008 people with >10k rep.
Code Review is a site in beta and it has more than Game Development (20 vs 17).
 
@Xarn it's a great site
I like their idea of encouraging you to only review bits you have time/are able to review
so answers reviewing different bits complement each other
 
12:18 AM
yeah I like Code Review.
 
I think allowing something like that on gd.se would encourage more quality content to be posted on the site
e.g. about game design
there's a strong resistance against it though, especially from the mods
I still have no idea why
 
@AlexM. Ok. I just opened a question at random and the question is horrible and answer is wrong, so it didn't exactly fill me with confidence...
 
how is the question horrible? :D
 
from an outside perspective, there seems to not be a lot of content
@Xarn How can the question be horrible? They're just asking for help lol
it's a different mindset from SO
 
@Xarn questions on code review are essentially "my code is here. what's wrong with it?"
 
12:22 AM
@Rapptz Paraphrasing, but question: "I have written a function that should do X. Can it be done better?" Spoilers, the code doesn't actually do X. The answer contains this gem: "In particular, the first implementation is a completely reasonable implementation of a recursive approach to string reversal, and it's easy to read and follow."
 
you can also link to it
 
Hope this works as I think it does :-D
2
Q: Implement a string in reverse using pointers and recursion

canatanI'm trying to reverse a string using pointers and recursion, and I send it a char array. Is this the best way, or is there a better one? int display_string_reversep(char* astring) { char* achar = astring; if((*achar) != '\0') { char* x= achar; x++; display_string_rever...

 
terrible code
 
No wait, I am being stupid
The code does X, I blame still being annoyed at Italians :-D
 
Like Fabiano Caruana?
 
12:27 AM
@HWalters To be quite honest, never heard of him. On the other hand, the air traffic controllers...
Either don't start a strike, or don't be a pussy and stop at 16:30 the same day. This way you just annoy some poor people who are stuck at your boring airports.
 
Ah... was just trying to feel for whether that was a chess related comment
 
Friday attempt at resetting sleep schedule failed, once more unto the fucking breach
I hate everything
 
user3010322
Just stay up for a really long time.
 
Ell
I need to dehydrate
*rehydratd
 
user3010322
Lol.
 
Ell
12:40 AM
But ceebs to get out of bed
 
user3010322
@CatPlusPlus If you like, I can stay up with you for a really long time. :D
 
This question appears to be off-topic because Stackoverflow is not a site to get your homework done by others. — Borgleader 7 secs ago
 
deleted
 
user3010322
Uh.
 
user3010322
I think my MinGW is rigged.
 
12:45 AM
?
 
user3010322
When I try to compile sol things it just... well.
 
user3010322
Explodes.
 
user3010322
The executables just explode.
 
@Rapptz I still have it loaded if you want a screenshot.
oh. wait. you can see delete ones
 
user3010322
Rapptz is 10K.
 
12:46 AM
lol
 
Stackoverflow should have 1 paid site: homework.stackoverflow.com for people like puppy to earn a bit $
 
:D
 
user3010322
He's no longer one of us lowly plebs. :c
 
user3010322
He's the 1% now.
 
@ThePhD Hmmm?
When did he stop complaining for long enough to get a job?
 
12:53 AM
huh
 
Xeo
aaaaahhhh, I just found out that there's a Mindcrack Stream Marathon on the 13th, including a live UHC - and I'm off at the Connichi that weekend :(
 
Why did you post yet another answer that duplicates all the existing ones? — Mysticial 3 mins ago
^^ lol, why do people post duplicate answers.
 
Xeo
oh well, since it'll likely get recorded, I'll just watch it afterwards
 
Btw, does anyone have experience with QT Creator? And am I being stupid or is there no way to set code style to the proper (K&R) one?
 
'proper' :v
no
Qt Creator 3.0 adds formatter plugins
use those
 
Xeo
12:57 AM
> K&R
> proper
 
Hey
 
Xeo
Yeah, I'll just go to sleep.
 
At least we all agree that GNU is the worst (non-obscure) one, right? :-D
 
Xeo
Ever seen Dinkumware's?
 
@Xeo If you mean MS's STL, yeah, otherwise no.
 
Xeo
12:59 AM
ye
 
For those who haven't, I opened a header at random and scrolled for a bit
#define _FUNC_CLASS_RESET_PF(CALL_OPT, X1) \
	template<class _Fret, \
		class... _Ftypes> \
		void _Reset(_Fret (CALL_OPT *const _Val)(_Ftypes&&... _Fargs)) \
		{	/* store copy of _Val */ \
		_Reset_alloc(_Val, allocator<_Myt>()); \
		} \
	template<class _Fret, \
		class... _Ftypes, \
		class _Alloc> \
		void _Reset_alloc(_Fret (CALL_OPT *const _Val)(_Ftypes&&... _Fargs), \
			_Alloc _Ax) \
		{	/* store copy of _Val with allocator */ \
		typedef _Callable_fun<_Fret (CALL_OPT *const)(_Ftypes&&...)> \
 
no fuck you all
django does not have a "good" documentation
 
I just looked at the GNU thing
 
my ass has a better documentation
 
Xeo
@Xarn Careful with copyright etc
 
1:03 AM
django is awfully big and complicated in some points and the documentation is big too but not nearly enough to cover half of what the framework is
 
I never really thought there was someone recommending this
if (x < foo (y, z))
  haha = bar[4] + 5;
else
  {
    while (z)
      {
        haha += foo (z, z);
        z--;
      }
    return ++x + bar ();
  }
 
@Xeo Pretty sure that as long as I don't go and C&P the whole header, I am good. :-)
 
I dunno about GNU and stuff, but that code there takes all of the rules I apply and multiplies them by -1
 
for anything that is not absolutely trivial, the django documentation simply sucks
 
And I am not mad enough to copy and paste over 3000 lines of std::vector implementation.
Or any other header.
@AlexM. There is exactly one good thing about GNU style. Everyone else, whether they are Allman or K&R proponents, agree that it is THE worst one.
 
1:11 AM
My time.. is running.. out...
 
is it racing in orbit?
 
@ThePhD poly2tri
 
user3010322
@melak47 Saw that. The impleemntation is based on a 1998 paper.
 
user3010322
There's been newer work.
 
it was easy to plugin and it worked :D
 
user3010322
 
user3010322
True.
 
user3010322
But I only want the best since I'm doing this for learining. :3
 
user3010322
But s-hull is hard.
 
> A GPL version of S-hull in C++ is provided at http://www.s-hull.org.
The reference code provided uses the standard sort routine from the
STL to perform the radial sorting of a set of points.
 
"The compiler is unlikely to be smart enough to unroll the loop."
WTF?
 
1:24 AM
Compilers are always smarter than you.
 
@Xarn saw that earlier
silly (maybe)
 
Are these people working with TCC?
 
@ThePhD you want constrained delaunay triangulation if you want to fill shapes though
 
@LightnessRacesinOrbit "We couldn't find the page you requested."
 
1:29 AM
What am I donating for exactly?
 
@Xarn You don't have nearly enough rep
 
@LightnessRacesinOrbit Oh well
 
@МикроПингвин For people who needs blood to survive.
You might need it too in the future.
 
Okay, it is 3:33. Sounds like good time to go to bed.
 
@Jefffrey I forgot who I was asking, but okay. ( Í¡° ͜ʖ Í¡°)
 
user3010322
1:39 AM
@melak47 Ah, S-hull is just for any ol' point cloud, huh?
 
looks like it
 
user3010322
Well, that's a bummer.
 
user3010322
@melak47 So it looks like sweep-line, the one used for poly2tri, is the best algorithm when performing constrained delauney?
 
I dunno.
might well be possible to also use s-hull to do that, but I don't know how :p
 
user3010322
Shrug.
 
user3010322
1:43 AM
ploy2tri is New-Style BSD.
 
user3010322
Which is acceptable enough.
 
I haven't looked at the quality or speed of it, but it was easy enough to use and the output looked ok :p
 
user3010322
Well speed is everything!
 
user3010322
I want to do my shit in real time.
 
1:50 AM
Minecraft modding community is ridiculously shitty
 
it's java what do you expect
 
Ridiculous nerds slapfighting over everything
A total cesspit
 
fuck me is slashdot still going
 
@ThePhD seems fast enough for that
 
Also did anyone tell Stallman I want to see his reaction to this DMCA bullshit
 
1:53 AM
idgaf
 
@CatPlusPlus he'd have to use the internet first
 
@ThePhD rebuilding this thing from scratch each frame (rounded rectangle -> spline segments -> poly2tri) and I still get 300 fps
 
user3010322
@Mgetz Wait... what?
 
@melak47 V complicated scene you have there
 
user3010322
Someone decompiled a Minecraft binary, put it in their project, and then...
 
user3010322
1:57 AM
.... they licensed their repo under LGPL / GPL ?
 
user3010322
And that makes them own the original code?
 
user3010322
Top kek.
 
It's dumb as fuck and everyone involved is an idiot as usual
 
@ThePhD that makes them the biggest idiot in the universe basically as their code is a derivative work
so their license is meaningless
Mojang didn't need a copyright assignment because the code was already theirs under the law
 
DMCA is shit
 
1:59 AM
welcome to the wonderful world of derivative works
 
Thanks Obama
 
@CatPlusPlus sorry, but I haven't implemented a grumpy cat primitive yet. rounded rectangle is about as complicated as I've got :p
 
user3010322
@Xeo @Rapptz @StackedCrooked @ScarletAmaranth I think Attack on Titan's opening song is the only Anime opening I like listening to:
 
user3010322
 
anime is stupid hth
 
2:05 AM
Archer is best ANIME
2
 
user3010322
And then someone went and made this:
 
fuck this i'm gonna roll my own fucking groups
with no permissions and contenttype bullshit
 
user3010322
I don't know how to rip the music out of tumblr's cdn.
 
user3010322
:c
 
2:06 AM
contentlytyped framework of my ass
 
You don't have to check permissions if you don't need them
 
i need them
but within migrations everything is in an inconsistent state
and it's basically impossible to get a working group and save it within a migration
 
Use dependencies you butte
 
i am
 
user3010322
._.
 
user3010322
2:08 AM
Half of these libraries
 
user3010322
can hardly build for Windows
 
but 1) every model does not have their manager class but just Manager 2) permissions defined in the models are not detected even if the model is created and its migration is in the dependency list
 
user3010322
jesus christ.
 
@Jefffrey Don't use models directly :cripes: If you need code from whatever manager is doing, copy it to migration
 
and don't even get me started for when you think creating the permissions in the migration is a good idea
@CatPlusPlus i'm getting the models via apps.get_model('myapp', 'MyModel') as specified in the documentation
 
2:10 AM
I use post_migrate signal receiver
 
wait
 
spent the past hour helping my mum's friend to put an ad up for her property, she wanted to rent out a room and didn't know how to put up an ad, I ended up doing the whole thing for her ...
 
@Jefffrey Yes, and that is the serialised model
If it tried to use the code in models/managers, then the migration would stop working when you changed it
Migrations must be independent from the current code state
 
right
 
So no custom save() no custom managers no signals
 
2:12 AM
@ThePhD which libraries?
 
also I've forgot about post_migrate
i guess that's what I want
 
As much as I am willing to help others, I really can not stand anyone who generously donating my stuff and services for free, it is not theirs to donate.
 
user3010322
@melak47 Harfbuzz uses a million dependencies on some linux bullshit.
 
This is for South but Django 1.7 should be p much the same
from south.signals import post_migrate

def update_permissions_after_migration(app,**kwargs):
    from django.conf import settings
    from django.db.models import get_app, get_models
    from django.contrib.auth.management import create_permissions

    create_permissions(get_app(app), get_models(), 2 if settings.DEBUG else 0)

post_migrate.connect(update_permissions_after_migration)
 
user3010322
@melak47 WebM is hand-and-leg tied to CYGWin and MinGW toolkits, even though there's not even any complex code in it that merits it shouldn't be made buildable by other things.
 
2:13 AM
Almost nobody in the OSS world cares about MSVC
Nobody should care about MSVC
It's literally IE of C++ compilers
 
user3010322
Right, but dependencies on like 2 billlion other external tools isn't something to be proud of either.
 
Make is shit but build-time dependencies are hardly a problem
It's not 1960 anymore
autotools proponents whine about depending on normal build systems and Python and god just shut up already you fucking dinosaurs
Don't be them
Also I remain convinced that the best way to build C++ shit for Windows is to cross-compile from Linux
 
@ThePhD ~9ms to triangulate a 400 point polyline into 398 triangles
 
Get Vagrant, get a Gentoo base box, build everything this way
 
user3010322
@melak47 That's... kinda slow. :v
 
user3010322
2:19 AM
I mean, 60 fps means some 16.6 ms, right?
 
user3010322
So, 9 ms for 400 points (398 tris) is... uh.
 
100something fps
 
user3010322
That's more than half your render time out the window.
 
do you really have to triangulate it every frame though?
800 points, 35ms
it doesn't seem to scale very well :v
guess it's time to figure out how to make s-hull work with constrained edges :D
 
Does rendering ever scale linearly
 
user3010322
2:22 AM
heh
 
user3010322
Well
 
user3010322
There's Boost.Polygon
 
user3010322
They're claiming they're better that S-Hull and C-Gal
 
@CatPlusPlus it's just the triangulation
 
2:24 AM
Still
 
@ThePhD better but not awesome either. 1000 points, 4.5ms. and this is not with constrained edges I think. not sure what performance impact that has
 
user3010322
Why polygons has to be so hard. :(
 
user3010322
Maybe I should just make the entire Canvas API minus any random polygonal drawing stuff
 
yeah, because who needs polygons :p
 
user3010322
u.u;
 
2:28 AM
Lounge<wheel>
 
user3010322
@melak47 If I make the constraitn that every Polygon must be convex,
 
user3010322
then I can use vastly cheaper algorithms to make convex polygons
 
user3010322
Maybe I can break polygons up into closed convex structures?
 
???
what is it you want to do anyway :p
 
My flatmate is doing a game with vector-based reshapeable terrain, these algorithms are complex as fuck :v
 
user3010322
2:32 AM
Vector anything is the fucking devil.
 
@CatPlusPlus oh damn
 
vector math is easy :p
reading these stupid math papers is harder ._.
 
you need to be abstract minded :p
 
2:50 AM
in Kitty's language "abstract-minded" means "able to understand made-up and totally illogical reasoning"
just fyi
 
I am sorry that you are not good at maths ... things that you can not possibly comprehend are not all illogical ~_~
 
been looking at papers regarding biarc construction for splines, and I'm finally getting somewhere
 
Is it possible to do template specialization based on values of an enum class?
Something like:
enum class Type { A, B };

template<>
A foo<Type::A>();
 
3:07 AM
 
I figured that was possible but was having trouble finding it by Google.
Thanks.
So once get my magic compiler invocations worked out I think I should be able to do a template specialization for a method that returns different types for Type::A and Type::B
 
don't see why not
 
bah that coliru click-to-go-to-line completely fucks up copy/paste -.-
anyway, this is good of clang:
> did you mean 'Thing<Stuff::A>::type'?
 
3:26 AM
yeah that's neat that it sees that
 
BREAKING: the thing that's worth hundreds of euro that you're carrying around everywhere and prominently display every 10 minutes might attract attention of people who steal things
More at 11
 
you're just obsessed with mutilations aren't you
night, kids
 
I'm so close to getting this template magic correct.
 
cg
 
Hmm...
Compile issue because I'm trying to use Value::Convert::type but it isn't defined.
 
4:01 AM
where is the 'template magic'
 
Anything with template is there so that one get method will work.
 
that's not magic!
I'd move Convert outside
 
I think I'll have to give up on using nested structs, yeah.
 
missing typename
in here: Value::Convert<T>::type get() const;
 
Right, that's the issue I'm trying to solve at the moment.
 
4:03 AM
you're overcomplicating yourself
 
Oh, I just place a typename before it?
 
yes
 
use boost.variant
 
that is also an option
 
This is all just for my edification, unless I end up writing a dynamic language someday.
It seems like this should work.
 
4:05 AM
@LeviMorrison I use SFINAE for this but I think that's too complex
 
\o/
Thank you for your help; I have it working (well, it compiled)
Next time I get spam in the PHP room I won't dump it here :D
 
user3010322
4:41 AM
@Rapptz For some reason, get<vars> when calling lua_touserdata is giving us a nullptr on the type.
 
user3010322
I'm going to investigate some more.
 
This is a lot of machinery to recreate cast overloading :D
 
@ThePhD you mean the lua call is returning NULL?
 
user3010322
@Rapptz Yeah.
 
no way to fix that then
 
user3010322
4:48 AM
And the top of the stack, after doing lua_gettable on the lua state for the call
 
I don't think :s
 
user3010322
says beep is of type nil
 
user3010322
Wait
 
user3010322
Wait a fucking second
 
> If the value is a light userdata, returns its pointer. Otherwise, returns NULL.
 
user3010322
4:52 AM
Okay, fixed.
 
user3010322
local was the problem.
 
user3010322
Calling the lua script with beep being explicitly qualified as local means it becomes unaccessible once the script ends, e.g. it's not pushed onto the global lua stack.
 
user3010322
Not having the world local makes it work as intended.
 
oh
it's marked as local
I missed that :v
 
user3010322
There was some slight housekeeping to do, though.
 
user3010322
5:00 AM
Like getting rid of a bad type_of overload for userdata<T>
 
5:10 AM
Hello, World!
 
user3010322
Hiyo.
 
How's it going?
 
user3010322
Slowly.
 
user3010322
Also my face keeps twitching.
 
did you forget to take your meds?
 
user3010322
5:22 AM
No!
 
user3010322
... Maybe.
 
humans have eyes of carnivore and teeth of herbivore
 

« first day (1422 days earlier)      last day (3525 days later) »