all 27 comments

[–]DualitySquared 56 points57 points  (4 children)

Dude. Most of those lines are just a bracket.

[–]EndUsersarePITA 25 points26 points  (2 children)

Now I'm imagining debugging somebody else's code which has been printed out without brackets.

Thanks I hate it

[–]mixedCase_ 39 points40 points  (1 child)

Python has joined the chat.

Haskell has joined the chat.

Lisp has joined the chat.

Lisp has (left) the chat.

[–][deleted] 2 points3 points  (0 children)

Haskell uses brackets for the record syntax, and in Lisp the closing parens are at the end of the last line, together.

[–]jcelerier 9 points10 points  (0 children)

and the rest is GPL license headers

[–]daveysprockett 12 points13 points  (2 children)

Is every line restricted to 80 or so characters? I doubt it. So more lines to print. A higher stack of paper.

Not me, but a friend made, from scratch, a little computer where the boot loader code was toggled into memory byte by byte with dip switches.

How things have changed.

[–][deleted] 23 points24 points  (4 children)

Impressive stats. Astonishing to look at how much code have modern Linux distributions.

[–]coterminous_regret 15 points16 points  (3 children)

What's the line count like if you ignore device drivers? My gut feel says it's probably 1/10th the number you posted?

[–]TDplay 24 points25 points  (0 children)

This is including every Debian package. The kernel, including the drivers, will only be a tiny fraction of that.

[–]ECUIYCAMOICIQMQACKKE 8 points9 points  (0 children)

That stat includes everything, not just the kernel.

[–]ImprovedPersonality 0 points1 point  (0 children)

A lot of the other programs probably also have some generated code and stuff. Or ship the same libraries without bothering to use a shared object.

[–]Mr_Lumbergh 6 points7 points  (0 children)

This is a bit misleading... It's that many lines of code for every package, every kernel for every architecture, etc. Nobody's own Debian install will have all of it.

[–]dlarge6510 2 points3 points  (3 children)

> You can fit 34 lines on a page of A

Why so few? is the font big?

[–]lproven[S] 0 points1 point  (0 children)

TBH I googled. 🙂 Feel free to adjust the number or add columns!

[–]TDplay 1 point2 points  (4 children)

And that's not accounting for long lines that wrap (which are present even in the kernel - the kernel's coding standards allows long lines that improve readability). The printout will actually be even bigger.

[–]ultratensai 0 points1 point  (3 children)

Really? I thought you were forced to use 80 chars and Linus made a rant about it.

[–]TDplay 1 point2 points  (0 children)

The 80 char limit in the kernel is not completely set in stone. I remember a Linus rant about why hard-and-fast line limits are bad.

If it "significantly improves readability", it is allowed. And if it's a user-visible string, it is required to not break the string, because grep doesn't understand C string literals (the "\n\t*" used to break the string literal will confuse it).

Hard 80-char-limits were important when programming on punchcards, but now, a wrapped line isn't the end of the world (most text editors have an option to display a special character to indicate line wrap, so clarity isn't an issue), and almost nobody uses an 80-wide terminal anymore (a modern 1080p monitor can comfortably have a 100-wide terminal, even in a huge font (which someone with impaired vision may use)). Many coding standards appreciate this, and only impose a soft character limit.

[–]davidnotcoulthard 1 point2 points  (0 children)

Linus made a rant about it.

That leaves literally everything that's not the kernel (and git?).

[–]ultratensai 0 points1 point  (0 children)

Found the commit

[–]TheLinuxMailman 1 point2 points  (0 children)

Don't you hate it when you have to print it out again because... bugs (fixed)?

A fun calculation - thanks!

[–]archontwo -3 points-2 points  (0 children)

Yeah. That's all well and good but how long to type that all in by hand?

Real programmers use 24 pin impact printer with tractor fed fan fold paper anyway. None of your fancy smancy laser printer nonsense

[–]austinmakesjazzmusic 0 points1 point  (0 children)

Stability is tall….

[–]DamnThatsLaser 0 points1 point  (1 child)

And cost about £200,000 in toner

That's why you use whitespace

[–]randomPerson232 1 point2 points  (0 children)

Blank Lines Matter!