Category Archives: Code

Working with C++0x/C++11: nullptr and nullptr_t

One my pet peeves with C/C++ are null pointers – specifically not having a good way of specifying a special pointer value that means “invalid pointer”. C (and C++) have a preprocessor macro NULL, which in C expands to either … Continue reading

Posted in C++0X/C++11, Code | Leave a comment

Working with C++0x/C++11: static_assert and decltype

I have been writing a lot of code the last few months, and I’ve had a chance to play with some of the new C++0x features. It’s really the first time in many years that there’s been a significant improvement … Continue reading

Posted in C++0X/C++11, Code | Leave a comment

Double Your Program Speed with One Easy Change

My friend Stan Melax has written a number of articles on optimization using SSE instructions. He’s also talked about some simple things you can do to make your program run faster. I’d like to reiterate one of these because it’s … Continue reading

Posted in C++0X/C++11, Code | Leave a comment

Microsoft Developer Network Article on Threading – Part 2 – Scalable Multithreaded Programming with Tasks

The second of my series of articles on threading is up on Microsoft Systems Developer Network Magazine: Scalable Multithreaded Programming with Tasks This article is about using tasks to break up a lengthy job into a series of smaller ones … Continue reading

Posted in Code, Published Articles | Leave a comment

Microsoft Developer Network Article on Threading – Part 1 – Scalable Multithreaded Programming with Thread Pools

The first of a series of articles on threading is up on Microsoft Systems Developer Network Magazine: Scalable Multithreaded Programming with Thread Pools This article is a gentle introduction on how to get better CPU performance with little effort.  If your … Continue reading

Posted in Code, Published Articles | Leave a comment

Using Aero Glass on Vista: my Microsoft Developer Network Article is up!

One of the nice things about Vista is that they rewrote the display architecture to be a composition engine. Every window gets some off screen memory to display itself to and then all these windows are composited together onto the … Continue reading

Posted in Code, Published Articles | Leave a comment