Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone know how large the codebase is?


sloccount says:

    Totals grouped by language (dominant language first):
    ansic:       233396 (95.05%)
    cpp:           7250 (2.95%)
    yacc:          2846 (1.16%)
    perl:          1161 (0.47%)
    lex:            579 (0.24%)
    sh:             210 (0.09%)
    awk:             90 (0.04%)
    sed:             11 (0.00%)
EDIT: That's the recent version 3.6.0

EDIT#2: Here's the cloc output:

    https://github.com/AlDanial/cloc v 1.66  T=1.76 s (266.7 files/s, 181757.6 lines/s)
    ---------------------------------------------------------------------------------------
    Language                             files          blank        comment           code
    ---------------------------------------------------------------------------------------
    C                                      271          24996          32675         220107
    C/C++ Header                           159           2950           4398          18318
    C++                                      5           1033           1097           6070
    yacc                                     2            320            146           2846
    Perl                                    11            280            501           1171
    Windows Resource File                    5            164            175            909
    lex                                      2             37             58            484
    DOS Batch                                3             43             14            327
    R                                        1              8              6            287
    Bourne Shell                             4             34            118            214
    Windows Module Definition                2              7              0            141
    Pascal                                   3              2              0            137
    awk                                      1              6             58             90
    sed                                      1              0             12             11
    ---------------------------------------------------------------------------------------
    SUM:                                   470          29880          39258         251112
    ---------------------------------------------------------------------------------------


cloc (http://cloc.sourceforge.net/) improves over sloccount.


I believe this is the official git repository: https://github.com/NetHack/NetHack




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: