Hacker GitHub

← All repos

AlDanial/cloc

View on GitHub ↗ ★ 23,642 Perl

cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.

39 mentions on Hacker News by 34 people: 5 stories, 34 comments · first 2016-04-18 · latest 2026-01-07

Mentions per year 39 mentions · busiest year 2024 (7)
20082026
  1. …ratatui_ruby % cloc . 888 text files. 584 unique files. 341 files ignored. github.com/AlDanial/cloc v 2.06 T=0.26 s (2226.1 files/s, 209779.6 lines/s) --------------------------------------------------------------------------
    comment by Kerrick · 2026-01-07 · in Claude Code CLI was broken
  2. …| grep error | wc -l 451 λ omarchy master Ɇ » cloc . 662 text files. 473 unique files. 253 files ignored. github.com/AlDanial/cloc v 2.06 T=0.07 s (6645.0 files/s, 133055.1 lines/s) ----------------------------------------------------------…
    comment by bsnnkv · 2025-10-22 · in A Word on Omarchy
  3. …of my comments are method/function/property headerdoc/docc labels. Here's the cloc on the middle project: github.com/AlDanial/cloc v 2.04 T=0.03 s (1319.9 files/s, 468842.4 lines/s) ----------------------------------------------------------…
    comment by ChrisMarshallNY · 2025-07-14 · in How I build software quickly
  4. …look at the code as a base for a bespoke prompt :P [0]: https://github.com/jorgebucaran/hydro [1]: https://github.com/AlDanial/cloc
  5. Looks like https://github.com/AlDanial/cloc
    comment by wonger_ · 2025-06-05
  6. ▲ 2
    Show HN: Plot lines of code over time in Git repositories
    story by genericspammer · 2025-05-20 · 0 comments
  7. Maybe better formatting would show it better to you. github.com/AlDanial/cloc v 2.04 T=0.05 s (666.3 files/s, 187924.3 lines/s) ---- Language files blank comment code ---- Python 24 1505 1968 5001 ---- Markdown 4 37 0 121 ---- Jinja…
  8. Not public on github, but here's the cloc for an easy 5k one day (10k is sweats). github.com/AlDanial/cloc v 2.04 T=0.05 s (666.3 files/s, 187924.3 lines/s) -------------------------------------------------------------------------------…
  9. …tps://github.com/LMDB/lmdb/blob/mdb.master/libraries/liblm... ) with ~8k of actual code (according to https://github.com/AlDanial/cloc ). Postgres's durable B-tree implementation ( https://github.com/postgres/postgres/tree/master/src/backen…
    comment by derefr · 2024-12-01 · in Fine, I'll Play With Skiplists
  10. /tmp/kibi % cloc . 98 text files. 89 unique files. 11 files ignored. github.com/AlDanial/cloc v 1.96 T=0.05 s (1936.6 files/s, 82405.1 lines/s) ------------------------------------------------------------------------------- Language files…
  11. …around it. - [SLOCCount](https://www.dwheeler.com/sloccount/) the original sloc counter - [cloc](https://github.com/AlDanial/cloc), inspired by SLOCCount; implemented in Perl for portability - [gocloc](https://github.com/hhatto/gocloc) a…
    comment by boyter · 2024-07-29 · in Counting Lines of Code
  12. …“one file for every class” thing, but I still like to keep my files relatively small, if I can. [0] https://github.com/AlDanial/cloc
    comment by ChrisMarshallNY · 2024-07-29 · in Counting Lines of Code
  13. ▲ 1
    Cloc: Count lines (blank, comment, and physical) of source code
    story by sea-gold · 2024-07-15 · 0 comments
  14. They're probably referring to cloc the counting tool. https://github.com/AlDanial/cloc
  15. …FranzCross core/ manual/ --include-lang=swift,racket 355 text files. 244 unique files. 419 files ignored. github.com/AlDanial/cloc v 1.98 T=0.06 s (2511.1 files/s, 383637.1 lines/s) ----------------------------------------------------------…
  16. I suspect you'd get much more useful results by checking out the version tags and running `cloc` - https://github.com/AlDanial/cloc
    comment by pcthrowaway · 2023-10-10 · in Postgres: The next generation
  17. …unique files. 453 files ignored. 1 error: Line count, exceeded timeout: ./vendor/proc-macro2/src/parse.rs github.com/AlDanial/cloc v 1.86 T=9.67 s (320.2 files/s, 208065.8 lines/s) -----------------------------------------------------------…
  18. ▲ 1
    Show HN: Cloc as a Service
    story by zufallsheld · 2023-05-21 · 0 comments
  19. …it's interesting for you too [3]. [0] https://store.steampowered.com/app/2168330/Helmscape/ [1] https://github.com/AlDanial/cloc [2] https://luau-lang.org [3] https://twitter.com/kineticpoet/status/1619508466212831232
    comment by cloudmike · 2023-01-29 · in Take more screenshots (2022)
  20. …_crates/vendor/tuf-0.3.0-beta11/src/metadata.rs Line count, exceeded timeout: ./tools/auto_owners/src/main.rs github.com/AlDanial/cloc v 1.90 T=142.47 s (328.0 files/s, 107722.2 lines/s) -----------------------------------------------------…
  21. …Full `cloc` report in case someone is curious: 4268 text files. 3839 unique files. 511 files ignored. github.com/AlDanial/cloc v 1.96 T=1.25 s (3079.1 files/s, 434339.6 lines/s) --------------------------------------------------------------…
  22. …[0]. Here is cloc run against the repo: $ cloc . 75 text files. 75 unique files. 12 files ignored. github.com/AlDanial/cloc v 1.90 T=0.08 s (788.1 files/s, 271069.0 lines/s) ------------------------------------------------------------------…
  23. …cloc output for the Swift iOS project I'm working on now: 54 text files. 54 unique files. 0 files ignored. github.com/AlDanial/cloc v 1.92 T=0.06 s (863.2 files/s, 477430.9 lines/s) ----------------------------------------------------------…
  24. ▲ 1
    Cloc – counts blank lines, comment lines, and physical lines of source code
    story by kevinslin · 2022-05-07 · 0 comments
  25. Huh, I feel somewhat old: https://github.com/AlDanial/cloc
  26. …the ripgrep repo and it tells me 28k loc ? $ cloc . 193 text files. 170 unique files. 114 files ignored. github.com/AlDanial/cloc v 1.88 T=1.88 s (73.3 files/s, 25634.5 lines/s) --------------------------------------------------------------…
  27. …following results: $ cloc . --exclude-dir test 16921 text files. 14173 unique files. 7043 files ignored. github.com/AlDanial/cloc v 1.88 T=35.06 s (354.1 files/s, 160714.9 lines/s) -----------------------------------------------------------…
  28. You might enjoy having a look at https://github.com/AlDanial/cloc It can distinguish between actual lines of code, comments and empty lines for a lot of different languages.
  29. …https://www.unrealengine.com/en-US/ue4-on-github Did a quick `cloc` run of the codebase, shows the following: github.com/AlDanial/cloc v 1.84 T=86.60 s (949.0 files/s, 297044.5 lines/s) ------------------------------------------------------…
    comment by capableweb · 2020-05-14 · in A first look at Unreal Engine 5
  30. …): $ cloc build/ ldap/ editor/ mailnews/ mail/ 3938 text files. 3848 unique files. 949 files ignored. github.com/AlDanial/cloc v 1.80 T=6.01 s (497.6 files/s, 127309.9 lines/s) ---------------------------------------------------------------…
    comment by sciurus · 2019-01-02 · in Thunderbird in 2019
  31. …$ cloc puppet-prometheus-5.0.0 puppet-grafana-4.2.0 192 text files. 157 unique files. 48 files ignored. github.com/AlDanial/cloc v 1.76 T=1.09 s (131.9 files/s, 10534.0 lines/s) --------------------------------------------------------------…
    comment by justinsaccount · 2018-05-01 · in Operator Framework: Building Apps on Kubernetes
  32. …cloc --vcs=git --exclude-dir vendor,example,contrib . 290 text files. 278 unique files. 121 files ignored. github.com/AlDanial/cloc v 1.74 T=0.82 s (295.4 files/s, 48117.2 lines/s) -----------------------------------------------------------…
    comment by cookiecaper · 2018-05-01 · in Operator Framework: Building Apps on Kubernetes
  33. I've always used cloc instead of tokei: https://github.com/AlDanial/cloc I use "x" in oh-my-zsh plugins instead of una. https://github.com/robbyrussell/oh-my-zsh/tree/master/plugin... I use "ag" instead of ripgrep.…
  34. …it's own implementation is probably 1350 lines at max. This would also probably include bugs in cloc. github.com/AlDanial/cloc v 1.70 T=2.86 s (433.6 files/s, 67570.0 lines/s) ----------------------------------------------------------------…
    comment by arunc · 2017-09-12 · in Mal – Make a Lisp, in 68 languages
  35. …you'll earn the trust required to make an impact in the future. [1] http://cloc.sourceforge.net and https://github.com/AlDanial/cloc [2] http://pmd.sourceforge.net/pmd-4.3.0/cpd.html
  36. …boost nes_apu Sound_Queue.* [andrea@manhattan src]$ cloc . 24 text files. 24 unique files. 1 file ignored. github.com/AlDanial/cloc v 1.70 T=0.03 s (780.3 files/s, 63170.2 lines/s) -----------------------------------------------------------…
  37. 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…
    comment by no_protocol · 2016-10-31 · in Minoca OS: A new open source operating system
  38. ▲ 6
    Show HN: A remote team visualization tool
    story by Bogdanp · 2016-07-16 · 6 comments
  39. …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) ------------------------------------------------------------…