Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Is that a fact!

Yep it is a fact. Did you disprove it? No. The benchmark is right there in front of you showing that Haskell is taking 10x longer than C++.

> Is your fact also why the Pascal program includes a Pascal translation of simple_hash.h ?

What is your point? Haskell supporters often cite its speed and brevity in GPLS. Instead of using the bundled hash table, the fastest Haskell program needed to implement their own, losing out in brevity. If this is not indicative of a problem in GHC, then what is?



> Yep it is a fact. Did you disprove it? No. ... What is your point?

Listen and you might hear the point.

Initially, simple_hash.h was a basis for comparison across languages.

Initially, the obvious comparison was between Haskell and Clean, so it was obvious to translate the hash table from the Clean program.

Your speculation about why the Haskell program includes a hash table is wrong.


Actually you are wrong. Next time be sure to read the entire article before you make uninformed assumptions.

You've obviously missed important information such as this link below and unsurprisingly made a Haskell fanboy comment without verifying the truth to your statements.

http://www.haskell.org/haskellwiki/Shootout/Knucleotide#On_m...

>This benchmark is completely bottlenecked by Data.Hashtable (in GHC 6.4.1) and this discussion is based on the assumption that I am using Hashtable optimally...The entry below runs 16 slower than the DMD entry on my powerbook G4. Profiling shows the bottleneck. I downloaded simple_hash.h and shamelessly optimized it to replace Data.Hashtable for exactly this benchmark code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: