« first day (1061 days earlier)      last day (3886 days later) » 

7:04 AM
Happy 9/11 everyone.
~~I hope you all have a heart-warming evening together with your families and friends~~
3
 
@MohammadAliBaydoun Just realized that.
 
JBL
@MohammadAliBaydoun More like 9:00am here but thanks ! :)
 
@MarkGarcia I realized when my Australian friend was repeatedly saying الله أكبر in this other Chat I'm in :p
 
JBL
What does that mean ?
 
@JBL Allahu Akbar
 
JBL
7:06 AM
Oh ok
Bit of a troll, your friend.
 
Lead me to do this
I wonder how the American users are going to take it ^_^
 
JBL
Do they know you live in the Middle East ?
 
A lot of people do
 
@MohammadAliBaydoun That was weird having text in the right part of the text box.
 
#ArabicProblems
 
7:14 AM
Sep 7 at 19:10, by DeadMG
bomb al-qaeda fertilizer pressure cooker pakistan afghanistan iraq US embassy assassination president
7
sorry, couldn't resist :)
 
@Rapptz I'd say it's the opposite of fear-mongering. The post explains why this exploit is very unlikely to be usable in practice.
 
JBL
He should've posted that today.
 
@StackedCrooked Or so you would think.
 
@Mysticial Hassan is that you?
 
He is a troll wannabe ... and not a very good one
 
7:21 AM
greetings mortals
 
Would there any benefit to using a std::move in this statement std::string s = ss.str(); // stringstream
 
no.
 
Probably the opposite
 
ss.str() is already an, er, xvalue
 
@DeadMG Some mortal has stolen some stars from you my lord.
 
7:22 AM
you will only at best confuse the optimizer by adding a std::move.
 
I see.
 
lol someone asking to convert an Excel macro to C++
 
Xeo
@DeadMG prvalue, actually.
xvalue would be T&&
 
balls.
I always forget the various sub-categories of lvalue and rvalue.
 
Xeo
lvalue has no subcategories :D
 
7:25 AM
You suxxorz
 
Xeo
it is a subcategory of glvalue
glvalue: lvalue, xvalue
rvalue: prvalue, xvalue
 
er, so an xvalue is both an lvalue and an rvalue?
 
I remember prvalue as "perishing r-value" and "x-value" as "murdered value".
 
eXpiring value
 
@MarkGarcia pure rvalue iirc
 
Xeo
7:26 AM
yea
 
@StackedCrooked Yup. I remember that, but I choose my own. ;)
 
@MarkGarcia perishing seems easily confusable with expiring
 
Xeo
@DeadMG it can be both
 
@Xeo I think it's the other way around. lvalue, prvalue, and xvalues are the big categories while glvalues/rvalues are just generalised sub-categories of those values.
 
what a pointless category then
may as well just say "It's a thing!".
 
7:27 AM
@Rapptz "generalised sub-category" seems contradictory
 
@StackedCrooked The "x" in x-value looks like it's being murdered or something.
 
@StackedCrooked glvalue stands for "generalised lvalue"
 
Xeo
@Rapptz The standard has it as "glvalue" and "rvalue" on top, and lvalue, xvalue, prvalue below.
the latter 3 are the different value categories, the former two are categorisations
 
@Rapptz indeed, but I think it's an "overarching category" rather than "subcategory".
 
I consider them as "mixed categories" rather than "primary category"
I somehow made 2 files with the same name.
 
7:29 AM
oh hey, I just realized, it's "America's the center of the world, bitches!" day today.
10
 
If you do std::move(obj) then that (still-unassigned) expression is an xvalue right?
 
Xeo
@DeadMG Nah. xvalue basically says "rvalue reference involved"
@MarkGarcia yes
 
Which one? :P
 
@Xeo Which is pretty much as useless as "It's a thing!" if you don't know therefore whether it's an lvalue or an rvalue.
 
Xeo
std::move returns T&&, and an unnamed rvalue ref (a "temporary" rvalue ref, if you will) is an xvalue.
 
7:32 AM
@Xeo Ah. Yes. But if it has a name then it's an lvalue. I'll be sure to remember that.
 
Xeo
@DeadMG Not really. You know that it's save to move from that thing.
Whether it's as a named or unnamed xvalue
 
@Xeo So basically, it's an rvalue.
 
@Xeo I read that in Starcraft's voice that says "Nuclear launch detected".
 
@StackedCrooked Pity that Nukes are so shit.
 
@DeadMG o_0
 
7:34 AM
They are always good for causing panic attacks.
In original SC I played with terran first but never very successful, until Brood War introduced medics which made the stim pack much more useful.
Then I tried Zerg and it was much easier. Just keep massing hydralisks.
 
siege tanks bitch
 
@StackedCrooked It think zerglings are more cost-effective.
 
@MarkGarcia Maybe if you are good at managing them.
 
@StackedCrooked Nobody manages them. They can manage everything! :)
 
Mass mutalisks are really nice if you can afford them.
 
Now I feel like playing Brood War.
 
Xeo
Actually, I'm confused now. I just remembered that xvalues only exist as unnamed rvalues (like what std::move returns)
I think one of the reasons why xvalues still go as glvalues is that they can exhibit polymorphic behaviour (unlike prvalues)
Basically, an xvalue is not an object itself, is what it comes down to, I guess.
 
@MohammadAliBaydoun o_0 what has Jack Black got to do with this? was he in on the two towers scuffle?
 
Note to self: [prx]values are expressions.
 
@thecoshman Yes
 
7:46 AM
I don't normally print of comics for work, but...
 
Xeo
@StackedCrooked value-category of expressions
 
mawning
 
Dammit, I can never get it right.
 
@Xeo What do you mean by polymorphic? Like std::move casting it to some base type (with &&, that is)? (I know that this involves references, which can be polymorphic)
 
@ScottW did your boss let you out?
right, we often say baas (boss) here.
@ScottW sounds like great fun
 
Xeo
7:52 AM
@MarkGarcia ya
 
@ScottW I saw pics on your FB where you do that to your dog.
Pretty funny.
 
Hello, people of SO. I'm not sure if I'm on the right site and room, but I want to ask a quick question about "compiling" and creating a .exe file. Is this the correct place?
 
This is the chat. You should post your question on the main site.
 
JBL
Shitty internet at work, yay.
 
@JBL great
I wonder if my habit of recompiling very often will wear out my SSD quickly.
 
8:01 AM
I told the recruiter I might be interested if she finds me a job writing Haskell :)
also hi
 
@BartekBanachewicz I once got a Haskell offer. I was very surprised.
Unfortunately I don't know Haskell.
Not beyond the basics.
 
@StackedCrooked waaa :<
@StackedCrooked Bah, a great opportunity to learn
also, well, I can imagine a bunch of startups coding Haskell
 
Found it
- Do you have a good experience with functional programming?
- Great knowledge on one of these skills: Haskell, Erlang, scala, O’caml?
- You have experience developing in a UNIX environment
- You have experience in an R&D environment, and like sharing ideas
- Experience c/c++ development is a plus
It was actually "functional" not explicitly Haskell.
 
@StackedCrooked I think that all those 4 langs are nice and interesting.
 
And it was a 6 month project. I wouldn't give up my current job for that.
 
8:07 AM
@StackedCrooked ah, I see
 
@BartekBanachewicz yeah
 
Well, I'm going to keep looking
I have a luxury of being able to pursue occasions like that; in a few years, I don't want to remind myself I might have missed something like that and it would be considerably harder then.
 
@BartekBanachewicz they do say you regret the things you didn't do a lot more than the things you did do.
 
@thecoshman do be do be doo, indeed :)
yeah, I agree with that
also, what's up, pirate?
 
user1804599
Yum.
 
user1804599
8:14 AM
Popcorn.
 
Not guaranteed that the elements after resize() will be all zeros right? stackoverflow.com/q/18735910/1619294
 
Xeo
It actually does.
vector value-initializes its content
 
@BartekBanachewicz a direction, generally considered to be opposing the prevailing pull of gravity; In the absence of such an influence will normally be an arbitrary direction relative to surroundings, such as vessel.
 
Hmmm...
 
