According to the Open Hub website, Linux has 37,016,567 lines of code, but this is small compared to NetBSD and OpenBSD, which have 72,065,568 and 81,902,070 lines of code, respectively.

Is there a reason why Linux has fewer lines of code compared to NetBSD and OpenBSD? I’d like to know.

  • steeznson@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    1 day ago

    One reason is that the coreutils in Linux use a lot of hacky or hard to read tricks to improve performance. OpenBSD explicitly wanted to make their source code more legible. FWIW I prefer the Linux approach.