123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|485|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Line counts of large projects

Fri, 10 Jul 2009, 13:58
Phoenix
I found a site called ohloh.net today, which amongst other things, allows you to see how many lines of code there are in various open source projects. I instantly typed in Firefox, and was greatly surprised. Not even 100,000 lines of code! Then I typed in Google Chrome, which yielded a result about 30 times larger than Firefox's source.

How can this be? Is the website wrong? Am I missing something really obvious here? Is Gecko not included?
Fri, 10 Jul 2009, 15:47
Scherererer
One of the things that makes Chrome what it is, is the javascript language interpreter. It's very possible that that is what is the heftiest piece of code is. Otherwise, idk, I think you might be right about Gecko's inclusion (or lack thereof), but it wouldn't necessarily explain why it might be included in Chrome and not FF. I also found something called "Mozilla Core" which states that it's "The core libraries shared by mozilla applications." So that might be something else that's in FF but not counted.

www.ohloh.net/p/mozilla/analyses/latest

As a side note, this site is pretty cool. Looks like it crawls SourceForge, because it logs a project that I'm working on there, along with my user name, which is interesting..

-=-=-
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus
Fri, 10 Jul 2009, 18:31
JL235
Some code may be generated (like for Parsers) and I'd expect Chrome included the source to lots of in-house stuff at Google. However I believe Chrome's JavaScript engine is a separate Google open source project (that Chrome just happens to use). So it should not be counted as a part of Chrome.

Interestingly with Java (listed as OpenJDK) over 40% of it's Java code is just comments. NetBeans was approaching 15 million lines up until January last year. Since then it's become a 1 million line HTML document.
Fri, 10 Jul 2009, 22:09
CodersRule
I really like how it tells you how much it would cost to develop the project from scratch.
Sat, 11 Jul 2009, 00:53
Scherererer
I like how it says there's 72 lines of C# in the Open JDK library. And, not as funny, but interestingly, 1,833 lines of D.

|edit| Oh god, NetBeans uses Visual Basic? |edit|

-=-=-
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus
Sat, 11 Jul 2009, 03:40
Jayenkai
LOL.. Go Basic!!
Even the Netbeans guys didn't want to use Java

-=-=-
''Load, Next List!''
Sat, 11 Jul 2009, 04:42
JL235
The VB will be for the Windows specific bits (probably just boiler plate launchers), like NetBeans.exe.

The language might be terrible, but the capabilities of VB is actually pretty impressive.
Sat, 11 Jul 2009, 15:55
cthug
Gnome vs KDE

Gnome has about 20 million lines, KDE just under 8 million.

Linux Kernel 2.6 - about 11 mil

|edit| How does SDL have more than twice the amount of code as irrlicht |edit|

-=-=-
CTHUG.co.nr
Get Ubuntu
Sat, 11 Jul 2009, 16:45
JL235
I wonder if some projects have the old versions in the same source tree? It might explain why some projects suddenly jump up and down by millions of lines of code.
Sat, 11 Jul 2009, 17:39
cthug
yes i noticed that that happened with KDE (jumps from 10 mil to 6 mil), they must be doing some fancy code optimisation

-=-=-
CTHUG.co.nr
Get Ubuntu