« first day (1355 days earlier)      last day (3585 days later) » 

10:00 AM
I think that you don't realize how hard game development is.
 
@rightfold Components
 
@Jefffrey Me or rightfold?
 
rightfold obviously
 
@Puppy you obviously
 
@Jefffrey high five
 
10:02 AM
Yeah no, I don't do that. Sorry.
 
@ParkYoung-Bae LOL!
 
@Jefffrey I think there are lots of hard things in game development. Architecting isn't really one of them.
 
user1804599
@ParkYoung-Bae wuts dat
 
user1804599
@Puppy uh well, with “obvious” I obviously meant that it’s probably horrible.
 
user3010322
10:10 AM
@Rapptz I picked it to make it hard to reference directly from a lua script without some serious, deliberate thought about how one was going to get at it.
 
user3010322
@Xeo Oh. So it was picking the wrong has_deducible signature. That... explains a lot.
 
user3010322
Uh.
 
@Rapptz No.
 
user3010322
Am I seriously tripping balls or is there like 20 users who are sporting World-War-Era Swatstikas as avatars?
 
user3010322
 
10:12 AM
I don't see anything special.
 
user3010322
Is someone trying to prove a point?
 
Maybe you are tripping.
 
Xeo
lol
 
@Puppy Yay, that proves my point.
 
10:15 AM
@ThePhD funny, I don't see anything like that
 
user3010322
Huh.
 
user3010322
Maybe it's old for me. Hold on.
 
user3010322
YAAY
 
user3010322
Refresh fixes eveything.
 
user3010322
That's what I get for going to sleep with it on.
 
10:16 AM
You probably caught a virus.
 
Xeo
Aw, he figured it out
 
damn, he's smart than I give him credit for
 
@Xeo Did you watch hamatora?
 
Xeo
negative
 
user3010322
Now there's only 3 swastikas?
 
10:16 AM
hola
 
Watching it now. Now that bad.
 
user3010322
Which is less. :D
 
@TemplateRex Hiya dino! :)
 
@GamesBrainiac hey kittykat
 
How ya been?
 
looks interresting
 
user3010322
Now I have something that can automatically resolve what kind of function call is happening. :D
 
@ThePhD how many ::type is that?
(cue in Tarantino in Reservoir dogs)
 
user3010322
10:20 AM
@Xeo For INVOKE, when given a data member pointer, does it automatically figure out which type of call to make based on the parameters?
 
Xeo
@ThePhD ye
 
user3010322
(E.g., get-like on no parameters, set-like on some parameters?)
 
Xeo
oh, no
it's get-only
 
"Symmetry" is asymmetric.
 
as of C++17, I don't want to use typename again. evah
 
Xeo
10:20 AM
@R.MartinhoFernandes Trapped yourself again?
@TemplateRex Living in the future?
 
@Xeo Clang now has -std=c++1z :-)
 
Xeo
lol
 
and they support for (i : some_vec)
 
-std=c++1z Ugh.
@TemplateRex Please tell me you are kidding.
 
10:24 AM
Next stop: x = Obj() is auto x = Obj(). Then x = y, assignment or construction? Breaking news: C++ grammar is even more ambiguous.
 
Xeo
nope
the range-for is a special case
because it allows only declaration
 
@Xeo plus lambda inits
 
Xeo
(Not that I particularly like it)
@TemplateRex well, yeah, but declarations are not allowed there :P
 
I wish they had [](x, y){ return x+y; }
 
I wish they won't.
 
Xeo
10:26 AM
ambiguous with unnamed params
 
@Xeo how so?
 
@Xeo yay, more special cases based on other special cases
 
Xeo
[](int, x) -- deduced param named int or unnamed param of type int?
 
"We would like to simplify C++'s grammar"
 
@Xeo unnamed, you can't have int ;-)
but I see your point with user-defined types
@Xeo but since you can write [](auto, x) with auto an unnamed param and x deduced...
 
user3010322
10:29 AM
Specify auto and stop murdering my tools you jerk. :<
3
 
ERMAGHERD I HAVE TO TYPE AUTO
4 LETTERZ + SPACE OMG
#KILLME
#firstworldproblems
 
@Jefffrey seriously, how many times do you use unnamed params? vs the drudgery of having to type auto for every other param in all your lambdas
 
