« first day (1491 days earlier)      last day (3450 days later) » 

12:00 PM
Now that we have move constructors, could an argument be made that a pop() function of a data structure returns the value popped?
 
Xeo
@StackedCrooked No, take F&& f there, but do Impl<Unqualified<F>> and things like that, and make Impl have a templated ctor too.
 
@orlp no
 
user1804599
@Rapptz Add The Emo.
 
you're gonna have to copy
 
@Rapptz why?
 
12:01 PM
the move constructor doesn't solve the problem
 
@Xeo Hm, is there a difference? In both cases f will be stored as a unique copy.
 
Xeo
it's one unnecessary move / copy less :P
 
@orlp By popping you're removing the element. How do you have a reference to a removed element?
 
T pop() { T tmp(std::move(*p)); delete p--; return tmp; }
This allows the compiler to optimize away the return move
 
lol
if you do that then okay
I thought you meant T&& pop()
 
12:02 PM
nah
I wonder if the compiler can optimize away the move if you don't use the result
or if it's even allowed to
let's find out
 
user1646075
@Rapptz Only one mention of duck typing? What's wrong with people?
 
@orlp delete p--; looks very fishy
 
@StackedCrooked it's a simple pop
@StackedCrooked you delete the top element and decrement the pointer of the data structure
 
making it UB to pop_back empty containers? lol
 
except that should've been --pop
 
12:06 PM
the standard does that
 
There was this Sean Parent talk were he implemented swap with aligned storage for the tmp var.
 
hurr
@Rapptz what do you mean? it's already UB to pop on an empty container
 
yeah I know
 
the cost of the move is likely to be less than a hundredth of the cost of delete.
or less than a tenth at least.
 
@StackedCrooked not necessarily, if you have an thread-local allocator that maintains a freelist you can have it be <5 cycles
 
12:07 PM
leaking would be much faster
 
oh fuck
I'm retarded
that shouldn't be delete at all
void pop_back() { alloc_traits::destroy(impl, std::addressof(*--impl.end_cursor)); }
that's the code from my implementation
for some reason I equated alloc_traits::destroy with delete in my head >.<
@StackedCrooked no wonder it looked so fishy to you :P
 
lol yeah
 
user1804599
fredd fishy
 
I was like, whatever floats your boat man.
 
Arrrrgh.
Africa is impossible :<
 
user1804599
12:12 PM
It floats left.
 
What are you trying to Africa?
CivIV?
 
user1646075
Get there without a plane. Then he wants to cross the Andes by frog.
 
it can't optimize out the move into the temporary
it however does eliminate a return move
 
user1646075
@R.MartinhoFernandes How much would this world tour cost? and time?
 
there seems to be some UB there
 
12:18 PM
@Rapptz how so?
 
Oh wait, placement new.
never mind
 
I'm emulating what a data structure would do without implementing the entire thing
 
I was gonna say you're overwriting the pointer
 
@orlp You eliminate one move but you also introduced one..
 
@StackedCrooked I was hoping the compiler could inline the function and eliminate tmp
 
12:20 PM
who said it didn't?
I only see one move constructor call when you use it
shouldn't there be two?
 
I mean in the case where the result is unused
 
I don't think that's allowed
 
Ask yourself whether a complete elision of the move constructors could ever result in valid end state of the application?
 
violates the as-if rule and destructors and constructors could have state attached
 
@aclarke I stopped tracking the travel fares after 5000 euros (mostly for difficulty in obtaining the data). I'm at ~110 days now, stuck in Egypt (Alexandria or Cairo, but neither is useful to get out of there).
 
12:21 PM
in this case the extra state is printing
 
I thought copy/move constructors had exceptions that allow more aggressive optimization
 
I think
 
user1646075
@R.MartinhoFernandes what % of complete is Egypt?
 
that even if it has side effects they're not guaranteed to execute
 
I/O is part of "side effects" iirc
@orlp I believe there are only a few cases you can elide a copy/move.
 
12:22 PM
@aclarke I just need to get back to Berlin now: touched all continents, and touched all Great Capes.
 
user1646075
heh - stuck in sight of the finish line.
 
user1646075
What about by people-smuggler boat?
 
@orlp Yes, and they apply to rvalues, because that's the only situation where a move can be elided without corrupting the program.
 
Xeo
@R.MartinhoFernandes fly!
 
Return by ref if you don't want to move. Who cares about Valgrind complaints and occasional crashes :)
 
user1646075
12:23 PM
morocco to spain
 
damn man
5000 euro
 
wait you've been traveling for 110 days?
contiguously?
 
