« first day (3346 days earlier)      last day (1585 days later) » 

12:15 AM
I still don't like Brussels sprouts x)
 
12:46 AM
I mainly eat Brussel sprout because it's healthy, it's not my favourite, but I don't dislike it either.
 
Brussels should demand that people start using a different name so the good name of their city will no longer be besmirched by comparison to that horrible vegatable. Then even more people would come and be so underwhelmed by Mannekin Pis that they spend the next half hour wandering around trying to figure out if they actually found what they were supposed to (and the rest of the day drowning their sorrows in Belgian beer).
 
1:16 AM
The arts museum is nice
 
1:39 AM
So this place I am trying to rent has been vacant for more than a month, a baby brush turkey moved in.
 
 
5 hours later…
6:36 AM
Has my beautiful bird picture scared everyone away?
 
 
5 hours later…
11:15 AM
In fact, it just lured me in. :P
 
11:41 AM
Today my passenger opened sunroof on the car to get more 'air flows' inside. A crow managed to take a dump and pooped on my clothes through the small opening window.
Not sure if I were hyper sensitive afterwards, but I feel the rest of the crows were all staring at me when I got out to get my clothes washed. The one did it was probably thinking 'bullseye'. The car was inside a carpark at the time.
I must confess that I was in a stare match with a crow when I walked pass it before the whole thing happened. It was very close to the footpath and I like to provoke birds.
Bullied by a crow, can my life get lower!!
Although the bird looked more like a raven than a crow.
 
 
2 hours later…
1:37 PM
@TelKitty without a phone. I already have good phone and having a contract with a phone would be a 2 year contract with similar pricing.
 
 
3 hours later…
4:18 PM
Today I used std::geometric_distribution for the first time :o
 
I'm randomly generating integral expressions, so I used std::geometric_distribution to generate small integer constants :p
 
 
4 hours later…
user7659542
8:47 PM
Which guarantees do you have that your program will do what it is supposed to do, considering out of order execution?
 
user7659542
You perform a write operation and then a read operation on a variable. Due to out of order execution, it seems like you may actually end up first reading and only then writing...
 
out of order execution is not some chaos monkey, there's invariant guarantees
like the read/write ordering you mentioned is guaranteed to be observed correctly within one thread, you only have to worry about that one in multi-threaded contexts
it's basically just like the C++ "as if" rule just on a CPU level
 
user7659542
@PeterT What is a solution when it comes to multithreading in that case?
 
user7659542
Using volatile?
 
no, use the correct atomic operations and locking
if you're lazy and on x86 just sprinkle mfence everywhere :P
 
user7659542
9:01 PM
Is using volatile useless in such a case?
 
I think it's kind of implementation defined what it does in that regard, just use the atomic ops if you want to express the ordering
 
I suspect nobody's really knows what volatile does
 
user7659542
@Mikhail makes sure there are no compiler optimizations so the cpu goes check the value every time explicitely.
 
Except the value can be cached in a way that multiple cpus still see different values.
 
user7659542
I don't think the CPU reads cache, because I suppose this would make the keyword quite useless
 
9:14 PM
it's not for multithreading, it's for stuff like memory mapped hardware devices
 
user7659542
@PeterT yet the volatile keyword is used for multithreading fairly often
 
What do you think the cache on the cpu does :-)
 
user7659542
@Mikhail hmmm, unfortunately I don't know enough about that. I should read about it!
 
user7659542
I believe it is used all the time by your CPU because it is much faster than accessing ram explicitely every time through the northbridge. But when using volatile, you excplicitely tell the cpu to cross the bridge
 
CPUs nowadays have memory controller integrated most of the time, I don't think people use the term northbridge for that anymore
 

« first day (3346 days earlier)      last day (1585 days later) »