#yolo
 
worse is better: simplicity over consistency ;-)
 
@TemplateRex More than the times I bitch about having to write auto.
 
user3010322
10:33 AM
So I broke Lightstalker again
 
btw, 58 more to go until we have 300K c++ questions
 
user3010322
I really don't know how to fix this.
 
user3010322
I'm completely lost.
 
user3010322
This is dumb.
 
let's give the lucky guy a set of steak knives
 
10:33 AM
@TemplateRex 57 of which will be "i++ + ++i"
 
@Puppy lol
 
@Puppy I wonder why C++ has no + collapsing ;-)
 
user1804599
I am fucking puzzled.
 
Guten appetit, brb.
 
user2985029
10:37 AM
why all the swastika?
 
user3010322
REFRESH NUB
 
user2985029
they still there
 
user3010322
Ctrl + F5 Refresh
 
user2985029
how strange
 
10:39 AM
@rightfold About anything in particular?
 
user1804599
Let’s just say something like an enemy which moves in a circle and a player which can move freely, and the enemy shoots a bullet in the direction of the player every second.
 
user1804599
Enemy has to create a bullet with a certain direction, right?
 
sure, it has to be fired in a certain direction
 
user1804599
How would the enemy know that direction?
 
user1804599
10:42 AM
Would it store a pointer to the player?
 
@rightfold Why not?
 
user1804599
Just wondering, seems reasonable.
 
just roll with it because it's clearly the simplest solution.
you can always refactor later if you need something else
 
user1804599
But when it creates the bullet then that bullet has to be notified about 30 or 60 times per second that it has to move.
 
user1804599
And it has to be rendered as well.
 
10:47 AM
What are you writing, ArmA 4?
 
user1804599
The enemy has to do that as well.
 
user1804599
It could store a set of bullets it has created and then update all of those when the enemy itself is updated.
 
user1804599
But that would make bullets disappear when enemy disappears, which is silly.
 
Make weapons hitscan problem solved
 
user1804599
Assume slow bullets that the player can see.
 
10:55 AM
bah
I had 1 test failure on Linux, went to fix it, and now I have 91 test failures on Linux.
 
Good job
 
user1804599
Stop using test failure factories then.
 
user3010322
@rightfold std::reference_wrapper<component<position>>, for maximum ECS fun!
 
user1804599
What is component?
 
user3010322
Who knows.
 
user1804599
10:57 AM
I assume position is a pair of numbers.
 
user3010322
Probably.
 
user1804599
:V
 
user3010322
:D
 
user1804599
Or if you have something where if an enemy dies it drops experience points (like in Minecraft) that follow the nearest player. However you cannot store a pointer to a player in those points since there might not be any player involved in their creation.
 
You need area scan
 
11:02 AM
LOL I was used to UB orders pizza or send resignation letter to Boss, this time travel sounds cool :D — P0W 2 hours ago
:D
The standard explicitly allows time travel under UB. Compilers use this permission to exploit optimisation opportunities that would be unavailable otherwise. — n.m. 1 hour ago
 
user1804599
@CatPlusPlus Would xp.update() do that?
 
@Jefffrey lol. I hadn't even noticed. It's looking like that on my screen, and only saw it when you posted a screenshot :) i.imgur.com/PVq8T7i.png
 
user1804599
@CatPlusPlus Would something else do that and call xp.moveTowards(player.position)?
 
Whatever makes sense for you
 
user1804599
11:04 AM
@sehe lol swing uimanager
 
If you're doing ~~~data oriented design~~~ you probably won't have update() on objects
 
user1804599
I have no idea what that is, but I will look it up.
 
@rightfold What about it?
 
It's pretending to be a proper high-level compiler and then doing everything it would do manually
 
user1804599
Oh performance crap.
 
user1804599
11:06 AM
I don’t care about that.
 
@rightfold Don't tease me. I'm willing to kill
@FredOverflow ^
 
@rightfold When was the last time you needed different renderers for an object?
 
user1804599
Although something like a list of XP positions doesn’t sound like a very bad idea.
 
user1804599
Never thought about doing it that way.
 
user1804599
THANKS CAT FUCK OOP
 
user1804599
11:08 AM
@sehe aha subversion
 