Not for realz.
 
oh
 
user1646075
12:24 PM
This could be a great interwebs challenge.
 
here I thought you were pursuing some dream of traveling the world
 
lol
I'm dreaming it first?
 
ic
 
Xeo
He's just bored.
 
Roughly Berlin-Istanbul-Baku-Aktau-Beijing-Singapore-Perth-Melbourne-Devonport-Los Angeles-El Paso-Panama City-Ushuaia-São Paulo-Johannesburg-Cairo, so far.
 
12:25 PM
should I spend $99 on a helicopter with spy camera? very tempting ...
 
@R.MartinhoFernandes I was going to say "That's pretty cheap"
 
Two stretches on a plane (Melbourne-L.A. and São Paulo-Johannesburg).
 
user1646075
@chmod711telkitty A nearly-adult nephew of mine has one of those things, and they're dayyyumed difficult to control.
 
What are you playing anyway?
 
@Rapptz It's only travel fares, though.
I estimate it would go up to 10000 in total.
The two flights are fucking expensive.
 
12:27 PM
is this World Travel Simulator 2014
 
No. Just bored curious googling.
 
lol, a world tour without sydney is no world tour >_< ... but wait, you are not going to NY either ...
 
Wow.
Now that's what I call boredom.
Here I thought I was bored.
 
No need to rub it in :|
 
Haha.
I'm kidding :)
Is it fun at least?
 
12:29 PM
I've had fun. And learned lots of cool stuff.
 
I find it kinda hard to believe that some travel fare data would be hard to get though.
 
user1646075
@chmod711telkitty mehh, only got a white orange-segment building and a dull grey bridge. Not missing much.
 
@Rapptz Oh, ideally, no planes.
 
Oh I see. That makes sense.
 
I accepted a plane to cross the Pacific and another for the Atlantic, but that's it.
 
12:30 PM
So you're virtually biking?
 
Train fares are not hard to obtain, but buses are fucked up.
And some stretches I had to take... unconventional means.
 
user1646075
@R.MartinhoFernandes can you sail? what about getting a crewing position on a yacht?
 
user1646075
or merchant navy
 
If you're doing this through Google Maps it sounds interesting.
 
user1646075
scrub the decks
 
12:31 PM
someone told me that Australian sailors are getting paid 100k a year
 
Phnom Penh-Siem Reap: speedboat!
 
user1646075
@chmod711telkitty sailors or 'sailors' on Oxford St?
 
@aclarke Singapore-Perth is done in some freighter that sells two passenger tickets.
And Panama-Cartagena is sailboat, even though there is a land connection :<
 
user1646075
@R.MartinhoFernandes wow. I bet there's no cocktail lounge. I bet the evenings in the crews quarters will be wild
 
@aclarke I would assume both are getting paid well above accountants or IT professionals here ...
 
12:33 PM
I think it will be the best way out of Alexandria, though.
 
user1646075
@chmod711telkitty hell, it's manual labour. of course they are!
 
lol, in most countries, they are not
 
The difference is that I did find travel times and prices for the Singapore-Perth stretch, but I can't find anything from Alexandria. Will have to be some kind of just asking around the docks deal.
 
Fran Allen said the introduction of pointers marked the end to the progress of compiler optimizers and automatic parallelization. I think it's funny how this seems to be confirmed by the fact that rvalues (which don't have addresses) enable some optimizations.
Well, at least a little bit.
 
user1646075
@StackedCrooked yeah, 'cos aliasing kills a shit-load of assumptions about accessiblity.
 
12:35 PM
yep
 
@Rapptz Yeah, that's what I started with. Look at Google Maps, see what's a reasonable next stop, google for transit options. Sometimes it ended up bad, like when I got almost all the way north from South Africa along the west coast of Africa, only to realise crossing the Sahara is going to be hard. So I backtracked and took the east coast instead.
 
user1646075
I'm deeply offended that FORTRAN can get better code for things
 
Now I'm stuck between conflict zones. I mean, there are travel options, but dangerous.
 
I had never heard of this person before.
 
Would be cool to have this bit in, so now I'm trying to head for Italy.
 
user1646075
12:37 PM
@StackedCrooked yeah... why did you pull this up? I looked at it 2 days ago. an old thread here I s'pose
 
user1804599
Frances E. Alien
 
user1646075
then again, there are many comp. sci. we know nothing about. Because nerds not sports stars.
 
Yeah.
Lets go back to familiar Java-bashing.
 
user1646075
I'm also deeply offended by sports stars.
 
Java sucks harder than your mother.
 
user1646075
12:39 PM
hang on /looks around to see if Bartek is still around.
 
user1646075
@StackedCrooked Java sucks so hard, programmers need oxygen masks.
 
> “Programming is like sex. One mistake and you have to support it for the rest of your life.” My client is looking to speak with the Top C++ developers around, if you need a set of new challenges and want to work with brand new technology such as C++14 get in touch!
wtf kind of invitation is that
 
user1804599
 
user1646075
@AlexM. not if they can't find the father!
 
@AlexM. That's the weirdest pick-up line I've heard.
 
user1646075
12:41 PM
@AlexM. "We don't make mistaiks!" if I'm reading between the lines properly.
 
user1646075
some mistakes in sex only mean you have to clean the carpet. So it's not that bad really.
 
I think the quote was meant to be small and centered on the top of the page
Kind of like a memento I guess
 
Sometimes I feel tempted to put naked pointers on the concurrent queue.
 
"Maybe he'll remember us if we use this quote" or something
 
But then I don't do it.
 
12:42 PM
@StackedCrooked because programming is like sex, amirite?
 
kinda
 
@Rapptz lol that's probably why they used it
 
user1804599
I'm going to exploit an amirite mine.
 
user1646075
@AlexM. yup, you can do it alone, better with a buddy, and even better on a team. And everyone can do it.
 
I'm going back to Far Cry 3 where I skin animals for their leather...
and despite the fact that I get leather in my inventory
I'm seeing myself putting hunks of bloody meat in there
 
user1646075
12:45 PM
@AlexM. fixing the broken thumb makes me cringe.
 
but hey this guy can heal half of his health by fixing his dislocated finger
so fuck knows
@aclarke yes it makes no sense
it's like they tried so hard to make it realistic and saw they failed
so instead they made it a parody
 
user1646075
oh shit - i got shot. IN THE FOREARM AGAIN? FFS!!!
 
user1804599
Foreign function shit.
 
user1646075
I want to know where that island is. Most of the locals have heavy new zealand accents.
 
user1646075
but tigers, cassowary's, komodo dragons?
 
12:47 PM
lol reading this review for the fish market - “Lunch with the girls” ... gulls I think the author meant ...
 
user1804599
emos
 
user1646075
@rightføld put an emo against an emu, the emu would kick its ass. They're hard-core gangsta.
 
user1646075
@chmod711telkitty +10
 
user1646075
an epic fail indeed.
 
user1646075
12:50 PM
lunch with the gulls: "SQUARK! GIMME A FRIKKEN CHIP!"
 
Who wants to hammer? :p
 
cpx
What? Is this overload or override?
 
overload.
 
lol
 
That's override.
 
user1646075
12:54 PM
@cpx short and int don't match. Sad but true. Or cool! choose your opinion.
 
Xeo
@cpx Neither
It's shadowing.
 
It's vtable lookup.
Oh weait
It's messed up.
Probably still vtable.
 
cpx
C++ is broken?
 
Society is broken?
 
next time put override
void f(int) override
 
user1646075
12:57 PM
@cpx C+ is broken.
 
it'll throw you a compile time error
I think
 
@cpx it's contravariance
 
guys
 
user1646075
@orlp sexist.
 
and gals
if you ever get a red light ticket
 
1:01 PM
@aclarke depends on your architecture, they tend to match on 16bit
 
Xeo
@StackedCrooked C++ doesn't have that for function parameters.
:)
 
just claim you were travelling at 1/6 * c
 
Xeo
I think @StackedCrooked might want to take a nap
 
user1646075
@Mgetz we're not allowed to know that.
 
doppler effect made it look like a green effect
 
user1804599
1:02 PM
@cpx you can check by adding override.
 
user1804599
If it gives an error, it's not an override. Otherwise it is an override.
 
user1804599
Then as a good practice leave override in.
 
cpx
@BartekBanachewicz If it was overload I think it should have been f(int)
Is that a keyword?
 
Xeo
9 mins ago, by Xeo
It's shadowing.
 
name hiding
 
Xeo
1:04 PM
It's not an overload, because it hides the base class' f. And it's not an override, because the signature doesn't match.
 
user1646075
he's asking from the perspective of using a Foo*
 
Xeo
Then it's nothing. vOv
 
I've only recently learned about name lookup and overload resolution being two distinct phases.
It certainly helps to learn the basics.
 
user1646075
@cpx, as far as the compiler knows, the f(short) has not been changed in Bar, so it keeps using the one defined in Foo. even though it's virtual.
 
user1646075
the vtable of Foo accesses Foo::f and the vtable of Bar also accesses Foo::f
 
