« first day (1123 days earlier)      last day (3833 days later) » 

user1804599
2:06 PM
That’s not awkward.
 
2:16 PM
What would you guys call a std::function wrapper that no-ops if empty?
 
Xeo
safe_function?
 
moron_function?
 
Xeo
Also, my bored attempt at a lazy transform-range looks terrible
 
user1804599
function_or_default with no-op as default argument to constructor.
 
2:18 PM
I might go with maybe_function.
 
If I want to pass arguments, I can just pass an empty lambda to a regular std::function.
 
@DeadMG Did he? Perhaps I missed a message
 
Xeo
@R.MartinhoFernandes Also, what are the semantics for non-void returns?
 
@R.MartinhoFernandes Or perhaps he exists in an inverse time field, devolving as we age.
 
@LightnessRacesinOrbit Read the first couple of messages in the thread. Leigh is a total prick to Alf with no provocation.
 
2:19 PM
@Xeo Static asserted away.
 
> In Usenet forums it's a very good idea to plink the trolls (including you) -- or to plonk the heavy-weight trolls, to show some last respect.
LOL
@DeadMG Oh, yes, Leigh. But his nastiness was directed to David, who was perfectly polite as far as I can tell.
 
@rightfold It is when you need it
 
@LightnessRacesinOrbit orite.
 
@LightnessRacesinOrbit I have a feeling he had Leigh plonked already.
 
user1804599
@sehe It only is when AWK is missing.
 
2:21 PM
I find it a little difficult to navigate Google's interface
@R.MartinhoFernandes Heh that would explain the non sequitur
 
@Xeo We have some even callbacks with no returns, and if(on_whatever) on_whatever(...); shows up too often.
 
@LightnessRacesinOrbit It's more a cyclic thing in his case. He has some sort of disease for which the treatment is apparently quite painful. After he gets a treatment, everybody "nearby" suffers.
 
(And I just fixed in a bug caused by missing the if)
 
Xeo
@R.MartinhoFernandes I had a feeling it was something like that
 
@DeadMG did you figure out your tests-sometimes-failing-also-debugger-and-crashes-being-weird thing? I was just browsing the LLVM mailing list which mentions LLVM_DISABLE_CRASH_REPORTING. Related maybe?
 
Xeo
2:24 PM
Sounds a bit like boost::signals, though?
 
@jalf Oh, er, no, I haven't looked at it since yesterday.
 
Apparently they have something in place to mess with how Windows deals with crashing processes
 
@Xeo Are those movable already?
 
@jalf That might explain why the crash behaviour isn't functioning properly.
 
I guess I can also just make a struct nop { template <typename... T> void operator()(T&&...) const {} }; and then initialise the events with nop{}. But getting that initialisation for free would be better, I suppose.
 
2:27 PM
@R.MartinhoFernandes Perhaps try_invoke(on_whatever);?
 
Xeo
@R.MartinhoFernandes I think I like the idea of a wrapper that if-checks on operator() better
 
@JerryCoffin That still puts the burden on the call-site.
 
Xeo
@R.MartinhoFernandes I think so, but I guess it's a bit heavy-weight (I just glanced the documentation and it mentioned something about shared_ptr)
 
It saves a tiny bit of repetition, but the real thing I want to get rid of is the boilerplate.
 
@R.MartinhoFernandes Fair enough.
 
2:29 PM
@Xeo I know they were not movable for a while, and, since we have boost all over I suppose this was written when it wasn't.
 
@jalf Ah yes, I've seen the source code, and it basically sums up as "Fuck all the debugging information, just dump stack trace to console and it'll all be fine".
 
Xeo
Also, I guess your event-dispatchers can't have multiple listeners?
 
