Re: [Haskell-cafe] optimization of recursive functions

2013-02-15 Thread Andrew Polonsky
by GHC, avoiding calling f through a pointer because at the call site, we know what 'f' is (this is also mentionned in the blog post by Johan). On Wed, Feb 13, 2013 at 9:55 AM, Andrew Polonsky andrew.polon...@gmail.com wrote: Hello, Is there any difference in efficiency between these two

[Haskell-cafe] optimization of recursive functions

2013-02-13 Thread Andrew Polonsky
Hello, Is there any difference in efficiency between these two functions, when compiled with all optimizations? map f [] = [] map f (a:as) = f a : map f as and map f x = map' x where map' [] = [] map' (a:as) = f a : map' as Thanks, Andrew ___

Re: [Haskell-cafe] problems installing ghc-6.12.1-x86_64

2010-01-22 Thread Andrew Polonsky
On Thu, Jan 21, 2010 at 18:17, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Andrew Polonsky andrew.polon...@gmail.com writes: Help!!  I am trying to build 6.12 on a fresh 64-bit Ubuntu, with no GHC installed yet.  The compiler itself builds happily, but when I try to make install

[Haskell-cafe] problems installing ghc-6.12.1-x86_64

2010-01-21 Thread Andrew Polonsky
Dear all, Help!! I am trying to build 6.12 on a fresh 64-bit Ubuntu, with no GHC installed yet. The compiler itself builds happily, but when I try to make install the Haskell platform, I eventually get the error Setup: GLUT-2.1.1.2: dependency OpenGL-2.2.1.1-b638210d1627880d532e3b035b53bcd2