[Haskell-cafe] speed: ghc vs gcc

Thomas Davie tom.davie at gmail.com
Fri Feb 20 13:02:28 EST 2009


On 20 Feb 2009, at 18:37, Bulat Ziganshin wrote:

> Hello Thomas,
>
> Friday, February 20, 2009, 8:22:33 PM, you wrote:
>
>>> doesn't matter for testing speed
>
>> okay then, I wrote a faster Haskell version:
>
>> main = print "Hello world"
>
> for you, any language will be fast enough :D

No C was very slow, I've been waiting for this implementation to  
terminate for over an hour now:

int main (int argc, char ** argv)
{
     while (1) { }
     printf ("1234567890");
}



More information about the Haskell-Cafe mailing list