Had a curious question about how much of Linux (as a usable distribution, not just the kernel) is coded in each language. I can find some older or vague references without citation that Linux is largely coded in C and C++, with a fraction of a percent coded in other languages. While the source is available, I'm not sure how would one go about determining the percentage of CentOS coded in each language (either by lines of source code or by RPM package). Anyone have any suggestions for determining this info? Someone already have the answer? Thanks, --B
On Feb 15, 2018, at 2:14 PM, Blake Hudson <blake at ispn.net> wrote:> > Anyone have any suggestions for determining this info?Unpack all of the sources somewhere, then run SLOCCount on the tree: https://www.dwheeler.com/sloccount/
Jonathan Billings
2018-Feb-16 13:04 UTC
[CentOS] Percentage of CentOS coded in each language
On Thu, Feb 15, 2018 at 03:14:28PM -0600, Blake Hudson wrote:> Had a curious question about how much of Linux (as a usable distribution, > not just the kernel) is coded in each language. I can find some older or > vague references without citation that Linux is largely coded in C and C++, > with a fraction of a percent coded in other languages. > > While the source is available, I'm not sure how would one go about > determining the percentage of CentOS coded in each language (either by lines > of source code or by RPM package). Anyone have any suggestions for > determining this info? Someone already have the answer?You might also be able to use package metadata to determine what language it is written in, both by the dependencies as well as the file lists. Unfortunately, it will require quite a bit of data collection and research. -- Jonathan Billings <billings at negate.org>