« first day (884 days earlier)      last day (4070 days later) » 

12:03 AM
Oh.... I've been hit by Faux variadics...
That's what I get for std::function for a 7-argument function... :3c
 
Xeo
#define _VARIADIC_MAX 10
 
You can do that?
 
Xeo
yes
 
What do I put it before? #include <functional> ?
 
Xeo
I'd just define it project-wide
 
12:07 AM
Hm. Okay.
Though, I've already kind of fixed my issue.
 
Xeo
You never know what includes what
 
By doing it C-style. :3c
 
@Borgleader Looks like GG for Life in Game 2.
 
Flash so strong
 
user142019
Hey.
 
12:08 AM
struct NymphBatchCustomContext {
		int passindex;
		BatchShaderStage stage;
		Shading::ShaderPassCollection* passes;
		Shading::ShaderPass* pass;
		NymphBatchRender* render;
		Matrix* view;
		Matrix* projection;
		Matrix* viewprojection;
	};

	typedef std::function<bool( NymphBatchCustomContext& context )> NymphBatchCustomDelegate;
Dat C-style~
 
user142019
Eww impure functions.
 
DAT 7 argument function (aka shitty code)
 
@Zoidberg Impure ?
@Borgleader Hey, I had to have a custom callback. I have to provide all the info necessary. :c
 
user1182183
hey guys does anyone know if it's possible to force my WiFi in windows to search on the channel 14 for networks?
 
Xeo
Crap, Clang with libc++ doesn't like my code and I have no idea why. :(
 
user142019
12:10 AM
@ThePhD The reference-to-non-const implies that the context will be mutated by the function.
 
It is and can be.
 
user142019
So the function is impure.
 
Oh.
TIL.
 
user142019
I love pure functions.
 
Any function with side effects is impure
 
12:11 AM
Well, is there any other way I could pass the arguments?
 
Xeo
Nope, nvm, can't transform to impure form
 
user142019
@ThePhD pass by value and return a new context. :3
 
o_O
You're a mad man.
 
user142019
Oh also make all of the members const.
 
Xeo
What is BatchShaderStage?
 
12:12 AM
3 matrices, a Batch and other stuff,
 
user142019
And their members.
 
copied in the middle of an intense rendering operation?
You must be out of your mind. @___@
 
Dont listen to Zoidberg he's retarded :P
 
user142019
 
@Xeo Uh. Enum telling you where the NymphBatcher is in the rendering stage.
enum class BatchShaderStage {
		BeforeBatch,
		BeforePasses,
		DuringPass,
		AfterPasses,
		AfterBatch
	};
 
Xeo
12:14 AM
@ThePhD Not like it will cost you much to copy that Context struct itself...
Or are you telling me those raw pointers are owning?
 
Non-owning, they don't own anything.
They just point.
Haha, I'm not that nuts.
And definitely not into Lounge beatdown v. 2.
 
Xeo
See, copy 6 pointers and 2 ints. :D
 
@ThePhD Dont worry were to busy with pornguy atm
 
Orrrr.... I could just pass a reference and it'd cost me 1 pointer!
Besides, it'd be super-duper awkward if I pass it by value
 
Or you could not prematurely optimize
 
12:16 AM
and then you mess with the pointed-to values.
@Borgleader It's not premature. This thing can be called 16384 times per frame.
 
It's premature
 
Xeo
I'm confused. Why doesn't Clang like my code...
 
user142019
SSCCE
 
Xeo
7 hours ago, by Xeo
Update on compare_by. /cc @Andy @R.MartinhoFernandes
t.cpp:43:10: note: candidate template ignored: substitution failure [with L = user &, R = user &]
    bool operator()(L&& lhs, R&& rhs){
How can that even... whaaaaat.
template<class L, class R>
bool operator()(L&& lhs, R&& rhs)
Where could there be any substitution failure?! :|
 
user142019
Wat.
 
user142019
12:21 AM
That makes no sense.
 
user142019
Wait, if L is user& then won't that mean it tries to do L& &&?
 
Xeo
Guess how universal references work :P
 
user142019
Then L would be user, not user&. :v
 
Xeo
No
 
user142019
Oh.
 
Xeo
12:23 AM
That would only be if I passed an rvalue user.
 
Sooooo many banelings
omfg that was beautiful
 
I feel it!
 
You feel it?
 
In the air
 
user142019
I am fucking confused.
 
12:29 AM
I'm always confused when girls talk to me
 
I'm the incarnation of socially awkward penguin.
 
user142019
Aren't you a girl yourself yet?
 
user142019
Dec 31 '12 at 4:17, by Cat Plus Plus
I wish I was a lesbian
 
user1357851
that's 2 wishes - 1) becoming a girl 2) then becoming a lesbian
 
That means Cat would only have 1 wish left.
 
12:32 AM
If I became a girl right now I'd be a lesbian automatically
 
user142019
Well, you're not an OP. At least, not on Stack Overflow.
 
user1357851
So why become a girl if you want to be a lesbian?
 
@DeadMG: Flash has balls of titanium
 
user142019
Macromedia Fleshlight
 
@Borgleader When you're down like that, it takes serious cohones to cheese like that
 
12:35 AM
Damn right. That game was so intense.
 
user142019
Play Next in iTunes is awesome feature.
 
@Borgleader Rofl, killing the SCV of Flash and then escaping
 
BossDrone
 
and then a third hatch before pool, balls-o-matic Life
 
I plugged in my 24" tv as a second monitor on my laptop so I could watch the stream full screen
 
user1182183
12:44 AM
0
Q: Connect to channel 14 WiFi network?

Gam ErixI did some "hacking" (well, more like bypassing) and set my router location to "JAPAN", please see this picture: This allowed me to set my network to channel 14 in the Advanced Wireless Settings. However, when I set my channel to 14 in the router, no device in my home can detect it. Even inS...

 
LOL 32 banelings
 
user1182183
what is a "baneling" ? ;o
 
A unit in starcraft 2
 
wtf, Flash can't split or stutterstep against Banelings?
 
user1182183
aa :P
 
12:46 AM
I noticed it last match too
he's pretty useless against them
 
that was sooooo awesome
 
@BartekBanachewicz 68.33 on Hexagoner
 
134k viewers thats gotta be a record
 
memcmp returns 0 on match?
Or was it 1?
 
> using memcmp
> not reading docs
 
12:50 AM
Yeah don't use memcmp
 
TIL: Flash can't micro against Banelings for shit.
 
It probably returns the same thing strcmp does
 
a more experienced WoL player would have done a lot better against those assaults
not that Life didn't play well
 
It was 0.
 
Thats the important part, a more experienced WoL player
Flash showed up at the end of WoL
he might not be used to banelings
 
Xeo
12:51 AM
Something funky is going on in libc++
 
yeah
I'm not sure that ling/bling/muta is stock HoTS against Terran.
 
omg that kid is 16 yrs old (ST-Life)
 
yep
youngest GSL winner ever, 15 years and 263 days.
 
He did 2 team all kills in GSTL and IPL (wiki.teamliquid.net/starcraft2/Life)
wtf that guy is a beast
 
yep
Life is a serious player who kicks some serious arse
 
user1357851
1:02 AM
I love the term professional player
 
him and the Leenocktopus are both super-aggressive, young, successful players
 
user1357851
I wonder whether they have fun playing the game because they get paid for it
 
I should become a professional player
 
user1357851
successful game players - oxymoron don't you think?
 
@Telkitty Not when they get paid hundreds of thousands of dollars per year.
 
1:04 AM
@Telkitty Pro-player -> Player who's main source of income is playing games.
GSL First prize ~ 100k US$ iirc
 
That would last me for like 30 years
 
user1357851
@DeadMG how long will that income last.
 
[SK]MC has made like 400k$ since SC2 came out
 
@Telkitty Flash has been doing it for fifteen years.
 
its been out for like 3 years
 
user142019
1:05 AM
> P# is just the nickname for Microsoft Visual C#++Basic.NET on Rails.
 
user142019
LOL
 
@DeadMG Not 15, hes 20 years old :P
 
I don't think that Flash is 20.
 
I just checked
 
anyway
 
if you're a super-pro player, then you get sponsorship and shit even after you finish playing
just like any other athlete
 
user1357851
It is like air hostess - you get paid a lot of money for doing a glamours job. But you burn your youth for it - same with professional game player
 
no more or less than any other professional sportsman
 
user1357851
people don't understand time is the most precious thing. But then I guess there are too many useless people to who the whole world of time wouldn't make a difference- they just get bored
 
user142019
Reactive programming.
Me gusta.
 
1:08 AM
And as opposed to what, working a 9-5 cubicle job at a multinational corporation, that's not burning time at all?
Also they'd play games anyway, might as well get paid for it
 
If you can play certain games that well, why not?
 
This "wasting youth" thing is stinking of a superiority complex or some shit
 
YAAAAAAAAAAAAAY
NymphBatch compiles.
 
MY WAY OF LIVING IS BETTER THAN YOUR WAY OF LIVING
You should be doing things I done/wish I'd done/whatever
 
Xeo
Okaaaaay. Question:
 
1:10 AM
holy fucking shit, Flash, you can't micro against blings at all.
 
Unless Life fucks up
Flash is done, and has been for 5 min
 
Hello, Cruel World!
 
Xeo
If bind(something, _1) doesn't need a const operator() on something, bind(other, bind(something, _1)) shouldn't either, right?
 
Because fuck if they enjoyed doing other things more than doing this thing, they'd do the other things
It's so incredibly annoying
 
Life <King of the Swarm>
 
1:13 AM
What I don't get is Stacraft the spectator sport
 
I don't understand that sentence
 
@BartekBanachewicz Ha, 74.21
I think I've figured out all patterns
 
Xeo
@CatPlusPlus I totally suck at the many left-right-left-right one. :(
 
You need really short bursts for this one
It's easy to overshoot
 
Xeo
Yeah, I just suck at doing that
I always go too far at one of them, and then not getting the next one.
Also, the round-robin one sometimes simply confuses me
 
user1357851
1:17 AM
@CatPlusPlus Don't know, I am a hopper, when I am not happy, I walk.
 
Xeo
Since I'm still not totally sure if I can just hold one direction - I guess not, the gaps seem to big
 
Which round-robin one?
 
user1357851
So I have a lot more choices as a software developer than air hostess or professional game player
 
Flash got knocked out of the previous MLG by Life as well.
 
Xeo
where the opening always goes in one direction around
 
user1357851
1:19 AM
In fact most of my programming skills I learn while working
 
Ah, yeah you don't hold the button
 
Xeo
Guessed as much
 
Short moves in one direction
 
Xeo
If I manage to not be confused by that pattern, I can do it.
But sometimes, I simply go the wrong direction right at the beginning
Btw, do you play with keyboard or controller?
 
Those two patterns took me the most time to figure out too
Keyboard
I don't have any controllers
I wasted my youth on programming now what
 
Xeo
1:23 AM
Y'know, if only that field would stop spinning
It'd be that much easier.
 
It spins a lot more in hyper mode
Also I think Hexagoner is actually easier than Hexagon, because there's no shape changing
 
Xeo
@CatPlusPlus I noticed
@CatPlusPlus Meh, I don't have a problem with the shape changing
 
Square shape is a bitch
 
Xeo
I have a problem with those two patterns though
 
Especially if it coincides with hyper switch
Also spin with the field, it's less disorientating then
I actually have a feeling that pointer is going slower when I spin in the other direction
 
Xeo
1:27 AM
Aw, 70 Hexagon
 
And then I overshoot
 
It is so lonely in my room... also, what is the hexagon thing?
 
Xeo
Hm... does it auto-switch to Hyper when you reach 60 seconds or what is that?
 
Yes
Okay I did ~73 with your two favourite patterns I'll upload it in a sec
 
Xeo
Man, Hyper mode does not only spin faster, huh? 20sec
 
1:37 AM
What game is this?
 
Xeo
Erm, WTF
I just had a weird pattern in Hyper mode
Basically the round-robin, but with two openings
 
Yeah I think Hyper mode proper has bit different patterns than Hyper you switch to from normal one
 
Xeo
That W-pattern can also be a bitch
 
I can get to hyper pretty consistently now
Time to beat Hexagonest
 
Xeo
Aw, 53
 
1:49 AM
A lot more spinning and faster pointer
I can't get timing right :<
 
Xeo
Hexagonest is just mean
 
user1357851
I don't understand - usually girls in bikinis = softcore porn. But if it is on Victoria's secrets fashion show, then it's not
 
Xeo
Especially the faster pointer is a bit hard to adjust too
11s xD
 
That 360 spin is pretty damn hard
My best is 26.21
 
....
 
Xeo
1:51 AM
I just seem to overshoot all the time with Hexagonest
 
Xeo
Woah, 3 openings twister
 
It's not 360 it's 180
Damn screen flipping around
When it happens in the middle of tight-timed pattern = game over
 
Xeo
Well, atleast I can get to 5s consistently! /sigh
Sometimes, I just forget the game itself and start following the spinning colors... until "Game Over".
 
Made me think of Cat++
 
Xeo
1:59 AM
The worst is switching back from Hexagonest to one of the other two.
 
21.42 in Hexagoner Hyper
And enough for today
 
You guys are officially addicted.
 
Play too
I had a clever name for Lounge-wide ranking but I forgot
I'll get back to that later
 
Xeo
This game is surprisingly addictive, even if you just plain suck.
Also, the less-than-60-seconds one round goes feels surprisingly long
 
When you first grind up the levels it takes such a long time
But after you beat a difficulty level once the sublevels just fly by and 60s is nothing
It's a fun little challenge, and you can feel the progress
 
Xeo
2:06 AM
15 Hexagoner tries later - Status: I still suck at it.
 
user1357851
You succeeded in sucking, persistence is the key!
 
Xeo
Yep, enough for today.
 
May I ask a question?
 
Xeo
Depends - are you a dick?
 
Depends!
 
Xeo
2:10 AM
Good answer.
Is the question C++ related?
 
No. It's related to my life.
 
Closing: Too localized.
:)
 
Xeo
What the polar bear says
 
I wanted to know, is there an easy way to say "I know there is a better way, but I want to know how to do this thing the wrong way. But I don't know how please help"
 
Yeah. Just state the goal: the goal is never to avoid the proper way
The goal might be "I'm trying to learn lowlevel thread synchronization primitives here"
Or "I am implementing my own smart pointer, just to see where the problems with that are"
 
2:13 AM
That sounds so easy when you put it like that!
 
Yeah. It is usually simple. Unless you have no clue what you're trying to do. In which case: read books and experiment :)
 
Thank you polar bear
 
You're welcome
 
What room powers do you have?
 
I can heat it, I can dim the lights. I can change rooms. I can vacuum it. That's about it
 
2:19 AM
Eventually I will get used to that. Anyway, though, Cat made "my" room (chat.stackoverflow.com/rooms/26341/pawnguy7s-room), and removed (him?)self from the owners... is it me or does this meant he room can never have anowner?
 
Xeo
struct identity{
  template<class T>
  T&& operator()(T&& v){ return std::forward<T>(v); }
};

int main(){
  std::vector<int> v{3, 5, 1, 2, 0, 4};
  // works with libc++
  auto comp = std::bind(identity{}, std::placeholders::_1);
  // fails with libc++, requiring the second `identity::operator()` to be `const`
  auto comp = std::bind(identity{}, std::bind(identity{}, std::placeholders::_1));
  std::sort(v.begin(), v.end(), comp);
}
:'(
 
user1357851
@Pawnguy7 Oo you listened to Cat++ ... that guy sell human souls to the aliens for entertainment
 
user1357851
poor you
 
@Telkitty listened to him how?
 
user1357851
went to that room
 
user1357851
2:23 AM
Basically he made a special bin just for you
 
user1357851
and you didn't even notice
 
I did, but I was getting cussed at here, so I dropped it and worked on something else.
I can make use of my own bin :D free of... this.
 
user1357851
:D
 
2:43 AM
with sockets, if you receive a packet while your hitting listening, does that packet just disappear? Or will it reside in some buffer waiting for me? Or?
while your not listening*
 
@Daniel it will reside in some buffer. Depends on whether it is a new connection (in which case backlog passed to listen() decides whether it will be dropped or queued)
If it is an existing (accepted) connection, it will be buffered with that connection
 
@sehe that was my impression; if too many packets are missed, they will be dropped I assume?
 
@Daniel Hmmm. I wager. Yeah. That might be platform specific. I guess you should find that in the manpage for e.g. recv (or maybe select)
 
right, cheers :)
 
