A note about performance

On a multi-core Mac, running 10.8, I ran a test to compare the speed differences of incrementing or decrementing a value with no-locks, atomics and finally, a mutex lock. The no-lock is the baseline, and here is the difference in speed with the later 2 items: Atomics: 3X slower on the same thread Mutex: 7X … Read more

Vector drawing programs

Matt Inman made a video where he discussed how he does his illustrations for his website: www.theoatmeal.com. If you haven’t seen any of this stuff, I would recommend that you only do it while you are home because his site is a big productivity killer. Anyway, it got me very interested in doing illustrations again, … Read more

“Selectively Disable Warnings” with clang

I saw this demo done at WWDC on how to turn off warnings, only when truly warranted, while compiling with clang: #if defined (__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wunused-value” #endif // defined __clang__ void ImAUselessLittleFunction ( int pleaseUseMe ) { pleaseUseMe; // Nope, you are not going to be used } … Read more