volatile

I love the volatile variable qualifier. I never had to use it until I started playing with an Arduino and so it was double the fun. When you mark a variable volatile you are telling the compiler to make no assumptions about the variable during compilation. For example, in a loop like:   the compiler …

Advertisements

Sleep on it

I was pretty annoyed. I had installed a program into a docker container and had invoked this container via our cloud computing platform and it was garbling my output files - with the exact same inputs and parameters I had just tested it with on my local machine. At first, I didn’t realize anything was …

Random numbers in a parallel world

TL;DR: It's always a great idea to explicitly initialize your random number generator especially in a parallel computing environment. Random number generation in computing commonly uses pseudorandom number generators. These are iterated functions that take an initial number (a seed) and spit out a new number each time you call them. Each number is part …