Slashdot Mirror


Linux Kernel Surpasses 10 Million Lines of Code

javipas writes "A simple analysis of the most updated version (a Git checkout) of the Linux kernel reveals that the number of lines of all its source code surpasses 10 million, but attention: this number includes blank lines, comments, and text files. With a deeper analysis thanks to the SLOCCount tool, you can get the real number of pure code lines: 6.399.191, with 96.4% of them developed in C, and 3.3% using assembler. The number grows clearly with each new version of the kernel, that seems to be launched each 90 days approximately."

7 of 432 comments (clear)

  1. Lines of code as a metric by qoncept · · Score: 4, Insightful

    Funny that the summary calls attention to the fact that the number of lines includes comments and whitespace without any mention of how worthless lines of code is as a metric. Someone could easily go in and add or remove newlines wherever they wanted and without changed a bit of code make it 50 million or 50 thousand.

    --
    Whale
  2. Re:What about the other .3% ? by glavenoid · · Score: 3, Insightful

    Makefiles, build scripts, etc., perhaps?

    --
    I, for one, am looking forward to the inevitable /. beta rollout fallout.
  3. Re:Line Count Not Always a Good Thing? by Microlith · · Score: 4, Insightful

    While Linux is huge, for a backdoor to be successful it would need to hit a huge number of systems. The majority of the kernel at this point tends to be drivers, not all of which are used in a given kernel.

    For it to be even remotely worthwhile, it'd have to be placed into something that was both heavily used AND given little attention. These two positions are almost mutually exclusive.

    Can anyone think of a place that would fall into these two categories? Even the more seemingly obscure parts of the kernel get attention fairly often and malicious changes wouldn't go unnoticed for long.

  4. Re:Lines of Code by hondo77 · · Score: 5, Insightful

    Why? Are you still using an 80s-era Mac as your primary computer?

    --
    I live ze unknown. I love ze unknown. I am ze unknown.
  5. Re:Lines of Code by QRDeNameland · · Score: 5, Insightful

    If 1 Line of Code = 1 Library of Congress, you should acquaint yourself with the Enter key.

    --
    Momentarily, the need for the construction of new light will no longer exist.
  6. Re:Reply from actual kernel developer please . . . by earlymon · · Score: 5, Insightful

    I'm a developer and was wondering what kind of testing is done to verify the code.

    Guinea pigs. Millions of us.

    --
    Pathological kinda promises Path + Logical - but instead, you get stuck with pathetic.
  7. "Actual" code? by TuringTest · · Score: 4, Insightful

    Comments are also code.

    If you only count as code what can be feed to the machine, you should look at the size of the compiled binary. Source code is meant to be read by *humans*, so comments do count. That's why the GPL requires them to be left in the files (the "preferred form" to edit), otherwise it wouldn't be source code.

    --
    Singularity: a belief in the "God" idea with the "demiurge" relation inverted.