small and compact ghc distribution

2008-05-14 Thread leledumbo
Currently, GHC distribution is VERY BIG (about 410 MB). 2 Things that I noticed which contributed most of this problem are: libraries (about 220 MB) and GCC and friends compiler (including perl, ar, as, ld, etc). I'm a college student and I just want to learn functional programming with Haskell.

RE: laziness, memoization and inlining

2008-05-14 Thread Simon Peyton-Jones
Scott | I'm experiencing some undesirable performance behavior, I suspect from | inlining things that shouldn't be, defeating my memoization attempts. This is bad, very bad. I think Don is right. I believe the following is happening. In your main program you have do let mesh = memoMesh

Re: small and compact ghc distribution

2008-05-14 Thread leledumbo
Bulat Ziganshin-2 wrote: 1. you can use winhugs - it's more user-friendly. and need only ~10mb in stripped installation That's what I'm using for now, but I need GHC's compilation capability. Bulat Ziganshin-2 wrote: 2. you can try to delete all the unneeded libs from ghc distro. in

Re: How MD are .hi files?

2008-05-14 Thread Simon Marlow
Matthias Kilian wrote: Hi, for an unregisterised ghc-6.8.2 (or newer), are the .hi files dependent (except for the 32 vs. 64 bit word size)? I had a quick look at the stuff in compiler/iface, but the only MD part I found was that 32/64 bit difference. The word size is probably the only

How do I check the optimisation level of the built-in splitAt? Is something other than -O2 giving me my speed increase?

2008-05-14 Thread Richard Kelsall
Hello Glasgow-Haskell Users, It was suggested to me in this thread in Haskell-Cafe http://www.haskell.org/pipermail/haskell-cafe/2008-May/042797.html which was a subsidiary of a previous thread http://www.haskell.org/pipermail/haskell-cafe/2008-April/042155.html that there might be some

Re: laziness, memoization and inlining

2008-05-14 Thread Scott Dillard
Simon, Don, You're right. -fno-state-hack fixed it. I've opened a trac ticket. Program and test data are there. http://hackage.haskell.org/trac/ghc/ticket/2284 Scott On Wed, May 14, 2008 at 1:48 AM, Simon Peyton-Jones [EMAIL PROTECTED] wrote: Scott | I'm experiencing some undesirable

Re: Performance: Faster to define a function writing out all arguments?

2008-05-14 Thread Alexander Fuchs
Hi. Simon Peyton-Jones wrote: | I've definitely run into the odd other case where point-freeing | a bit of code messes with the complexity. That should not happen -- except for the state-hack. Which is this: Consider f1 :: Char - IO () f1 = \c. let i = ord c in \s. print i s

Re: How MD are .hi files?

2008-05-14 Thread Matthias Kilian
On Wed, May 14, 2008 at 11:35:36AM +0100, Simon Marlow wrote: for an unregisterised ghc-6.8.2 (or newer), are the .hi files dependent (except for the 32 vs. 64 bit word size)? I had a quick look at the stuff in compiler/iface, but the only MD part I found was that 32/64 bit difference. The