Live data from Hacker News

Linux kernel swear counts

vidarholen.net

1–10 of 26 posts

Re: Linux kernel swear counts

#3
post #2

I wonder what caused the peak of shit just before 3.0.9, and what reversed it. The spike just before 3.2.17 must be a glitch, but if it isn't, it's very intriguing.

It seems as if a lot of lines of code were removed or not measured at that particular measurement; despite the drop in the usage of 'shit', its occurrence per line in fact jumps up at that moment.

Re: Linux kernel swear counts

#4
There is an area around 2.4.36.5 where the fall and rise of "fuck" and "shit" closely resemble each other. I'm guessing it's a macro which concatenates the two expletives for use in the code.

Re: Linux kernel swear counts

#6
post #5

With people like Linus Torvalds at the helm of the project, what else can be expected?

That's a little harsh. Yes he has a tendency to be - erm, 'vehement' about the quality of code, but there is no one else anyone would rather have at the helm of the kernel project.

Re: Linux kernel swear counts

#8
post #4

There is an area around 2.4.36.5 where the fall and rise of "fuck" and "shit" closely resemble each other. I'm guessing it's a macro which concatenates the two expletives for use in the code.

or a variable named 'fuckshit'

Re: Linux kernel swear counts

#9
I'm curious about the motivations for coding profanity. I've occasionally included comments like "don't f* with this unless you understand x, y, and z" in an attempt to protect fragile sections of code from careless collaborators. Nearly identical comments without profanity seemed ineffective. Within common conversations I know that profanity often carries an implication of violence, usually for the purpose of intimidation. I also find that profanity is frequently used for comedic relief.

Hopefully these counts don't indicate increasing fragility or violent disagreements within the kernel. Does anyone with kernel experience have any insight into common purposes for kernel profanity?

Re: Linux kernel swear counts

#10
Its worth looking at the scale of the swear count. Linux has about 16629976 lines of code, and I'd estimate from the graph that it has about 370* swear words (excluding penguin). If you look at the second graph, that is less then 1 swear in 300000 lines.

I checked this on the source tree for 3.8.0. The numbers appear to be inflated by allowing the swear words to be part of other words.

For example, "shit" appears in 121 lines, but " shit " only appears in 10 lines. Looking at the offending lines, there is only one swearword that is missed by excluding spaces.

"fuck" appears 29 times, all of which are some conjugation of the verb (and some lines have duplicates I'm not counting).

"crap" appears 161 times, 20 of which are part of "scrap"

"bastard" appears 17 times, 6 of which go to email addressed hosted at "lazybastard.org" and "you-bastards.com"

"penguin" appears 99 times, two of which are jokes.

Post reply on HN