@rightfold OOP is POO in French.
 
@rightfold But I use git-svn
 
@rightfold If you're looking for another **** to ****, may I suggest Brian Goetz? He is so ****ing smart.
 
53 minutes about lambdas seriously
 
53 minutes about the implementation of lambdas. Seriously.
 
11:12 AM
bleeh
 
user1804599
Scala y u no rational number type.
 
blooh
 
@sehe They keep coming btw.
 
Xeo
damn, I need a dynamic bitset
 
11:16 AM
Boost
 
Xeo
I don't think we have Boost for this project :<
 
user3010322
dynamic bitset?
 
user3010322
... std::vector<bool>? o.0
 
user1804599
@FredOverflow can you yield conditionally from a Scala loop?
 
@Xeo Then copy it
 
user3010322
11:18 AM
What is a "dynamic bitset"?
 
It's a bitset that's dynamic
 
user1804599
A bitset with a runtime size.
 
user1804599
That can be resized as well probably.
 
user3010322
.... So std::vector<bool> then...?
 
ok I can't spend any more time on imgur. too many fitties I'll never meet.
 
user3010322
11:19 AM
The specialization to save on space has been there since C++98 ?
 
It's a poor bitset
No bit operations
 
Xeo
^
 
Just terribly hacky space saving
 
Xeo
although I actually don't need any bit operations except "is this bit set or not". maybe it suffices for now.
 
user3010322
11:21 AM
Pretty sure this covers it. <_>
 
user3010322
For some reason I've inherited Xeo syndrome.
 
user3010322
When I get up like 50000 hours before I actually need to go to work.
 
@ThePhD boost::dynamic_bitset
best bitset
 
user3010322
._.
 
@Jefffrey WTF was that?
 
user1804599
11:28 AM
I think something like this should work: gist.github.com/rightfold/40919442e595446ba8f5
 
@VáclavZeman v0v
 
Xeo
hm. what do you call the... things that make up a grid?
 
user1804599
@FredOverflow is there a combinator-based way for doing (for (e <- enemies; b <- bullets) yield (e, b))? I don’t like for.
 
@Xeo Cells
 
Xeo
thanks
 
11:30 AM
@ThePhD eh I do that too
why else would I be up at 0500MDT
 
user1804599
I don’t like flatMap either. It’s rather ugly.
 
@ThePhD I once woke up more than 324,000 hours before I actually went to work.
 
user1804599
Cat I want to hug you. 💜
 
@rightfold Sorry, I'm already late for my lecture. Ask me again tonight :) cu
 
user1804599
11:39 AM
Have fun.
 
user1804599
lol dat LGBT avatar.
 
user1804599
If you click it you see swastika.
 
user1804599
Time to figure out how to do 2D graphics in Scala and then make a video game.
 
@rightfold It doesn't have zip?
 
user1804599
@CatPlusPlus this isn’t zip, silly.
 
user1804599
11:47 AM
This is do { e <- enemies; b <- bullets; return (e, b) }.
 
user1804599
Like a list comprehension.
 
user1804599
I need cartesian product of enemies and bullets.
 
Then comprehension is fine
 
user1804599
Yeah I guess so.
 
user1804599
Hmm. I should also destroy bullets when they hit enemies.
 
11:50 AM
This is nice editorconfig.org
 
user1804599
This code is kinda broken. Oh well.
 
user1804599
@CatPlusPlus Yeah we use it at work.
 
user1804599
My colleague uses ST2 and I use Emacs, IntelliJ and Vim depending on my mood.
 
user1804599
I think I need multiple loops.
 
> To create an .editorconfig file within Windows Explorer, you need to create a file named .editorconfig., which Windows Explorer will automatically rename to .editorconfig.
Impressive.
 
11:57 AM
> indent_style = tab
 
user1804599
 
I think I need triple star pointers
moar indirection
 
user1804599
Why do you think you need them?
 
@LightnessRacesinOrbit More like
 
user1804599
Uh fuck that won’t work. It must be per enemy. ;_;
 
11:59 AM
 
because they're awesome. All those stars are beautiful to look at
 
user1804599
glulookat
 
@CatPlusPlus you don't like shooting on yourself? [sic]
 
user1804599
Ah whatever.
 
