News for hackers. Stuff that matters.
Re:How many lines of code does it take to create the Android OS by aaronbrethorst on Monday May 24, 2010 @02:40AM (#1373962)
Wait, what? 3 million lines of XML. Oh yuck yuck yuck.

Beyond that, I'm surprised there's more C than Java, and doubly surprised that C++ comes in behind all of the aforementioned languages.

Re:How many lines of code does it take to create the Android OS by robryan on Monday May 24, 2010 @02:55AM (#1373986)
Much of the XML may be generated stuff? Does this include the kernel, which would be C?
Re:How many lines of code does it take to create the Android OS by angusgr on Monday May 24, 2010 @02:58AM (#1373993)
According to Wikipedia the full linux 2.6 kernel tree is now around 12 million LOC. So I'd be guessing a good chunk of the 2.8 million lines of C in Android is the kernel. It'd really depend on how many lines the "core" parts of the kernel take up (not that much, I bet) but also how much is left in the Android tree even if it's not really used or even compiled in.

I'm also interested to know what makes up all that XML, though.

Re:How many lines of code does it take to create the Android OS by Natsu on Monday May 24, 2010 @06:08AM (#1374243)
You're right. XML is about 25% of the code (~3M of ~12M lines, ignoring blank lines). And overall, some 20% of the project is comments (~3M comments of ~15M lines code + comment, again ignoring blank lines). And in spite of that, they appear to have several small things with no comments whatsoever. Most of the other stuff is about what you'd expect, though: the header files and assembly have the most comments, while the one-off programs have very few.

Still, I wonder what they used Lisp for? Or why they used so many different tools? I mean, Perl was all but made to replace awk & sed. Did they have several people who did little one-off tasks in their favorite language when they were pressed for time?

Must be nice to get the tools you want, though, instead of being subject to absurd decisions by superiors (think "Daily WTF material").

Re:How many lines of code does it take to create the Android OS by morphir on Monday May 24, 2010 @08:40AM (#1374493)
The Android robot to McCarthy: You get 144 lines to write in lisp. What would you like to write?

McCarthy to the Android robot: Umm. Curse out the other languages for being cheap knockoffs.

Re:How many lines of code does it take to create the Android OS by terminus on Monday May 24, 2010 @04:20AM (#1374119)
This looks like cumulative lines of code for all the projects that go into Android (across all the platforms that they are supported on.)

For instance C#, DOS Batch, IDL etc are listed. I don't believe that Android has a runtime for any of these.

Re:How many lines of code does it take to create the Android OS by angusgr on Monday May 24, 2010 @03:00AM (#1373995)
FWIW, I'd be really interested to see this reorganised as LOC per component.
Re:How many lines of code does it take to create the Android OS by macrael on Monday May 24, 2010 @02:48AM (#1373976)
A project made up of 12 million lines of code, and Google can give it away for free. Mind boggling. There's not many can do that.
Re:How many lines of code does it take to create the Android OS by CUViper on Monday May 24, 2010 @02:56AM (#1373989)
Well, Google can receive a huge chunk of that for free, add their contribution, and give that result away. It's still a great thing, but let's not forget credit for the shoulders they are standing on.

I'd be interested to know the numbers for the parts that are unique to Android, as well as how much has been added to parts that are not unique...

Re:How many lines of code does it take to create the Android OS by chrislloyd on Monday May 24, 2010 @09:03AM (#1374540)
This really puts FONC in perspective.
Re:How many lines of code does it take to create the Android OS by bprater on Monday May 24, 2010 @03:51AM (#1374077)
PHP is making a disappointing showing with a whopping 3 LOC!
Re:How many lines of code does it take to create the Android OS by xhuang on Monday May 24, 2010 @06:19AM (#1374256)
i think it should be a phpinfo() <?php phpinfo(); ?>
Re:How many lines of code does it take to create the Android OS by Keyframe on Monday May 24, 2010 @07:21AM (#1374324)
D?! Which D are we talking about here?
Re:How many lines of code does it take to create the Android OS by morphir on Monday May 24, 2010 @08:42AM (#1374495)
The one that comes after C.