groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interesting articles


From: Larry Kollar
Subject: Re: Interesting articles
Date: Sat, 3 Apr 2021 22:19:39 -0400


> On Mar 26, 2021, at 4:03 AM, Ulrich Lauther <ulrich.lauther@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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]