Live data from Hacker News

How many lines of code does it take to create the Android OS

gubatron.com

1–10 of 16 posts

Re: How many lines of code does it take to create the Android OS

#4

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.

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

#5
post #3

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.

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

#6
LoseThos is 120,000 LOC. Is that here nor there? I donno. Is more good? In school our grade was based on how short... on a curve.

What do you think of the fact LoseThos is 120,000 including the compiler and demos. I don't know what Android does, so I can't really comment.

Quoting a high value might be good for intimidation and to impress customers. I think most incentives are to quote high. I'm marketing LoseThos as simple and clean and unintimidating. Low's way better, all things being equal, right, if open source?

Re: How many lines of code does it take to create the Android OS

#7
post #4

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.

Much of the XML may be generated stuff? Does this include the kernel, which would be C?

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.

Post reply on HN