« first day (2830 days earlier)      last day (2110 days later) » 

12:59 AM
it's a mechanism to lock step threads, as threads reach the sync point they wait until the last one reaches it and then they are al woken
 
1:43 AM
@Borgleader ya, gonna take a while... :(
 
2:02 AM
rip, might have to fallback to my laptop for a while if it gets to that
(its not weak mind you, i7-7700HQ, 16GB of RAM and GTX1050)
 
2:19 AM
@Borgleader That's better than mine. 6820HK, GTX 970M. Though my has 48GB of ram.
 
2:37 AM
@Borgleader :O
 
 
2 hours later…
4:59 AM
@Borgleader What is the difference between latch and barrier? They sound very similar.
 
 
2 hours later…
7:10 AM
111
A: Java concurrency: Countdown latch vs Cyclic barrier

JonOne major difference is that CyclicBarrier takes an (optional) Runnable task which is run once the common barrier condition is met. It also allows you to get the number of clients waiting at the barrier and the number required to trigger the barrier. Once triggered the barrier is reset and ca...

 
7:34 AM
Morning
 
Ven
8:13 AM
heyo
 
9:01 AM
since C++ 17 has guaranteed copy elision do we still need to implement move constructors?
 
Ven
what
 
Well, isn't it that if the timeout is too short, your inner threads do not have enough time to synchronize on the latch and the outer thread goes away and dies before the inner thread reaches the count_down. And when it does reach the count_down, it is filled with zeroes and hence the assert triggers? — wilx 4 hours ago
> protected by om-nom-nom
Nice.
I mean, such awesome nickname.
 
@Nerva Copy elision isn't guaranteed everywhere, so yes
 
9:31 AM
@Morwenn thanks! But do we have default move constrctors like we do have default copy constructors?
 
yes
TIL Python's shutil functions to copy files and directories are actually slower than cp
Good thing it's somewhat fixed in 3.8 and there's a third-party module for previous versions that patches the functions
 
Ven
from __guido__ import van_rossum
 
9:59 AM
FutureWarning: module __guido__ is deprecated and will be removed in a future version of Python
 
 
3 hours later…
12:41 PM
@Borgleader they aren't even guaranteed to be 0 they are just guaranteed to stay the same — Tyker 4 mins ago
They arent?
 
this looks like bullshit
 
What would be the reason to fiddle with the pointer bits? Even if that may be possible for one platform, I doubt that it is portable or a good idea.
 
@Morwenn Yet more breaking changes... sigh
 
12:58 PM
@Loebl It's used to store information without wasting space
 
@Loebl if i have struct Foo { int* p; bool b; }; I'm wasting 7 bytes on a 64 bit machine. If int is guaranteed to be 4 (or 8 byte aligned) I could squeeze that bool in one of the lower bits of the pointer and save 50% of the space in that struct. I couldnt find it but Chandler Carruth has good examples of doing this from LLVM.
 
It's a micro-optimization.
 
Sure, but sometimes that's what you need to do. So its a valid question.
 
It can be significant in some situations.
 
Some guy made a memory sanitizer which uses almost no extra memory by tagging pointers :p
 
1:05 PM
Does it still work if the code it tests also uses pointer tagging? :)
 
@Morwenn link?
 
Hope I'm not mistaking it with something else x)
 
I wish I was low fat :(
 
1:07 PM
I am low muscle
 
Ven
I am low esteem
 
esteemuscle
 
@Borgleader They do, but they never attempt to dereference that they always restore a valid pointer before using it.
 
ok, thanks for the explanation. Although I doubt I will ever use such constructs (I am still trying to write regular code that doesn't suck)
 
Wow, some satellite is 11 years late and supposed to live only 3.25 years
 
1:33 PM
@Morwenn welcome to space
Where Missions are insanely expensive
 
yup
the designed of Cassini began roughly when I was born and the mission ended last year
 
The James Webb Telescope is a good example
The opportunity and spirit rovers were only schedule to last 90 days
 
JWB vs. FFXV
 
Opportunity has been mostly going for over 5000days
 
when you sign for a 90-days contract and are still there years later x)
 
1:58 PM
I'm falling asleep again >.>
 
sleep is good
 
not when you're at work ^^"
 
@thecoshman don't try to go cheap on protective gear
you don't need top quality adventure stuff for cruiser riding
but you can definitely get stuff with good protectors in reasonable prices
look out for D3O and Sas-Tec
as for helmets I suppose you'll go for an open one anyway
 
^ I second this
As for helmets: Cheap === crap.
And don't be fooled by DOT approval stickers on helmets. DOT approval is laughably easy to get.
 
DOT is useless
CE is minimum
in Europe we've sorted this out thankfully
but yeah it's good to keep an eye
for open helmets you definitely want one with a big face shield
 
@Cerbrus Ryan F9 made a nice video about this as well
 
Had to google him, but yea, he's got pretty informative videos.
I assume you mean this one?
 
Here's a list of videos about helmets, by him: fortnine.ca/en/reviews/motorcycle-helmets-guide/… :D
 
@BartekBanachewicz actually went with a full face... not really up for the idea of eating endless flies
 
2:15 PM
@thecoshman which model
and do you have rest of the gear already
and the bike
 
Nah, only just ordered the helmet and gloves
This is the lid I got, not this shop thogh
 
haven't heard of the brand
 
@Cerbrus US DOT? It's a joke
 
@Mgetz Yea, that's basically what I said.
@thecoshman DOT and ECE-22.05 certified.
That's fine :-)
 
Why have valid Health and Safety regulations, you might be impeding corporate profits and "MUH FREEDOM"
 
2:26 PM
@thecoshman did you buy it in a physical shop, or online?
 
 
@Cerbrus online
free delivery
 
Okay. Shove your head into it and wear it for half an hour. If you start getting any headache-like reaction, return it.
 
160 True freedom dollas
@Cerbrus that's the plan yeah
fairly sure it's the right size, but yeah, I'll just sit in, all excited like a little school girl, and see how it feels
 
Excellent
Check this vid about sizing, if I recall correctly, he also tells you what to look out for in regards to a good fit.
 
2:31 PM
If I'm not mistaken, it has an inner visor you can drop down that is tinted for when it's sunny
I'll take a look later
 
Those are great
 
Yeah, when I was doing the initial training I was like "Fuck, can't see much" at times, was basically following the light in front of me
 
@thecoshman ooh that might prove difficult
I'd never buy a helmet online tbh
 
The site apparently is pretty good with returns.
We'll see
 
@thecoshman yeah but when I bought mine I tried like 15 different ones on
are you going to return 15 times?
 
2:48 PM
Nah, first one will be perfect :S
 
 
1 hour later…
3:57 PM
@rafix07 please restore your answer, it's helpful. I'll leave mine as well because my answer is simpler and answers more generally to the question. However, your answer is highly valuable to any future user who is content with polygon approximation — sehe 36 secs ago
Maybe some 10k+ users can lend an undelete vote stackoverflow.com/a/51365723/85371
Ah. It already worked.
 
 
8 hours later…
also look at the user
 

« first day (2830 days earlier)      last day (2110 days later) »