« first day (861 days earlier)      last day (4093 days later) » 

1:03 PM
void f() {
    obj o(std::move(obj(std::move(obj(std::move(obj()))))));
}
From here
 
@StackedCrooked what. was. that?
@MartinJames how dare you refer to my bitch like that!
 
Xeo
@LucDanton: Status update: Overload ranking still not scalable. :( I think the best I can currently do without user interaction is 9 overloads. /cc @R.MartinhoFernandes
 
@thecoshman Spread some maple syrup on it
 
@MartinJames mmm maple bitches
 
.. but hold the nuts
 
1:12 PM
@MartinJames what if they are sugar coated?
 
Have your bitch eat them separately.
 
note to self: update machines more often
 
> The culprits drove over him when he was lying on the ground: once forward and then back again."
 
Xeo
@StackedCrooked Stupid fucking people.
Seriously.
 
1:21 PM
Wow... that's... I'm speechless. Who the fuck just decides "Hey I'm gonna take my car and make a human pancake out of this poor kid."
Seriously fuck people like them
 
Xeo
It's the same stupidity that makes people punch someone into a pulp in subway stations.
I seriously don't get how somebody can be so fucking stupid.
 
Yeah - I prefer to use pub car parks - less chance of cameras.
 
@MartinJames he he he
 
@StackedCrooked what.
 
I guess it's just possible to make a case for running someone over twice - if they had a firearm and were stupid enough to try and pick it up/use it again after being run over once. It's a bit of a stretch...
 
Xeo
1:32 PM
Yay, my router is here.
 
'Yay, my router is working' would be better..
 
@MartinJames not unless you couldn't drive away
 
Xeo
Meh, the engineer is coming on Monday.
I don't know what the fuck I need an engineer for to activate my internet, but hey..
 
@thecoshman Well, getting shot in the back is no fun either.
@Xeo Usual crap - they don't trust you to fill in couple forms on the router config page.
..and to be fair, router config is always a PITA ,even if fairly simple ASDL router
 
lol
We actually told the guy to just give us our login and password from ISP and go for a beer
 
1:40 PM
@MartinJames only because they refuse to just give you the few details you really need
 
Xeo
Hmm... brb
 
I nearly lol'd at his expression when he saw my desk.
 
@BartekBanachewicz it is a ghastly shade of green IIRC
 
@thecoshman why ghastly? It's just green :)
 
@BartekBanachewicz how should I know why you chose the shade?
 
user1357851
1:42 PM
Once my old monitor was broken, there was no red & the screen looked eerie
 
The times I've been through that crap: 'I've got no ADSL signal' - 'OK, Mr James, open Internet Explorer' - 'Err.. I have no signal at all on the router' - 'Mr James, open Internet Explorer' - 'I can't' - 'Click on the IE icon on your desktop' - 'there isn't one - I unistalled Internet Explorer when I installed my OS' - 'Mr James, open Internet Explorer' .... click.
 
How can you explore the Internet without an Internet explorer?
3
 
@MartinJames just nod along and act like you are doing what they want until they say 'ok, looks like you have a fault, we will hand you over the team that actually does stuff'
 
@StackedCrooked I've tried saying 'I use Firefox', but it doesn't get me any further forward.
 
1:47 PM
@StackedCrooked apparently @TonyTheLion likes feet massages :P
 
Indeed.
 
@StackedCrooked hehe - I do that to my dog - drives him crazy.
 
@thecoshman i was rather curious why do you consider it to be ghastly
 
user142019
gvim on Windows y u override control+V.
 
@Zoidberg I hate that!
 
1:49 PM
@BartekBanachewicz the shade is akin to very bad vomit
 
user142019
 
user142019
Internet Exploder
 
If I still had that crap installed, I would take that as the icon.
 
@thecoshman Yes I do :)
 
user142019
Visual mode doesn't work at all in Windows.
 
user142019
1:50 PM
What the fuck is this junk.
 
> I'd be lion if I said I don't love a good foot massage.
Reddit...
 
Cntl-X, Cntl-C and Cntl-V should be inviolate.
 
user142019
Oh HJKL instead of arrow keys right.
 
Xeo
Hmm.. damn, I might have a problem. Those suckers are expecting me to have an actual phone connected to my router. I have to activate telephone and interwebz by inputting a PIN through the phone.
 
lolWTF.
oh, you bought telephone too?
 
well, it's not really unreasonable to expect a guy buying telephone from them to have a telephone.
 
Just borrow one.
 
Xeo
Telephone and internet is intricately part of the same deal, but I didn't buy a telephone flat.
I can make calls, but I'll get billed by the minute.
 
Also, I just realized how much IKEA is screwing me on Polish prices -.-
 
I get all my polish from Wilco's.
 
Xeo
1:55 PM
I only got myself the internet flat, as I got my mobile phone with a flat, which is enough for most purposes.
 
