Jan Brosius  <[EMAIL PROTECTED]>  writes

B> E.g. if one uses GHC to compile Haskell code into native code what
B> speed performance can be expected versus a same program written in
B> C  [..]

M> [..]
M> In other, average case, I expect the ratio of  6-10.

B> This seems that Haskell cannot be considered as a language for real world
B> applications but merely 
B> as a toy for researchers .


If the "real world application" is, say, only to mutltiply 10^6 
`float' matrices of size 40 x 40, then FORTRAN is the best.
If the application has to perform some non-trivial symbolic 
computations, then Haskell is better than C - even if Haskell was 
slower 100 times.
Because in the latter case, the order of the algorithm cost matters
much more, and there appear many different non-trivial algorithmic 
solutions.

------------------
Sergey Mechveliani
[EMAIL PROTECTED]


Reply via email to