Yeah, nothing fancy. It doesn't really reinvent anything to be honest.
Just a std::function data member, and the annoying if checks on use :(
 
Xeo
If you could have multiple listeners, the problem would solve itself by the fact that the internal vector of listeners would be empty.
 
Yeah, but then it adds issues like detaching. That would be the point to say fuck it and just use signals.
 
Xeo
2:32 PM
I guess
Btw, wanna look at my implementation of a lazy transform-range? It's been floating in my mind for a while and I decided to just code away today, but it turned out very heavy. :/
 
@Xeo I had a day like that last week. :( Enjoyed it until 1am then had to let it go
 
@jalf: Unfortunately, adding or removing that env var had absolutely no effect. I'm just going to quiz #llvm.
 
@Xeo That sounds quite simple.
I mean, even as iterators.
 
Xeo
Not how I had it in mind :D
well, it is easy, but heavy-weight - or that's what it feels like to me, at least
Actually
I also don't think I've fully thought the ownership semantics through.
Now it's out of my mind, at least
 
Wait what
WTF is the inner_iterator?
You store the results?
 
2:45 PM
Fuck APIs which don't provide any information about errors
 
Xeo
@R.MartinhoFernandes Multi-pass!
 
> error in sasl_server_start: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information ()
 
Did I mention I have 120MBit internet? mehehe
 
obviously, the empty parens contain, you guessed it, the minor code
 
@Xeo And you complain it's heavy?
 
Xeo
2:46 PM
Just feels like I'm missing something
 
@jalf Very very minor, it seems.
@LightnessRacesinOrbit What do you pirate with it?
 
@R.MartinhoFernandes Shockingly little
 
Sounds like a waste.
 
I admit to obtaining new episodes of US TV programmes. I do buy the DVDs when available. It's no excuse per se, but there it is; I am literally doing no harm and have little patience
But all my music needs are served legally nowadays, and the rest of my bandwidth is practically wasted.
It does help with maintaining a decent incremental system backup.
Oh, and working from home is the least painful it's ever been
 
JBL
I should not have browsed comp.lang.c++. I used to think there was only serious people discussing in there...
 
3:04 PM
Sleepy Hollow S01E07..
 
@LightnessRacesinOrbit Gotcha! Being undercover for so long finally pays off!
 
Xeo
@R.MartinhoFernandes If you were actually undercover, you wouldn't have revealed yourself.
 
Maybe it's a trick so I can remain undercover.
WTF chat keeps making me rejoin the JS room.
 
Xeo
Ugh.... no motivation at all today
 
TIL Robot "reveals himself"
 
3:09 PM
@R.MartinhoFernandes It's a callback being executed:)
 
@R.MartinhoFernandes Perhaps Bartek hacked your account. We know he loves JS
It's when chat keeps making you rejoin the PHP room that you have a real mystery
hey did you know my Twitter account was compromised last week? some helpful soul has just kindly informed me.
 
3:25 PM
@LightnessRacesinOrbit That would be a real banana skin:(
 
@MartinJames wheeeeeeeeeeeeeee
 
@MartinJames I don't get it :(
 
Xeo
@Jefffrey Bananananachewiz
 
@Xeo How does that fit in the "Perhaps Bananananachewiz hacked your account" thingy?
 
3:41 PM
A banana skin is a mythically slippery object presenting a hypothetical trip hazard when maliciously left on the floor.
It was a fairly tenuous connection but enough to make sense in here
0
Q: yet another topic about volatile

axeThe question arises after reading some codes written by another developers, so I did some research and I found article by Andrei Alexandrescu. In his article he says that it is possible to use volatile boolean variable for busy waiting (see the first example with Wait/Wakeup) class Gadget { publ...

 
@LightnessRacesinOrbit Oh. Ok.
 
4:01 PM
... so erm, who is responsible for me having not listened to Anthrax before?
 
you?
 
JBL
Oh boy, another introduction to TMP with the factorial example...
 
Xeo
TMP introductions should show you how to operate on types
 
Now that would be useful, we can't have that
 
Xeo
One of the only reasons to use non-types is building lists of them (index_sequence as a specific example) or bool for partial-specialization of a class template.
 
4:09 PM
You'd think that with metaprogramming being programming with types as values, people would think of that
 
C++ isn't really set up to give that impression.
 
For fuck's sake, another moth
It's like 6th in the past week
 
JBL
@Xeo I would've loved to see the concept of partial-specialization in courses on TMP. I feel it shows you quite well what you can do without relying on "never implemented in real life" examples.
 
@CatPlusPlus Inside your brain?
 
4:13 PM
I don't have a brain
4
 
@CatPlusPlus that kinda sucks
 
But the acoustics
 
Oh great, so from now on, I not only have to write Java, but also use its retarded naming convention!
So amazing, so educating...
 
Here's your lesson: naming conventions don't matter
 
I know that.
 
JBL
4:16 PM
Unless we talk about Java though.
 
But my "teacher" thinks that we need them to be able to tell what is what.
 
And he wants to force us to use it.
He is just giving us an example: System.exit(0) - a call to static method.
As if we couldn't say that by the sane names, not the way they are written -.-
Fuck Java. Fuck insane naming conventions. :F
 
Wait what
I don't get what's your problem here
 
My problem is I have to use Java's retarded naming conventions from now on until the end of the semester.
 
4:19 PM
What naming conventions
 
ClassName, methodName, fieldName, local_variable_name, CONSTANT_NAME
 
Local variables are not called differently typically
Also seriously what's the proble
 
It's unreadable.
 
As opposed to what?
 
foo_bar_baz
 
4:21 PM
:psyduck:
 
local_variable_name is about the only sane part of this convention.
 
They're all equally readable :psyduck:
 
Not for me.
 
I kinda' think CONSTANT_NAME makes sense.
 
TooMuchLettersInTheSamePlaceMakesThingsUnreadable, while_things_that_have_some_spaces_between_some_of_the_letters_make_it_more_read‌​able.
 
4:23 PM
Nothing wrong with camelCase, really, or CamelCase.
Sure this_is_more_readable ThanThis.
ButThisIsStillPlentyReadable.
 
It really doesn't matter, unless you've literally never read any code
 
The "more readable" part is what is important!
Also, if you need different casings for different types of identifiers, your identifiers suck.
 
Not really
 
Really.
 
Collisions are annoying
And to avoid them you need to unnaturally change variable names
 
4:26 PM
Or namespaces.
 
Yes, introduce namespaces where they don't belong to avoid collisions before class names and variable names
 
Or rare shenanigans like class foo foo().
 
That is so much better than just not using the same naming style for both
 
sure, this is "more readable"
vector<int>::iterator itr;
vector<int>::iterator end = my_vector.end();
for(itr; itr != end; ++itr)
//do stuff
but that doesn't mean this is somehow awfully horrible
for(vector<int>::iterator itr; itr != my_vector.end(); ++itr)
//do stuff
 
Using multiple naming styles hurts my eyes when reading.
 
4:28 PM
But really, fuck this, I don't care about naming :spergin:
 
gah
 
It doesn't matter
If it matters for you, you're terrible at programming, good job
 
@caps, no, the first one is far less readable.
And pollutes local namespace.
@CatPlusPlus, it doesn't matter to me, it matters to my sanity.
 
JBL
@Griwes Yeah, so in fact "Naming conventions not my own aren't readable". Teehee, nothing new.
 
Which I've lost some time ago, meh.
@JBL Rather "Naming conventions different than C and C++'s naming convetion aren't readable" (minus the insanity of the concept naming style, eh).
 
4:30 PM
:lol:
 
Xeo
@Griwes Haskell must suck badly, it forces different cases :P
 
Haskell sucks badly even without that :O
In fact, everything sucks badly.
 
esp. your mom
 
If you don't conform to the typical convention of the language/environment you're using, but instead insist on using your own, you're terrible
Also seriously nobody uses snake case for local variables in Java
 
I do want to be terrible at Java, d'oh.
 
4:32 PM
:thumbsup:
 
I love the entirely disparaging nature of the starboard right now. Great job, guys!
 
Another harsh newcomer visit?
 
@Pawnguy7 Not the worst
 
Congrats @R.MartinhoFernandes!
 
I still feel being polite would help.
@BartekBanachewicz what for?
 
4:36 PM
Use twitter, duh
 
@Pawnguy7 Meyers is making him famouser
 
@LightnessRacesinOrbit Scott?
 
Personally I'd rather be made famous by someone who more seldom talks bullshit, but w/e
 
I just dropped by to write this, going back to watching lectures about JS
 
@Jefffrey No, Mike
Yes Scott
 
4:37 PM
Was that really needed?
 
Link?
 
Scott Meyers is advertising a series of articles about tuples and meta programming by @martinfernandes. http://t.co/x4CQCx0HRZ
8
 
JBL
@Griwes Hint: I've seen the exact naming conventions you mention in C++ code. "But these are supposed to be Java's one !".
 
@Griwes nice :D
 
I feel I should be more excited. Hrm.
 
user1804599
4:40 PM
Meh.
 
user1804599
I got my trousers and they’re too big.
 
@Jefffrey any new features?
 
@Pawnguy7 Nope. How about you?
 
Not really.
Made some xylophone music.
Does youtube support audio files as video?
 
Also I've just spotted a bug.
 
4:42 PM
This would be an interesting fight -> Markdown vs restructured Text :P
 
@Pawnguy7 dunno
 
Our "teacher" is telling us to derive Circle from Point. Gz.
 
I planned to add music, anyway.
@Griwes wouldn't it contain a Point? Not derive from it?
 
@Pawnguy7 In sane designs, yes.
But he teaches Java, he cannot possibly have a clue about sane designs.
At least Triangle isn't derived from Point -.-"
 
@Pawnguy7 curious instrument
 
4:46 PM
Well.
 
Point -> Shape -> Circle might make sense
 
It seems that it never sounds terrible.
 
@caps A circle is not a point.
A shape is not a point either; a point is a shape.
 
@Griwes That would be a better order of derivation.
 
It's a container of points, unfortunately infinite.
 
4:48 PM
Point is not a shape
 
@MartinJames For practical uses, a cicle is defined by its center and radius.
 
@Griwes The center is a point.
 
Shapes are sets of two or more points :ssh:
 
Yes. That's why the circle should contain a point and a float.
 
You're discussing a completely retarded OOP hierarchy
 
4:49 PM
@Jefffrey so anyway, I planned to make a music thing, and make the volume controls work correctly.
 
No matter what derives from what
 
@CatPlusPlus Yes.
 
@Pawnguy7 like a music program or what?
 
But ever retarded OOP hierarchies can be made in saner ways than this.
 
4:50 PM
@CatPlusPlus Oh gawd, that's three times this year I've agreed with the cat.
 
@Jefffrey well. I wanted to have a slider for music, sound, and global.
 
@Griwes A point is just a point. A shape might contain some number of points. A circle is a shape that contains one point (and a radius).
 
Also, I am starting to understand why you kept watching those videos yesterday.
 
So it is... basically an enumeration that does that.
 
I might do that today :D
 
4:51 PM
@JerryCoffin Circle is a shape that contains infinite number of points that conform to the circle equation :v
 
@Griwes no, a circle is defined by no more than a 'radius'. Position has nothing to do with what a circle is or how you define it. The position of the circle is only relevant to something else.
 
Solve maybe is a better word, dunno
 
@JerryCoffin Fine. For all uses, let's assume that "point" class models a set of a one point. And circle contains inf points, but can be modeled by its center and its radius.
 
@CatPlusPlus Sure: "The locus of points a specified distance from one point". Not really a very practical representation though.
 
@thecoshman We are obviously in some kind of coordinate system.
So it obviously has a center defined.
 
4:53 PM
Centre is not very important
 
Unless the application you are writing cares about positions.
 
Just like start of a vector is not very important
 
@Griwes no. the circle shape it self does not need anything but a 'radius'
'where' this circle, or anything else in your abstract system is the concern of something else.
 
...you got way too abstract - this retarded OOP hierarchy is not meant to implement a perfect mathematical model of shapes.
 
The hierarchy is useless either way
 
4:55 PM
Yes.
 
> As you have subscribed to receive early builds of JetBrains ReSharper with C++ support, we've got great news for you! You can now download an early ReSharper C++ build.
Woop woop!
 
put it this way, you can you define a circle without radius, no. can you define a circle without position, yes. If you do not need the radius value for your circle, you do not need the circle class. If you need the position, then something else does.
 
@EtiennedeMartel T_T Lucky!
 
@Griwes why do you want to know the position of the circle?
 
@thecoshman Ok, take your ass out of the purely mathematical point of view.
 
user1804599
4:56 PM
“Shape” doesn’t care about position.
 
@thecoshman Because it's a useless "shape" editor.
 
user1804599
Two objects of the same shape that are in different locations are of identical shapes.
 
It's the only point of view that matters :v
 
Ok. I think I made a video that will work.
 
@CatPlusPlus As long as you are not doing anything "practical", yes.
 
4:58 PM
Now I just wait for the conversation.
 
@Griwes I ask again, who/what wants to know the position of the circle? why do they?
 
@Jefffrey assuming I get that, I was planning on adding multiplayer. How does this sound: you win if you reach a certain length, crashing loses? (no speed increase, starts a bit faster)
 
@thecoshman The application, because it has to detect where the user clicked (i.e. whether user clicked inside a specific instance of the shape).
 

« first day (1123 days earlier)      last day (3833 days later) »