3:15 AM
@Daniel What protocol? TCP?
 
3:35 AM
@MartinJames Good point :)
 
3:53 AM
I just played and won a game of the Boardgame of Thrones
this game is so exhausting.
 
4:46 AM
YEAH!
INSTANT VERTEX DRAWING IS BEASTLY!
 
user1357851
When I saw replaceAll("\\s", ""); in java for a sec I thought to myself 'regex'! Then I realised it's just a normal string manipulation. Then this this 'profound' philosophical questions comes to my mind: "when does a complicated one line string manipulation becomes a regex string manipulation?"
 
@Telkitty Well, replaceAll does take a regex.
 
user1357851
Yes, then you have replace in Java, and then you have replace in C++
 
user1357851
somewhere along that line, it is no long regex
 
@Telkitty There's no replace in C++. Except in the regex stuff.
It's always regular expressions.
 
user1357851
 
Right, forgot about that one.
By the way, stop using cplusplus.com, it's shit.
 
user1357851
lol
 
That said, string manipulation can sometimes be easier to do with regular expressions.
Usually, I go with whatever means fewer keystrokes for me.
 
user1357851
yeah I love regex - one of the reasons why I do most of my performance no important stuff in perl
 
> Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems.
Nothing's perfect, of course.
 
user1357851
5:19 AM
I suck at naming classes and variables
 