8:20 AM
New elements are value-initialized, which zeros out the new ints.
(assuming you use the overload that doesn't specify otherwise)
 
the worst thing about minutes silences, very hard to silently abstain from them.
 
@Xeo Hehe. I forgot about value-initialization in numeric types. That answers it.
 
People always forget about value-initialization in numeric types
 
@thecoshman Yeah. I sometimes interchange default, value and zero initialization.
 
Do the intrinsic versions of the Interlocked API functions in Windows (e.g. _InterlockedCompareExchange) imply a compiler fence?
Like would I need to use _ReadWriteBarrier() if I use them? I'm looking through the Windows implementation of Boost.Atomic and they seem to use _ReadWriteBarrier()s all over the place.
@MarkGarcia I can never remember the rules for each of those. I usually just always initialize everything to an actual value so I don't have to remember the rules. :-)
 
8:30 AM
@Insilico Best choice.
 
oh
The little tail that could - @martinfernandes about building APIs http://flamingdangerzone.com/unicode/2013/09/10/towards-nice-apis.html #cpp
@thecoshman ...
 
@BartekBanachewicz Sup?
 
@R.MartinhoFernandes congrats, I guess? :)
 
> What's up
 
@thecoshman I know, I know
 
8:31 AM
@Insilico It seems that that's the only important rule for this situation. :)
 
@BartekBanachewicz I like this comment reddit.com/r/cpp/comments/1m3z9t/…
 
@BartekBanachewicz and we know you know you know, and know you know and hence we know you know we you know you know
 
@R.MartinhoFernandes heh, to the point.
 
> Factorization of the JacobiSVD class into a SVDBase class to prepare the arrival of the BDCSVD class
Commit message.
 
@R.MartinhoFernandes needs more TLA
 
8:35 AM
@thecoshman I think a SLA is more than enough.
 
Jacobi? I remember that guy for something with solving linear equation systems (?)
 
@R.MartinhoFernandes I T S?
 
8:50 AM
$  ls
Sorry, command-not-found has crashed! Please file a bug report at:
bugs.launchpad.net/command-not-found/+filebug
 
hahaha, guess the reason for the crash.
> 'utf-8' codec can't encode character '\udccb' in position 0: surrogates not allowed
 
9:10 AM
Oo edit addict
seriously every small things need to be edited
 
@ScottW fap fap fap
 
@ScottW Join me
 
9:38 AM
omg today is 9'11, no wonder people talking about 9'11
 
