To see the reality of it.. a better example would be something without any support library...
Cherry picking is easy..
From the same benchmarks Game:
spectral-norm - Go
http://benchmarksgame.alioth.debian.org/u64/program.php?test...
spectral-norm - Haskell
http://benchmarksgame.alioth.debian.org/u64/program.php?test...
I didn't cherry-pick btw, I just went to the first benchmark which included community-written snippets of both Go and Haskell I could think of. Cherry-picking would be me intentionally skipping over examples such as the one you provided and instead posting my example.
FP tend to be more expressive, and make you feel more powerful.. but they also tend to be more complex and more verbose.. thats the price of power.. it's the trade of
I think its not enough to show something simple, but with the real complexity hidden in some hidden layers..
Also if line of code is the measure of simplicity the Brainfuck language would win everything.. but it doesnt mean you can read what the code express with less effort..
Nothing against Haskell in particular, only that it doesnt shine when the matter is simplicity..
Expressiveness.. Abstraction power.. shure.... but that was not the original point i was making in the original article
And they make curious examples of code-size when -- "Each program must implement 4 separate functions / procedures / methods like the C# program."
As a data point, here are links to the Haskell and Go implementations of the TechEmpower benchmarks:
Haskell (78 sloc)
https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...
Go (164 sloc)
https://github.com/TechEmpower/FrameworkBenchmarks/blob/mast...