3 ms·
> Of course you can tweak things to be fast in hakell, but to be able to actually program haskell in such a way to, beat other languages in performance, is not
by username223 13y ago
> Of course you can tweak things to be fast in hakell, but to be able to actually program haskell in such a way to, beat other languages in performance, is not a trivial skill.
No kidding:
http://benchmarksgame.alioth.debian.org/u64/program.php?test=regexdna&lang=ghc&id=2
It's mostly a matter of knowing C, then knowing how to torture GHC into doing what the C would do.
- copergi 13y agoLinking to the benchmark game as if it means something should be a bannable offense. When you look at something that encourages speed at all costs, that is what you will see. People do low level optimizations like that to gain 0.5% better performance. That does not mean you need to do anything like that to get good performance.
- igouy 13y ago> That does not mean you need to do anything like that to get good performance. Please contribute your Haskell regex-dna program that does not do anything like that and get's "good" performance. Here's the task description: http://benchmarksgame.alioth.debian.org/u64/performance.php?test=regexdna#about http://benchmarksgame.alioth.debian.org/u64/performance.php?... Here's "How to contribute programs": http://benchmarksgame.alioth.debian.org/play.php#contribute http://benchmarksgame.alioth.debian.org/play.php#contribute GHC 7.8.2 installed, cabal 1.2 stuff available as-needed.