Line Count Improvements: C vs C++

Lately we’ve been receiving a lot of patches to Ohcount, the tool we use to count lines of code. This has been really exciting for us, and we’re very thankful to the contributors who’ve been helping us fix bugs and add new languages.

Historically, Ohloh has never distinguished between C and C++. We simply lumped them together and called them “C/C++”. This annoyed a lot of people. 🙂

A major change that we’re adopting today is to (finally) distinguish between C and C++. This is thanks to the efforts of Ciaran McCreesh, who submitted a patch to do this earlier this week.

This change poses something of a challenge for Ohloh: we have literally billions of lines of C and C++ in our system, and it’s going to take us a very long time to recount all this code. It doesn’t help that our current server farm is already overworked.

This means that for the next few months, you’re going to be seeing an increasing amount of “C” and “C++” as separate languages, but you’re also going to see a lot of legacy “C/C++” code. These might coexist in the same reports.

I can’t predict how long it will take us to recount and sort out all of the existing “C/C++”, but I estimate it will take a few months. We are expecting to install more server hardware soon, and that may help speed up the counts.

If you are eager to see your own project recounted, just let us know and I’ll be happy to bump you to the front of the queue.

Thanks to everyone for the contributions, and here’s to C and C++.

18 Responses to Line Count Improvements: C vs C++