Parallel coding

Last year, I had the great privilege of attending “Effective Concurrency” by Herb Sutter; I say great because it was an eye opener for me.  Now, you all know that I’m a Mac developer, so, seeing that I was the only guy in the room with a MacBookPro, I got a humorous look from Herb. … Read more

How to detect what SDK you are building for in Xcode

I recently had to build a file for multiple operating systems and had to figure out a way to enable a feature that is only available on Mac OS X 10.5 and greater, and Windows. Here’s how I did it: #if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) || defined (_WIN32) #include #endif Now, technically there is no harm … Read more

Using OpenMP and Xcode

During my pilgrimage to Apple in Cupertino California last year, I got to meet some really bright developers at a performance workshop. Of the people who were presenting, Intel was there touting OpenMP. Of course, Apple’s Xcode didn’t yet support OpenMP unless you followed some up-the-sleeve tricks: http://alphakilo.com/openmp-on-os-x-using-gcc-42/