I'll show you 9'11, ask Scott
(Sorry, couldn't resist)
 
0
A: Templates handling functions "returning" more than one value

nijansenWhen accepting the fact that we're changing the signature of both f and g to work with std::tuple, the answer to this problem becomes trivial: template <typename F, typename G> struct calc; template <typename R, typename ... Args> struct calc<R (std::tuple<Args...> const &), std::tuple<Args...> ()

lol "trivial"
 
@Telkitty猫咪咪 that's a very tall day o_0
 
I'm not sure I'd call it "trivial". C++ is unrecognisable these days. — Lightness Races in Orbit 2 mins ago
@LightnessRacesinOrbit Get off your lawn, dude.
 
how about 9"11 then?
 
Xeo
9:47 AM
hmm
What do you guys think of symlinks in VCS repositories? :D
 
Get ready for a complete fuckup on Windows.
 
Xeo
Well, the symlink originates from Windows. And the iOS branch can only be built under Windows atm anyways
 
9''11? Pics or it didn't happen.
 
Xeo
(since Adobe hates Linux)
 
Xeo
9:49 AM
our Perforce server is also running on Windows
(and there's a symlink option for the filetype)
I wish I didn't need that symlink in the first place, but adt (iOS Flash packaging tool) seems to fuck relative paths up :/
Guess I'll just try and see where it burns
 
profile views 555
 
class T {}; contains a block scope, right? I can't quite tell from 6.3
 
Xeo
nope
block-scope would be what a function has. and nested scopes within there (IIRC)
 
10:06 AM
@Xeo This is so wrong.
 
Xeo
is it bad that I can't stop giggling?
 
Xeo
:(
 
Don’t feel bad, it’s funny
 
oi
Value initialization with C++11 http://akrzemi1.wordpress.com/2013/09/10/value-initialization-with-c/ #cpp
look who commented under the post
 
10:16 AM
@Xeo I can't stop either if it makes you feel any better
 
@Xeo "Image not found" ... from the sounds of it, thank god
 
Xeo
@thecoshman Here: i.imgur.com/LyH9fJr.jpg
 
@Xeo :D
 
hi all
 
¬_¬
 
10:27 AM
what is an abstract class??
 
A class with a pure virtual member.
> NOTE: The path to your <RUBY_INSTALL_DIR> must not contain any whitespaces (like in “C:\Program Files\Ruby193”).
 
@user2713461 depends on the language, I'd assume you mean C++
 
Great, more broken software.
 
@thecoshman yes c++
 
@R.MartinhoFernandes what about no public constructors?
 
10:29 AM
why?
@thecoshman
 
@thecoshman Doesn't matter.
 
@user2713461 yes, but it doesn't really make sense
 
welp
doc recommended me to consultant for consideration for surgery
 
@R.MartinhoFernandes does C++ actually have a specification meaning of 'abstract'
@DeadMG finally going for the breast implants?
 
@DeadMG That's good, right?
 
10:31 AM
@thecoshman why?
 
@R.MartinhoFernandes Yep.
 
@user2713461 you can't construct an abstract class
 
@thecoshman Yes.
 
@R.MartinhoFernandes oh, TIL
 
that class has only pure virtual function nothing else??
@thecoshman
 
10:32 AM
@user2713461 not only
 
Xeo
If a class has atleast one pure-virtual function, it's considered abstract.
 
> An abstract class is a class that can be used only as a base class of some other class; no objects of an abstract class can be created except as subobjects of a class derived from it. A class is abstract if it has at least one pure virtual function.
See, the standard is easy to read.
cough
 
@Xeo ok. but wat is the use?
 
Xeo
... I should get rid of the habit to write "at least" as one word.
 
My Super key seems dead on Windows.
 
Xeo
10:33 AM
@user2713461 Interfaces.
 
It might offer some concrete functionality, but it might also depend on an abstract function that a class deriving it needs to implement. Of the top of my head, I can't think of an example
 
@Xeo you can write it as atleast one word :P
 
I've become a very strong proponent of NVI recently. Say no to public virtuals.
If I was designing the language, I'd make virtual imply private.
 
NVI rings bells... to google! (actually waits for someone to provide a worthwhile short explanation)
@R.MartinhoFernandes why? defeats the idea interfaces
 
10:35 AM
eh
 
NVI makes me think of nivea
 
I never found an especially compelling argument for NVI.
 
@thecoshman No, it does not.
It makes them more resilient.
 
@thecoshman No, it does not.
 
The non-virtual interface pattern (NVI) controls how methods in a base class are overridden. Such methods may be called by clients and overridable methods with core functionality. It is a pattern that is strongly related to the template method pattern. The NVI pattern recognizes the benefits of a non-abstract method invoking the subordinate abstract methods. This level of indirection allows for pre and post operations relative to the abstract operations both immediately and with future unforeseen changes. The NVI pattern can be deployed with very little software production and runtime cost....
 
10:36 AM
... reading... if it ever loads ¬_¬
 
I felt we need more stars
2
 
@thecoshman Just to make sure you get it, private in C++ only affects the ability to call a function.
It doesn't change a thing when it comes to overriding.
 
also we have a grilling party at work but it's raining
now I'm stuck between "hungry and dry" and "food, but wet"
 
@BartekBanachewicz Sounds like awesome planning.
@BartekBanachewicz Go out and get some cake.
 
@R.MartinhoFernandes I didn't take my umbrella today :(
 
10:39 AM
What's an umbrella?
 
@R.MartinhoFernandes yeah nobody is able to comprehened why they didn't put it off
 
food but wet, you'll get dry again when you go inside but you won't get less hungry if you stay!
 
@BartekBanachewicz wet it is
 
> An umbrella or parasol, also called a brolly (UK slang), parapluie (nineteenth century, French origin), rainshade, sunshade, gamp (British, informal), bumbershoot (American slang), or umbrolly (UK slang), is a canopy designed to protect against rain or sunlight.
 
@R.MartinhoFernandes so is this a good example of doing this? looks rather nice actually... a bit 'wtf' at first, but I see the merits
 
10:40 AM
@MarcClaesen well I still have one carrot.
now that I said that it sounds a bit pathetic
 
@BartekBanachewicz goto my previous point
 
@BartekBanachewicz hint: it is
 
hm
> • For those who are not big fans of BBQ menu in IGK2 Café will be available dish of the day, vegetarian dish and soup.
 
@thecoshman Yes, that's more or less it. The virtuals should be private for better effect (it prevents everyone from calling virtuals directly; the base class is in control).
 
10:42 AM
@LightnessRacesinOrbit bumbershoot FTW
@R.MartinhoFernandes I guess that's a better effect than virtual privates.
 
And what are the merits?
 
@R.MartinhoFernandes is the main advantage the fact that the 'interface' can do stuff before and after the actual impl'?
 
@thecoshman Or call it with different arguments, or a different number of times, or a bunch of other stuff.
 
also, what order is virtual and access done? is 'I have a protected function foo, so I can call this.foo(), oh, it's been overridden, let's call that code instead'?
@R.MartinhoFernandes oh yeah, didn't think about that part too.
 
lol
> Umbrellas continue to be actively developed. In the US, so many umbrella-related patents are being filed that the U.S. Patent Office employs four full-time examiners to assess them. As of 2008, the office registered three thousand active patents on umbrella-related inventions
 
10:46 AM
@thecoshman Unless you are in a constructor, it calls the most overridden version.
Access control doesn't affect overriding.
 
why is this room called Lounge<California>?
makes it impossible to find
 
@CBenni Because retards
 
@LightnessRacesinOrbit Thanks.
 
and theres no mod to change it back?
 
@CBenni You found it okay.
 
10:47 AM
@CBenni Because why not?
 
@CBenni Stack Overflow chat does not have "mods".
 
it does seem a bit odd that a class can call 'this.foo()' and not really know what is going to happen... no 'final' in c++ (yet) is there
 
16 hours ago, by Cat Plus Plus
You can never leave.
 
@CBenni mods would change it to "Lounge<Ponies>" if given a chance
 
well who can change the title then? only the person who created it?
 
10:48 AM
@thecoshman Um, that's the entire point of inheritance. It's none of the base's business if its behaviour is being extended.
 
@thecoshman Erm, that's what virtual is about.
 
@CBenni There is a suite of room "owners", who are generally morons. :)
 
Come on, dude.
 
@LightnessRacesinOrbit not always, there are times when you need to know for sure that calling your own private function will do EXACTLY what you wrote it to do.
 
@thecoshman Why's that?
 
10:49 AM
@thecoshman Then call it.
 
@R.MartinhoFernandes derp, of course in this case virtual makes sense
 
@thecoshman Er, there is final and override in C++11.
even MSVC implements it.
8
 
hehe "even MSVC"
 
@DeadMG good to know.... I don't get to do much C++ :(
 
Meat mince: $6.99 a kilo, bread: $2.50 a loaf, the sight of your old babe magpie waiting right at your doorstep when you open the door: priceless!
 
personally
I got bitten once by not overriding when I should do, and now all of my overrides are marked override.
 
Xeo
@DeadMG Did you try Clang?
 
there should be a keyword on the base class you can use to force people to use override.
 
Xeo
10:55 AM
(It has a warning for that. ;))
 
@Xeo It still can't chew the MSVC stdlib.
 
@Xeo IRTA "Did you cry?" Which fits even better imho
 
@Xeo I would expect the same from MSVC, tbh :S
 
oooh, there's a new build up.
maybe they fixed it
 
Clang now has regular Windows binaries, no?
 
Xeo
10:56 AM
@R.MartinhoFernandes hah, no
 
(WTF, how did I write GCC instead of MSVC?)
 
Brain wasa-wasa
 
@Xeo They only have the time for pointless warnings. I see.
 
eh, the 2k13 preview ended and I was forced to use 2012 lately
 
Xeo
10:57 AM
well, 2013 RC is out
 
I was that close: || to switching to vim finally.
I'm trying to use it more and more lately
 
@Xeo But don't install it.
 
@DeadMG hm?
 
@DeadMG Why not?
 
install VS 2013 RC -> VS 2012 stops working.
 
10:58 AM
The Windows Guy here at work did and all was fine.
 
so if you have any crippling issues, like Boost not being compatible right now
 
I am using old boost anyway (1.52)
damn, I should finally upgrade
 
He was already ravaging through the codebase and dropping C++11 features all over/
 
@R.MartinhoFernandes :3
 
Xeo
10:59 AM
@DeadMG svn log :D
 
> Boost no longer supports the 80386 target CPU,
ohnoes.
 

« first day (1061 days earlier)      last day (3886 days later) »