user1646075
1:08 PM
Bar also has a non-virtual f(int) but your line 25 is not asking for it because all it knows is that x is a Foo-ish thing.
 
user1646075
TIL cherry wine and port are not a great combination. They're not a bad combination either, but it's nothing to write home about.
 
Xeo
Name hiding also applies to virtual functions, just FYI.
 
user1646075
@cpx not even. From the perspective of a Foo *, the only thing available is the Foo one. Name hiding would kick in IF you were using a Bar or a Bar * and you are puzzled about why the wrong one is being called.
 
St          ked
name hiding
hide yo names
 
user1646075
1:19 PM
failure to override properly I'd call it. if the Bar::f was f(Donkey) he wouldn't be puzzled.
 
overriding is nice as long as you don't overdo it.
 
cpx
Indeed I'll look up for this override keyword.
 
user1646075
Is anyone in a place where the new Scorpion series has been dumped already? 'cos it's still going here in aus.
 
user1646075
can't believe it's lasted maybe 5 episodes already.
 
Heh, funny typo DiableIf
 
Xeo
1:35 PM
DiabloIf
 
user1646075
@Mgetz Obviously pr0n stars. Look at the size of those boxes.
 
@aclarke yes those are actual adult film actors, that was kinda pointed out in the video title
 
user1646075
but the boxes. Geddit?
 
cpx
I was thinking override will make it really override it but it simply tells you that virtual method cannot be overridden thus, asserts an error. So, there's nothing we can do.
 
user1646075
1:41 PM
An error is good. Now you know you've made a boo-boo.
 
user1646075
what do you want to "do" then?
 
Yeah the entire point is to give you an error
That's why it was added.
 
Obviously we shouldn’t use override, as it leads to less errors that way.
 
user1646075
call me old-fashioned, but bothering with shorts in anything but a massive structure or array is kinda pointless. You're not even using references or anything...
 
user1646075
pro tip: get rid of the shorts. You'll feel better.
 
1:47 PM
@aclarke this advice is SOOO going to be fun to take out of context
 
user1646075
quick delete all messages around it!
 
user1804599
@Mgetz lol countries where net neutrality isn't enforced.
 
user1804599
@aclarke Shorts are very useful when dealing with APIs that accept or produce shorts.
 
user1646075
@rightføld also when the weather is really hot and you're just stooging around the house with the windows open.
 
@rightføld I could have sworn Orange got taken to task recently for this but nothing really came of it
 
user1804599
1:55 PM
@aclarke That doesn't happen in the Netherlands.
 
user1646075
@rightføld Huh? When I visited, I saw lots of people just sitting next to their windows. Mostly women actually...
 
user1804599
I referred to the weather.
 
user1646075
Maybe it was because of the infra-red lights they had on in the windows?
 
user1804599
in PHP, 19 secs ago, by Bas
I was good at it.
 
user1804599
1:59 PM
Being good at construction when you do two-phase init.
 
user1646075
" I liked it. I was good at it. I did it for me. And.. I was really alive. "
 
user1646075
Do I want to know what he's babbling about?
 
@aclarke what if I only wear underwear
 
user1646075
oh god. I feel so dirty.
 
user1646075
I posted in PHP room. Hope bartek doesn't find out.
 
user1804599
2:03 PM
@aclarke reminds me of youtube.com/watch?v=K--YiJma6xI
 
user1646075
@AlexM. in Romania? Are you insane?
 
public static DateTime getTommorowsDate() { Thread.Sleep(24*60*60*1000); return DateTime.Now; }
2
 
user1646075
@AlexM. are you one of these people who cuts a hole in the ice on a lake and goes for a swim?
 
@aclarke You say that like it’s a bad idea. But really do you expect them to swim on the ice? Obviously there has to be a hole.
 
swimming on ice is hard
 
2:06 PM
precisely
 
@TonyTheLion the sleepsort way to date manip \o/
 
user1646075
@AlexM. I'd like to see that. it would be like cats running on a polished floor.
 
Many cats would have no trouble. It's only the nervous types that suffer
 
user1646075
@TonyTheLion Genius.
 
Oh, I overlooked the late in 'late alpha'.
 
@CatPlusPlus which is?
 
@CatPlusPlus they chose a very depressing palette
 
looks real though; un-made-up if you will.
 
user1646075
@AlexM. It's about factories. The're not made of candy.
 
user1646075
2:16 PM
In the beta release, it will have a sulphurous odour coming out of the USB ports.
 
@thecoshman Science production line!
 
0
Q: difference in printing zero in cout and printf

