HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
Freaky
cw
Rust2021–2021
Freaky / cw

cw

A Rust wc clone

2Distinct people
2Mentions
0Explicit recommenders
107GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A Rust wc clone

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day2 dated mentions

Observed mentions: 2021-03-09 16:08:41 UTC to 2021-03-24 07:03:09 UTC.

012021-03-09 00:00:00 UTC to 2021-03-10 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 92021-03-10 00:00:00 UTC to 2021-03-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-11 00:00:00 UTC to 2021-03-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-12 00:00:00 UTC to 2021-03-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-13 00:00:00 UTC to 2021-03-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-14 00:00:00 UTC to 2021-03-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-15 00:00:00 UTC to 2021-03-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-16 00:00:00 UTC to 2021-03-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsMar 162021-03-17 00:00:00 UTC to 2021-03-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-18 00:00:00 UTC to 2021-03-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-19 00:00:00 UTC to 2021-03-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-20 00:00:00 UTC to 2021-03-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-21 00:00:00 UTC to 2021-03-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-22 00:00:00 UTC to 2021-03-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-23 00:00:00 UTC to 2021-03-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-03-24 00:00:00 UTC to 2021-03-25 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 24

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Mar 92021-03-09 00:00:00 UTC2021-03-10 00:00:00 UTC101
Mar 102021-03-10 00:00:00 UTC2021-03-11 00:00:00 UTC000
Mar 112021-03-11 00:00:00 UTC2021-03-12 00:00:00 UTC000
Mar 122021-03-12 00:00:00 UTC2021-03-13 00:00:00 UTC000
Mar 132021-03-13 00:00:00 UTC2021-03-14 00:00:00 UTC000
Mar 142021-03-14 00:00:00 UTC2021-03-15 00:00:00 UTC000
Mar 152021-03-15 00:00:00 UTC2021-03-16 00:00:00 UTC000
Mar 162021-03-16 00:00:00 UTC2021-03-17 00:00:00 UTC000
Mar 172021-03-17 00:00:00 UTC2021-03-18 00:00:00 UTC000
Mar 182021-03-18 00:00:00 UTC2021-03-19 00:00:00 UTC000
Mar 192021-03-19 00:00:00 UTC2021-03-20 00:00:00 UTC000
Mar 202021-03-20 00:00:00 UTC2021-03-21 00:00:00 UTC000
Mar 212021-03-21 00:00:00 UTC2021-03-22 00:00:00 UTC000
Mar 222021-03-22 00:00:00 UTC2021-03-23 00:00:00 UTC000
Mar 232021-03-23 00:00:00 UTC2021-03-24 00:00:00 UTC000
Mar 242021-03-24 00:00:00 UTC2021-03-25 00:00:00 UTC101

What Hacker News says

2 sources
`cw` repo is https://github.com/Freaky/cw `bat` is definitely a `cat` replacement as it has the essential functionality of concatenating files. The automatic paging is only for printing to standard output and it doesn't meddle with this functionality. By the way, zsh built-in pager (invoked with `<`) has this behavior. It prints output to display but it pipes it to an actual pager if size is large.
In I use `exa` instead of `ls` on Linux
Having written a Rust wc implementation a few years ago (https://github.com/Freaky/cw), I had a look at theirs. It's pretty naive - a simple linewise read_until loop, a conditional to avoid word splitting and such if it's not needed, and for some reason it collects results into an array and prints when it's done rather than printing as it goes. It doesn't support --files0-from like GNU wc, so isn't a drop-in replacement from that perspective. It also has the sadly common Rust trope of only supporting filenames that are valid UTF-8. It doesn't seem overly slow considering its simplicity - usually trading blows with GNU and BSD wc. Perhaps the most glaring omission is the lack of a fast path for -c, which should reduce to a stat() call. Also unfortunate not to use the excellent bytecount crate to provide a very fast -l/m path. The read_u
Read the rest
ntil loop also makes its memory use unpredictable compared with other wc's. If you run it on /dev/zero it will try to eat your computer.
In Debian Running on Rust Coreutils

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.