News for hackers. Stuff that matters.
Re:Destroying C with 20 lines of Haskell: wc by hnlmorg on Tuesday February 04, 2020 @09:27AM (#22235839)
He's not handling unicode and it's been well demonstrated in the past that unicode handling adds a lot to computation time in tests like these (it often comes up in grep benchmarks too).

I'd be interested to see the same tests but with a non-unicode local set, IIRC:

    LC_ALL=C
I'd wager the C version would perform much better in that test.
Re:Destroying C with 20 lines of Haskell: wc by jstimpfle on Tuesday February 04, 2020 @09:37AM (#22235954)
Don't forget to export the variable, or run like "LC_ALL=C wc ...", or otherwise the locale won't apply.