Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Ohloh, Ubuntu is reported as "mostly written in C#", and indeed if we go to the Ubuntu's languages summary we see that C# has the most LOCs, accounting approx. 20% from the code base. If the Ohloh's engine isn't wrong, which is the explanation of this?

share|improve this question
The explanations is... they chose to write a lot of the applications in the project in C#, I fail to see how this needs answering. – w4etwetewtwet Apr 2 '13 at 8:15
up vote 11 down vote accepted

The Oloh engine is way wrong. Ubuntu is a quite complex project, and it's difficult to state what is Ubuntu and what is not. But C# is not by any measure the most popular language.

Ubuntu has also much more than 50 contributors and 1500 commits/year even if you only count Ubuntu specific patches.

This site seems to follow some strange mix of Ubuntu and non-Ubuntu projects, it doesn't make sense. It's likely than F-Spot (a big program that is not in the default install base now and it's made in C#) is weighting heavy on that statistic.

share|improve this answer

The Linux Kernel (which is the core of Ubuntu) is written mostly in C and a little parts in assembly languages. And many of the applications are written in python or C or C++. C# is not a popular language for many linux users/developers because it was meant to be used for Windows. But still you are free to use it. Its just that people mostly give preference to languages other than C#.

I have seen the source code of Linux kernel and I can be 100% sure that 99% is C. You can also download the source code from the official site of linux kernel. The site is . There you will mostly see ".h" which are referred to as "Header" files and ".c" which are "C Programming" files.

So the article you are reading is wrong. And by wrong I mean dead wrong. Please notify the site's admin for the changes also.

share|improve this answer
Downvote: While this is true, you don't give any references and links, so this answer is just an opinion and it's not useful for this site purpose. – Javier Rivera Apr 2 '13 at 8:29
@JavierRivera I have added some references and links. And this is not an opinion, its a true fact. Download and extract the source code to see. – Pranit Bauva Apr 4 '13 at 10:05
@PranitBauva OP was referring to Ubuntu, as in all the applications in the Ubuntu project including unity etc. not the linux kernel. – w4etwetewtwet Apr 4 '13 at 16:51
Thanks, the answer is way better now. – Javier Rivera Apr 4 '13 at 20:10
@JavierRivera Thanks to you! To prove my point I read some books on C Programming so that I could understand the language of the source kernel and then I could prove my point.! – Pranit Bauva Apr 7 '13 at 16:29

Ubuntu is definetely NOT written in C#! Ubuntu does not even (as far as i know) ship with any C# / Mono applications installed although they are available in software centre (banshee etc)

Ubuntu like most distros is made up of alot of C and C++, mix in some vala, python, perl and many others. C# is a bit of a sore point due to MS/.net connections.

share|improve this answer

Ubuntu is a distribution containing a lot of individual projects each of which are free to use whatever language they want to implement their project.

C++ is a quite frequent choice for programmers who need the C ecosystem but want a bit more from the language.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.