Meta
-
Recent Posts
- Augmented Reality: Swept Frequency Capacitive Sensing turns your skin into an input device
- Augmented Reality: Suddenly it’s hot – are we reaching a tipping point?
- Standalone DirectX no more – Starting with Win8 new DirectX versions will be OS upgrades
- Working with C++0X/C++11: Lambdas – part 3 – introducing closures
- Seamus Blackley launches iOS games company with a boatload of Atari veterans
Categories
Archives
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- August 2011
- July 2011
- June 2011
- March 2011
- November 2010
- October 2010
- September 2010
- July 2010
- August 2009
- March 2009
- February 2009
- August 2008
- September 2007
- August 2007
- May 2007
- April 2007
- March 2007
- February 2007
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- June 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- October 2003
- September 2003
- August 2003
- July 2003
- June 2003
- May 2003
- April 2003
- March 2003
- February 2003
- December 2002
- July 2002
- May 2002
- March 2002
- February 2002
Recent Comments
Category Archives: Code
Working with C++0X/C++11: Lambdas – part 3 – introducing closures
Closure In computer science, a closure (also lexical closure, function closure, function value or functional value) is a function together with a referencing environment for the non-local variables of that function. A closure allows a function to access variables outside … Continue reading
Posted in C++0X/C++11, Uncategorized
1 Comment
Working with C++0X/C++11: Lambdas – part 2 – Scope Capture
Since a lambda is a local function defined with a scope (i.e. inside another function) it can have access to the same variables that are in that scope. This is where the capture-mode comes in. (Perversely, this prevents lambdas from … Continue reading
Posted in C++0X/C++11, Code, Uncategorized
Leave a comment
Working with C++0x/C++11: Lambdas – part 1- Syntax
Lambdas are new to C++0x and if you are familiar with functors then you already have a good idea of how lambdas can be used. Where lambdas really become useful (in my opinion) are allowing you to encapsulate behavior (as … Continue reading
Posted in C++0X/C++11, Code
Leave a comment
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 Code
2 Comments
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