> On Mar 26, 2021, at 4:03 AM, Ulrich Lauther <ulrich.laut...@t-online.de>
> wrote:
>
> On Thu, Mar 25, 2021 at 10:30:57PM -0400, Larry Kollar wrote:
>> Sometimes, my Twitter feed coughs up some cool articles, like
>> this one: "Performance comparison: counting words in Python,
>> Go, C++, C, AWK, Forth, and Rust”
>>
>> https://benhoyt.com/writings/count-words/
>>
>> The Awk solution was by far the shortest by line count. Since
>> the runtime for all the different solutions was a few seconds or
>> less, Awk was probably the fastest because it took the least time
>> to code. :D
>>
> What about "wc -w" ?
That just counts the aggregate number of words. This challenge
was to produce a sorted list of counts for each word.
It seems like I coded up something like that once, I think in my
first tech writing job, to see what words showed up most often.
If I did, it’s on a bit-rotted tape at the bottom of a box… somewhere.
— Larry