Coding Best Practice: The role of comments in source code

The purpose of a comment in source code is to document why you are doing something or to provide a quick summary of a non-obvious algorithm. It is not to describe what you are doing. Generally, a skilled programmer – i.e. hopefully your peers – can figure out what you’re doing from code just fine. …

Continue reading ‘Coding Best Practice: The role of comments in source code’ »

Introduction to extending Clang/LLVM

I’ve spent the first part of today watching some of the videos from the LLVM Dev Meeting that occurred back in November. (I really wish I’d been able to attend!) The first talk I watched was the Extending Clang talk by Doug Gregor with Apple. If you’re thinking about playing around with Clang, I strongly …

Continue reading ‘Introduction to extending Clang/LLVM’ »

Reflections from a crash course in OpenCL

Over the last few months, I’ve had an opportunity to spend some time playing with OpenCL. In short, we’re trying to use a GPU to accelerate garbage collection for Java. (Once the work is published, I’ll post more here.) We’ve implemented a simple graph traversal algorithm on an AMD chip using OpenCL. This article doesn’t …

Continue reading ‘Reflections from a crash course in OpenCL’ »