5 ms·
I ran `cloc` on the minoca/os repository, here are the results: github.com/AlDanial/cloc v 1.70 T=22.43 s (84.3 files/s, 63498.9 lines/s) ----------------
by no_protocol 10y ago
I ran `cloc` on the minoca/os repository, here are the results:
github.com/AlDanial/cloc v 1.70 T=22.43 s (84.3 files/s, 63498.9 lines/s)
-----------------------------------------------------------------------------------
Language files blank comment code
-----------------------------------------------------------------------------------
C 1023 296251 262652 530443
C/C++ Header 438 93833 117592 69529
Assembly 95 9588 7773 13383
make 270 2236 6402 4784
Bourne Shell 38 799 1198 2787
JSON 4 4 0 1367
Pascal 4 232 28 718
Python 4 194 257 589
yacc 2 99 4 481
awk 3 25 11 263
Markdown 3 27 0 172
Windows Resource File 3 18 0 86
lex 2 44 142 84
Perl 1 7 10 35
-----------------------------------------------------------------------------------
SUM: 1890 403357 396069 624721
-----------------------------------------------------------------------------------
- rattray 10y agotl;dr, ~625k source lines of code, mostly C, with a bunch of C++ and Assembly too?
- GrinningFool 10y agoAnd about 2:1 code to comment ratio in the C side, which seems pretty good to me (without poking at other projects for comparison)
- maddyboo 10y agoDoes it count blank comments? e.g. https://github.com/minoca/os/blob/master/kernel/io/iobase.c#L1023 https://github.com/minoca/os/blob/master/kernel/io/iobase.c#...
- dewyatt 10y agoI don't think there's any C++, it's just referring to the C headers above.
- johnp_ 10y agoShameless plug of `loc`, a rust implementation of `cloc` that is 100+ times faster: https://github.com/cgag/loc https://github.com/cgag/loc
- swah 10y ago... in Rust!
- kybernetyk 10y agoHas it any remarkable features other than "it's written in Rust"?
- steveklabnik 10y ago100x faster sounds like a remarkable feature to me. (I haven't tried this yet, though I do use tokei, which is faster but not this fast. Been meaning to try it out.)
- serge2k 10y ago> that is 100+ times faster is that not enough?
- ams6110 10y agoDepends on how slow cloc is. 100x faster than "already very fast" is not going to be a perceptible benefit.
- steveklabnik 10y agoThe readme talks about dragonfly BSD's codebase; almost two minutes for cloc, just over one second for loc. That's a noticeable difference.
- kybernetyk 10y agoBut how often do you cloc the BSD codebase? I do clocs maybe once a week. So waiting for 2 minutes isn't really a huge issue here. (Well, it's less than 2 minutes for my code bases). Smells like premature optimization ;)