News for hackers. Stuff that matters.
Re:Performance comparison: counting words in Python, Go, C++... by ngngngng on Monday March 15, 2021 @05:38PM (#26469478)
Last summer I was looking for a program that would tell me which shell commands last used in a specific directory. Because I had been reading "The Unix Programming Environment" it quickly occurred to me that the program I was looking for could easily be made from several existing commands. Only after I wrote the small script did I find that the solution already existed except it was >1000 lines of code, 20 github contributors, and utilized a sqlite database.

My one line has less features, but I'll take it.

Re:Performance comparison: counting words in Python, Go, C++... by themantri on Friday March 19, 2021 @12:56AM (#26510263)
Could you please share the one-liner? Thanks!
Re:Performance comparison: counting words in Python, Go, C++... by ngngngng on Friday March 19, 2021 @01:01AM (#26510277)