volperossawith printf("%lf\n",-1.0+0.9+0.1); result is 0.000000 while with cout<<-1.0+0.9+0.1; result is 2.77556e-17 again, if i change cout<<0.9+0.1+-1.0; result is 0 why this different behavior simply inverting the sum?and why 2.77556e-17?is it the machine epsilon?and why I get it a...

 
@AlexM. you mean it's not cartooney like everything nowadays?
games used to look like that in the 90s
 
no, I mean it's a depressing palette
 
2:23 PM
> In computer graphics, a palette is either a given, finite set of colors for the management of digital images (that is, a color palette), or a small on-screen graphical element for choosing from a limited set of choices, not necessarily colors (such as a tools palette).
this
 
lol
 
s/this/this not that/ :A
I got your joke
 
@CatPlusPlus looks fun enough
 
man, 1.5 hrs until pizza :(
 
user1646075
 
user1646075
2:30 PM
hmm - .ro - that's close to you?
 
user1646075
do you know that shop?
 
I don't think it's a website owned by a Romanian pwnage.ro
it's just the domain
 
user1646075
i like to dream. Looks sooo good, though.
 
user1646075
baked bean pizza. Mmmm-MMM!
 
we have fries pizza too
with sausage and mozzarella
 
user1646075
2:36 PM
does it work??
 
user1646075
needs avocado and grapes.
 
I like it
but I don't like it as much as diavola and quattro formaggi
so I rarely order it
mum's visiting so I used this as an excuse to order pizza early
@aclarke that actually looks really good lol
except maybe for the fact that the egg will cause a mess unless eaten extra carefully
it's not hard fried
I haven't seen a restaurant here making pizzas with eggs like that
 
user1646075
possibly if it was made with a bit more love. The way that looks, it's probably got some spit too.
 
the only place where I saw a pizza with an egg on it was in a recipe book
 
user1646075
runny egg yolk is awesome. I wonder if you can get a pizza with about a dozen runny yolks on it.
 
user1646075
2:43 PM
we get bacon and egg here in a lot of places. it supposed to be aussie. /shrug
 
user1646075
but the egg is more like scrambled. sort-of.
 
user1646075
ooo this reminds me of a previous conversaiton here. I was going to take the kiddies to a really good turkish pide place nearby. Thanks!
 
user1646075
wonder if they sell kek for dessert
 
lots of spit even though it looks like it was done with love
 
user1646075
niiiiiiiice
 
user1646075
2:48 PM
oh! you've been here? Is that your review down the bottom of the page? kogarahkebabandpide.com.au
 
user1804599
3:11 PM
> make: Warning: File `Makefile' has modification time 1.2 s in the future
 
user1804599
Vagrant is very good software.
 
user1804599
VirtualBox is very bad, though.
 
LRiO criticism on meta:
http://meta.stackoverflow.com/questions/276886/did-anyone-else-notice-that-users-apply-pretty-girl-avatars-trying-to-enhance
 
@MartinJames Not really since LRiO doesn't ask questions. Unless you want to extend the meta posts to "increase their chances of getting rep"
 
user1804599
Always take advantage of other people being dumb.
 
user1804599
3:26 PM
That includes using pretty girls (or even better: pretty lobsters) as avatars.
 
Feeling pretty restless.
:(
 
I'm pissed, my copy of WoD did not arrive, I don't have a tracking # for the shipment and I'm starting to think the shipment got lost and this whole thing is going to be a real mess.
 
WoD?
WoW expansion?
 
World of Warcraft: Warlords of Draenor, often referred to as Warlords or WoD, is the fifth expansion to the massively multiplayer online role-playing game (MMORPG) World of Warcraft, following Mists of Pandaria. It was announced on November 8, 2013 at BlizzCon 2013, The expansion released on Thursday, November 13, 2014 at exactly midnight (PST). The expansion will raise the existing level cap from 90 to 100 and will introduce player-built, upgradeable garrisons, as well as upgrade the player character models of those races released prior to Cataclysm. == Plot and setting == The expansion is set...
 
The servers have been fucky for the past few days
 
user1804599
3:38 PM
Debian is so horrible.
 
yeah I know, thats why when it didnt show up thursday i didnt mind so much, besides i dont have much time to play on week nights, but it didnt arrive on friday either
usually when i pre-order stuff it arrives on the day the game comes out, the next day at most
 
3:51 PM
Evening rubberies
 
Evening
 
lol CNN, such journalism - they show Ukrainian tank shooting at rebels while narrator says that it's rebel's tank shooting Ukrainians.
 

« first day (1491 days earlier)      last day (3450 days later) »