Hello, world.

Simon Peyton-Jones simonpj at microsoft.com
Thu Feb 12 12:05:19 EST 2004


| main = do
|      hSetBuffering stdout NoBuffering
|      putStrLn "Hello, world."
| 
| ---
| 
| ... works on PowerPC :-).

Wow that's amazing.  This is really coming together fast.  Haskell
always astonishes me: we spent a month (Jan) with the entire back end in
bits, just writing code -- but once it type-checks it's nearly done.

I did a count_lines recently.  Here are the old relevant directories
(counting just PrimRep in prelude/):

		        code   comments
absCSyn                3271   1901
codeGen                3970   3591
nativeGen              9462   3617
prelude                 126    114

TOTAL:                16829   9223

	New code base

cmm                    1474    887
codeGen                5051   4317
nativeGen              7746   2539

TOTAL:                14271   7743

Pretty much every line of that 14k lines has been individually
re-written in the last month, even if a predecessor was there.  Even
remembering that there's a bit more to do on printing, plus a C-- parser
to come, this is looking pretty good.  Less code, much better structure
and functionality.

And once we've have the C-- parser we can get rid of a lot of the macros
in includes/

Simon



More information about the Cvs-ghc mailing list