user1357851
& I hate dumb class/variable names ... there are every where
 
@Telkitty Everyone does. That's why there's so many "manager" or "context" classes around - because it's the lazy approach to naming.
 
For example:
NymphBatchCustomContext context = {
			-1,
			BatchShaderStage::BeforeBatch,
			customshader,
			null,
			null,
			&view,
			&projection,
			&viewprojection,
		};
> Context
<3
Lazy naming. <33
I just realized, a few letter changes and this class can be very insulting.
 
user1357851
until you have 5 different contexts you have to use in the same class
 
Indeedily.
Thankfully, the number of Contexts I have is rather tiny.
This was just because variadic functions / std::functon couldn't go beyond 5 unless I made a project-wide define for more than that.
 
5:56 AM
SUCCESSS, BITCHES!
 
@ThePhD Well, we're happy for you! :D
 
6:48 AM
@ThePhD So I'm watching an episode of Extra Credits and I can't believe you of all people don't watch it.
Damn it you noob.
 
@Rapptz Loooove you too. <3
 
Nooope
You can't make me. :c
 
Why don't you watch it?
Out of curiosity
 
Truly?
Only because I want to get on your and Etienne's nerves. :D
 
6:52 AM
It doesn't get on my nerves, I just think you're weird.
 
7:09 AM
lol
I love it when you two fight! XD
 
