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
20082026
-
…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 -
…| 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 -
…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 -
…look at the code as a base for a bespoke prompt :P [0]: https://github.com/jorgebucaran/hydro [1]: https://github.com/AlDanial/cloc
comment by Tmpod · 2025-06-24 · in Starship: A minimal, fast, and customizable prompt for any shell -
Looks like https://github.com/AlDanial/cloc
comment by wonger_ · 2025-06-05 -
▲ 2
Show HN: Plot lines of code over time in Git repositoriesstory by genericspammer · 2025-05-20 · 0 comments
-
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…
comment by fragmede · 2025-05-17 · in After months of coding with LLMs, I'm going back to using my brain -
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) -------------------------------------------------------------------------------…
comment by CuriouslyC · 2025-05-16 · in After months of coding with LLMs, I'm going back to using my brain -
…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 -
/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…
comment by James_K · 2024-11-13 · in Kibi – A text editor in less than 1024 lines of code, written in Rust -
…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 -
…“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 -
▲ 1
Cloc: Count lines (blank, comment, and physical) of source codestory by sea-gold · 2024-07-15 · 0 comments
-
They're probably referring to cloc the counting tool. https://github.com/AlDanial/cloc
comment by sukruh · 2024-02-12 · in Questioning "The Value of Open Source Software" -
…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) ----------------------------------------------------------…
comment by Bogdanp · 2024-02-07 · in Show HN: Franz – A desktop client for Apache Kafka -
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 -
…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) -----------------------------------------------------------…
comment by bayindirh · 2023-06-28 · in Testing the memory safe Rust implementation of Sudo/Su -
▲ 1
Show HN: Cloc as a Servicestory by zufallsheld · 2023-05-21 · 0 comments
-
…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) -
…_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) -----------------------------------------------------…
comment by nuc1e0n · 2023-01-22 · in Google Fuchsia OS team affected by layoffs -
…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) --------------------------------------------------------------…
comment by capableweb · 2023-01-12 · in Ask HN: Who’s using Ruby for web development, without Ruby on Rails? -
…[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) ------------------------------------------------------------------…
comment by commandersaki · 2022-12-11 · in Haskell, Ada, C++, Awk: An Experiment in Prototyping Productivity (1994) [pdf] -
…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) ----------------------------------------------------------…
comment by ChrisMarshallNY · 2022-10-16 · in Protein interface – how to change aproach to building software? -
▲ 1
Cloc – counts blank lines, comment lines, and physical lines of source codestory by kevinslin · 2022-05-07 · 0 comments
-
Huh, I feel somewhat old: https://github.com/AlDanial/cloc
comment by Jach · 2021-11-16 · in Show HN: Mako – a full Bitcoin implementation in C -
…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) --------------------------------------------------------------…
comment by jcelerier · 2021-09-02 · in System76 Pangolin Linux-first laptop with AMD internals now in stock -
…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) -----------------------------------------------------------…
comment by capableweb · 2021-04-20 · in A curated list of JavaScript tooling not written in JavaScript -
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.
comment by oddlama · 2021-04-01 · in Show HN: Simplenetes – I replaced Kubernetes with 17k lines of shell script -
…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 -
…): $ 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 -
…$ 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 -
…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 -
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.…
comment by baby · 2017-10-08 · in Show HN: A simple, fast and user-friendly alternative to find, written in Rust -
…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 -
…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
comment by suls · 2017-05-23 · in Ask HN: How do you become productive in a new project as a senior developer? -
…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) -----------------------------------------------------------…
comment by andreaorru · 2016-11-28 · in LaiNES – Cycle-accurate NES emulator in around 1000 lines of code -
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 -
▲ 6
Show HN: A remote team visualization toolstory by Bogdanp · 2016-07-16 · 6 comments
-
…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) ------------------------------------------------------------…
comment by lomnakkus · 2016-04-18 · in The story behind NetHack's first update since 2003