News for hackers. Stuff that matters.
Re:Why I’m Using C by mroche on Friday March 13, 2020 @10:38AM (#22567567)
The GitHub counters are not always accurate. 97.3% (if going by C (imp+header) and Assembly) of the kernel is written in C, with the rest being written in Assembly. Everything else is config files, scripts, tests, or docs. GitHub reports C++ and Objective-C; those are just .h header files.

Update: Got to my system so I could actually look at available files accurately:

  C Implementation (.c): 28269
  C Header (.h): 20250
  Asm (.S): 1323
Edits: Update section and removing "100% in C" and "5 sources files of assembly"
Re:Why I’m Using C by clarry on Friday March 13, 2020 @11:01AM (#22567768)
Eh, find -iname '*.s' in kernel source tree finds more than a thousand files and half a million lines in them.
Re:Why I’m Using C by mroche on Friday March 13, 2020 @11:21AM (#22567951)
I wasn't at my system when I wrote that and just checked (5 is way off the mark there). Should have followed my own advice and not used GitHub's counters :P

The counter reports 1.2%, but if you click on that to show Assembly files it only reported 5 code results (it's not actually showing all Assembly, so you then have to click on "Unix Assembly" on the side).