Skip to content

Comment on Destroying C with 20 lines of Haskell: wc

Comments

He is comparing a multi-threaded haskell version against a single-threaded C version???

"...There’s also a parallel version that relies on the monoidal structure of the problem a lot, and that one actually beats C"

coreutils wc is single-threaded, just checked.

  But that post left me wondering: is it possible to do better without resorting to parallel processing?
  Turns out the answer is yes.
From the introduction

Yes, your skimming was inaccurate.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.