
On Tuesday 19 October 2010 13:23:40, David Virebayre wrote:
2010/10/17 Daniel Fischer
: $ cat helloWorld.hs module Main (main) where
main :: IO () main = putStrLn "Hello, World!" $ ghc --make helloWorld.hs [1 of 1] Compiling Main ( helloWorld.hs, helloWorld.o ) Linking helloWorld ... $ ls -l helloWorld -rwxr-xr-x 1 dafis users 618581 17. Okt 13:53 helloWorld
jhc makes remarkably small executables, this example takes 11268 bytes, 5756 when stripped.
Yes, JHC doesn't put a large runtime into the executables (and, as a whole programme compiler can remove more dead code than GHC can). Stripping GHC's helloWorld: -rwxr-xr-x 1 dafis users 377240 19. Okt 13:55 helloWorld
Sad that many libraries, and gtk2hs don't work with it.
What makes in unusable for me is that it doesn't yet have arbitrary precision integers (if that changes, the library problem might step in). I hope it gets proper Integers and better library support soon, it's quite an exciting project.
David.
Cheers, Daniel