Lines by C vs Rust
Lines by C vs Rust
Posted Feb 9, 2026 22:24 UTC (Mon) by jhoblitt (subscriber, #77733)In reply to: Lines by C vs Rust by daroc
Parent article: Development statistics for 6.19
That is actually more rust than I would have expected (even excluding vendored crates). Another interesting angle would be to try to normalize based on the expected LOC density ratio between C and rust. My expectation is that general purpose rust would have fewer SLOC than the equivalent C but I suspect the ratio would be different for kernel vs userland code. I went looking for a formal code density study comparing the two languages and found this paper from 2021: https://pmc.ncbi.nlm.nih.gov/articles/PMC7959618/
