Wordcount III: Beating the system `wc`

Marton Trencseni - Fri 29 September 2023 • Tagged with c++, wc

In this follow-up to the previous article about writing a C++ version of the Unix command-line utility wc, I make some modifications to beat my system wc in performance tests.

wc

Continue reading

Wordcount II: Introducing a cleaner C++ class hierarchy to `wc`

Marton Trencseni - Sat 23 September 2023 • Tagged with c++, wc

In this follow-up to the previous article about writing a C++ version of the Unix command-line utility wc, I make the class structure more complicated to keep separate concerns and functionality in different C++ classes. The result ends up being significantly more complex than the original, but does not make the overall program easier to understand or modify.

wc

Continue reading

Wordcount I: Implementing the Unix command-line tool `wc` in modern C++

Marton Trencseni - Sun 10 September 2023 • Tagged with c++, wc

After reading the excellent book Beautiful C++ about the language's latest features, I implement the Unix command-line tool wc in modern C++.

Beautiful C++

Continue reading