12:05 PM
1. A segfault occurs at a wa-ay lower level than you can access from within your PHP code, it's an issue in the PHP core itself. Perhaps file a bug report. 2. How big is the string you're processing with preg_match? if it's too long, then that might be the cause of the segfault. 3. If you'r e using that many regex's, you're probably part of the problem. 4. It's "reply's", "replay" is what you get on TV... a spectacular clip can be played a second time (a replay), an answer is a reply. ;) — Elias Van Ootegem 12 mins ago
brace yourself, Elias
 
A colleague of mine read the letters as "SCRUM" there: http://s1.developerslife.ru/public/images/gifs/63e1f331-bee2-4648-af36-709f123ea05d.gif
I bet that was accidental
 
DON'T EXPOSE KIDS TO HOMOSEXUALITY look in that gif it was there the whole time
 
damn Valve managed to utterly break CS:GO
 
@sehe dat gif
 
@LightnessRacesinOrbit "regice's" would be correct, though.
 
user1804599
 
user1804599
Apart from duplication.
 
@R.MartinhoFernandes How so?
 
why does iTunes hate me so?
 
How did you manage to get a segmentation fault in PHP?! — Lightness Races in Orbit 15 mins ago
Its PHP, everything is possible
 
re global:
@LightnessRacesinOrbit: Because it's used in thousands upon thousands places across all the code and obscuring it behind any namespace or something like this would be immensely counter-productive? But for your peace of mind, it's all within a namespace. — SF. 12 mins ago
 
user1804599
12:21 PM
@TonyTheLion phpsadness.com/sad/36 :3
 
that awkward moment when one of my [hypothetical] new colleagues is someone I've trolled hard on SO
 
so what's bad about PHP exactly? I've never used it
 
everything.
 
Ask Cat, if you so dare...
 
The language, the library, the runtime and the community
 
user1804599
12:22 PM
Mostly most of the people who use it.
 
user1804599
And it’s a mess of inconsistent and illogical decisions.
 
@LightnessRacesinOrbit Sticking it in a namespace... really doesn't make it a non-global variable. And... non-constructor init methods?
 
and the inventor of PHP is the first thing that was ever wrong with PHP
2
 
user1804599
He once said he wasn’t a programmer.
 
@Crow do a google search on "Why does PHP suck?" and you'll get a deluge of answers
but your first clue is that the first P stands for Perl
 
12:23 PM
@Puppy ikr
 
PHP Hoards Poop
 
user1804599
@Crow The double clawed hammer is a nice story about it.
 
@Mgetz What? No it doesn't.
 
@LightnessRacesinOrbit Perl Home Pages
 
@Mgetz Personal Home Page, bro
 
12:24 PM
lol
 
@LightnessRacesinOrbit not originally
 
@Mgetz It was never that
 
@Mgetz Yes, originally.
It's now PHP: Hypertext Preprocessor
 
And regardless it has little to do with Perl since PHP3
Perl is somehow worse
 
12:26 PM
already did...
 
PHP: Pretty Horrifying Programming
 
PHP Hurts Puppies
 
user1804599
@Puppy Great reason to use PHP.
 
@Mgetz Read harder and less wrongly.
@rightfold \o/
 
Good morning!
 
12:41 PM
@rightfold wanker
I'mma go tell Daisy you said that
 
user1804599
She doesn’t speak English.
 
@Mgetz lolno
@rightfold It's not a "she".
 
@Puppy oooooooooooooooooooo
 
@Jefffrey Daisy most assuredly is a she.
 
user1804599
Maybe Daisy is transgender.
 
12:46 PM
@sehe She was too busy being an armrest for my mother to care.
 
irrelevant.
 
I'm definitely a purist. Of course it's relevant.
 
@Jefffrey wrong purists, in this case
 
Oh, ok. Nevermind then.
> Young developer, begging with objective-c.
 
12:49 PM
> No rules beyond the rule of personal preference.
 
huh
 
@Jefffrey I thought the hot new thing was Swift now.
 
> begging
 
oh crap 0.0
 
crap occurs
 
12:51 PM
I'll have to beg Objective-C off.
 
tell me you don't make typos
 
I dot'n!
 
Thank you.
 
Bad pnus are wrose than tpyos
 

« first day (1355 days earlier)      last day (3585 days later) »