7:35 AM
I'm not weird. :c
 
Can I retract my close vote?
0
Q: programmatically generate graphs and charts with c / c++

mdkIs it possible to generate images that pictorially display data from data sets in memory? I need to generate charts and graphs (jpeg / gif / png) to represent in-memory numerical data, produced in my server-side application, on demand. I can log this data into a file, and generate the charts usin...

While it is a duplicate, the answers in my suggested older question are not complete.
 
7:47 AM
@CatPlusPlus I managed to finish NymphBatch now. It's a very fast batcher for drawing quads and quad-like shapes (though right now it just specializes in drawing Texture2D's - the other functionality is commented out while I get myself ready to implement it properly)
But the Texturing part works, and its pretty damn fast.
So we basically have the core means to make a serious 2D game out of it.
 
Ell
8:06 AM
How damn fast is it?
Have you benchmarked?
 
1k+ FPS with 1K Sprites
 
8:36 AM
@CatPlusPlus gotta go to work and beat ya :P
@ThePhD 1K sprites? oh, that's sweet. I am chunking my world now, and aim for 5 million cube geometry.
 
u crzy.
 
well
GPUs are fucking fast
you just need to know how to feed them.
eventually yours will grow big and hairy too :P
but seriously, they are damn fast.
 
Hm.
A class need not be defined when a template class/function is being declared (as a parameter or member), only when it's being instantiated / used?
template <typename T>
void Evaluate ( Sexy<T> sexiness ) {
    sexiness.internals++;
}; // <--- Sexy<T> has not been declared / defined yet, is this okay?
 
XY problem
 
Uh
XY problem?
 
8:43 AM
google it duh
 
Xeo
@ThePhD Yes
 
Oh.
 
Xeo
Being undeclared has the same properties as that specific specialization being explicitly or partially introduced later.
I think, anyways.
 
Ah.
Well, the Core Problem (rather than hacking away at my solution) is this: I have Matrix::Transform ( Vector3 input, Matrix transformer, Vector3& result )
This works fine because Matrix is declared after Vector3
Still, I want to do something like Vector3::Transform (Vector3 input, Matrix transformer, Vector3& result)
Obviously, it's massively redundant.
But it was one of those things of "is it even doable?"
"DO YOU EVEN LIFT, C++?"
 
8:46 AM
is it operator= that you can implement using std::swap?
 
That is, can "Matrix" be used on Vector3, even though Vector3 is used by Matrix ?
 
also, mawning
 
Mooooorneen.
 
Hmm, now that I listen to the recordings, I actually think that yesterday night it actually sounded better live
 
user142019
Good morning.
 

« first day (884 days earlier)      last day (4070 days later) »