static_assert(has_length<decltype(take_exactly(range, n))>(), "ooooh!");
 
Xeo
Mornin' robot.
 
user1357851
I got skype installed on my window 7, my mac and my iphone
 
user1357851
I can totally talk to myself if I setup another account
 
Just borrow a phone from neighbour/work/Uni/whatever, enter the stupid PIN stuff, take the phone back.
 
1:56 PM
WTF is takeNone for?
 
Xeo
lol
What type does it return? :P
 
Same as take_exactly(.., 0)
 
Xeo
So, an empty range?
 
Clang, y u generate two distinct LLVM types :(
 
Xeo
1:58 PM
strange stuff
 
Only difference is that the returned range is a random-access range.
 
Xeo
@DeadMG Overload resolution, y u no work like I want you to. :(
 
(But empty, so wtf)
 
@BartekBanachewicz Nice table top.
 
Xeo
Okaaay... I'm up to 13 overloads now.
I doubt anyone will ever need more than 5, but eh, I'd like to make it atleast scalable to >20. :(
If conversion operators behaved like I wanted them too, I think I could squeeze in 8 more.
 
2:05 PM
@BartekBanachewicz oh god, I only just closed it before I vomited
 
Xeo
sigh
 
@thecoshman zomg
 
Xeo
why is identity -> UDC -> identity ambiguous with qualification -> UDC -> identity. :(
 
@StackedCrooked yea, I wanted wooden one first, but this one is really neat
 
Xeo
Robot, halp.
 
2:06 PM
@BartekBanachewicz though my SO informs me it is the colour of the year... must be a crappy year if you ask me
 
user142019
Man.
 
user142019
I just booted Linux again and it already feels like heaven.
 
Xeo
room topic changed to Lounge<C++>: Lounge<Biased> [c++] [c++11] [c++-faq] [no-helpdesk]
 
user142019
Gucci almost has the worst logo ever.
 
user142019
Only Microsoft's is worse.
 
user1357851
2:10 PM
Microsoft is not too bad
 
user142019
Its logo looks terrible.
 
user142019
 
user142019
Seriously, that i.
 
user1357851
What about BMW?
 
user142019
Not too bad.
 
user1357851
2:13 PM
It is almost like Microsoft ... with less colors
 
user142019
wat
 
user142019
I'm not talking about the +.
 
user142019
I'm talking about the terrible typography.
 
Xeo
You should've seen that coming.
 
I saw it coming
 
user142019
2:14 PM
Xeo is jealous because he wants a BMW too.
 
user142019
:P
 
In fact, I was waiting for it/
 
Xeo
No, I do not.
 
user142019
Blik Met Wielen
 
user1357851
Am I the only one who think some LV bags are serious ugly ... especially for a couple of grand
 
user1357851
2:16 PM
This:
 
user1357851
2000 Euro
 
user1357851
you serious?
 
Xeo
When will you learn~
 
user142019
Everything from LV and Gucci and related brands looks terrible and douchey.
 
on copy-elision I don't get this?
 
Xeo
2:17 PM
@Zoidberg Wut
 
user1357851
agreed, same with guess
 
user142019
@Xeo Dutch pun.
 
BMW: Bayerische Motoren Werke
 
Xeo
@TonyTheLion Inside of sorted, names is still a plain lvalue.
 
I feel even worse after sleeping ugh
 
2:21 PM
@Xeo ah so in sorted2 it's really the fact they explicitly copied the arg inside the function
@CatPlusPlus go outside, get some air
 
Xeo
The thing is, copy elision can't really happen through multiple layers.
Except when returning something.
 
Xeo
Even if sorted2 took its parameter by-value, it would be a plain lvalue inside, so you'd get an unoptimizable copy in a call to sorted(names).
 
@Xeo so the fact it takes it by const ref makes a difference?
 
Xeo
@TonyTheLion Only in a call to sorted2 where the original argument is an rvalue.
say, sorted2(foo()); with vector<...> foo();
 
2:24 PM
 
Xeo
If sorted2 had a by-value parameter, the copy would (very likely) be elided. If it takes by-ref, it can't, since there's no copy.
 
yes it is rap, but just fucking watch it
 
Xeo
The thing with "want speed? pass by value" is if you wanted to make a copy anyways inside of your function.
2
 
@Xeo oh of course
damn, how could I forget
@Xeo then it's pointless, right?
 
Xeo
@TonyTheLion What is?
 
2:26 PM
to pass by value for the sake of speed
 
Xeo
no
Okay, lemme build up an example
 
I confus
 
Xeo
Say you want to reverse a string, but not in-place.
The first function might look like this:
 
You will move the value parameter @tony
 
Xeo
This isn't about move-semantics.
std::string reverse(std::string const& s){
  std::string tmp(s);
  std::reverse(tmp.begin(), tmp.end());
  return tmp;
}
 
2:27 PM
right
@BartekBanachewicz we're not talking about move semantics
 
Xeo
If you call reverse("stuff");, you create a new string, and copy it inside of reverse.
 
so you're copying s inside your function
 
Xeo
Now if you write this:
std::string reverse(std::string s){
  std::reverse(s.begin(), s.end());
  return s;
}
The copy happens outside of reverse and can be elided away.
 
user142019
The string can be moved.
 
2:29 PM
shush, not talking about moving
 
Xeo
@R.MartinhoFernandes Why couldn't it?
 
@Zoidberg you're adding to the confusion
 
user142019
:D
 
@Xeo If you pass an lvalue, you need a copy to operate upon.
 
Xeo
@R.MartinhoFernandes Yes, but I mean with the original reverse("stuff"); call.
When the original argument is an lvlaue, it doesn't matter where you make the copy.
It only matters when the argument is an rvalue.
 
user142019
2:30 PM
Oh it can be constructed in place?
 
Xeo
Yes
It can be constructed in the final destination instead of being copied.
Since copy elision is allowed to throw away observable side-effects.
 
ah I think I get it
 
Xeo
Cool. :)
 
so when passing an lvalue, it doesn't matter if you copy inside or outside the function
 
Xeo
yep
 
2:33 PM
but with rvalues it does matter
if you want copy elision with rvalues, you have to copy outside the function
 
Xeo
"outside", as in, "the parameters"
 
right
 
Xeo
And in C++11, you're basically eliding moves instead of copies.
 
what's the point of eliding a move, isn't a move about as cheap as it gets
because you're just swapping pointers
 
@TonyTheLion And when elidiing you're just not doing anything at all.
Which do you think is cheaper?
(Also, some moves are more expensive than that; std::string, I'm looking at you)
 
Xeo
2:37 PM
Also, for flat objects (i.e., with no external resources, say struct X{ int a[10000]; };), moves are exactly the same as copies.
 
@LightnessRacesinOrbit: I think you're racing in orbit because someone punched you so hard it sent you there. — user1131467 12 hours ago
haha not bad for a newb
 
Xeo
And last but not least, if you don't specifically engineer for moves in MSVC (aka create move ctors), you'd get copies instead of the elision.
Because those suckers don't generate them for you. :(
 
@R.MartinhoFernandes oh wait... but aren't you constructing something in place somewhere?
isn't that more expensive, then moving?
 
Xeo
No.
 
I'm going in circles
 
Xeo
2:40 PM
The object you're moving from also has to be constructed ;)
 
It's not more expensive than constructing and then moving.
 
@Xeo no to what?
 
Xeo
And instead of constructing that and then moving, you construct it at the final destination directly.
 
@R.MartinhoFernandes ah, that's the bit I wasn't thinking of
 
ok but that's pretty neglible as a difference, no?
+gi
 
Xeo
2:41 PM
4 mins ago, by Xeo
Also, for flat objects (i.e., with no external resources, say struct X{ int a[10000]; };), moves are exactly the same as copies.
 
So we're biased? Who says we're biased, it's just that Haskell is the best. Fuck everything else :P
 
Xeo
And you'll likely have non-external resources in your objects somewhere.
@TonyTheLion So, how much Haskell do you know? :3
 
@Xeo some basics
 
@Xeo you mean non-non-external? :S
 
Xeo
@melak47 No, I mean non-external, aka not pointers to somewhere.
 
2:44 PM
so what happens when you have non external members, your entire move becomes a copy?
 
Xeo
No, but the non-external parts are simply copied, since for them, moving is the same as copying.
 
ok.
 
user142019
forever $ accept s >>= uncurry handleClient
 
user142019
Beautiful.
 
hmmm
 
2:56 PM
oh, sure
that's beautiful
 
if I have class X {}; class X {}; is that illegal?
 
awesum
 
lol
so I'll have to factor X out into it's own separate header
 
user142019
2:57 PM
@DeadMG ODR?
 
You can have one class definition per TU
 
@Zoidberg Yeah, but conceptually, I'd argue they should be treated as "inline".
as it's well within the compiler's power to show that two definitions are identical
 
Xeo
Daaaamn. I thought I found a way to beat overload resolution into submission, but then I forgot to actually include the second conversion operator. :(
 
user142019
Then that would apply to everything and header guards wouldn't be needed.
 
Okay, but they're not, and it's stated in the first sentence of the ODR definition
(3.2/1)
 
Xeo
2:58 PM
maaaan
 
yeah, I know
 
user142019
Definition same? Okay, fuck ODR!
 
Xeo
I even have identity -> UDC -> identity vs base -> UDC -> identity now, and it's still ambiguous.
Why the fuck?!
Robot, HALP. :<
 

« first day (861 days earlier)      last day (4093 days later) »