Re[2]: Common subexpression elemination (CSE)

2006-11-29 Thread Bulat Ziganshin
Hello Dinko, Wednesday, November 29, 2006, 11:56:49 AM, you wrote: How exactly can CSE cause space leaks, and what does this have to do with strictness? standard example is x = [1..9] ++ [1..9] comparing to x = a++a where a=[1..9] first version runs (without CSE transformation) in fixed

OpengGL lockup using GHC 6.6 on Intel Mac

2006-11-29 Thread Joe Jones
I just installed ghc 6.6 from MacPorts and am trying to use the Haskell ported NeHe OpenGL lessons to play with OpenGL. Unfortunately, when I load the lesson in ghci and then run main the screen turns to garbage and I am forced to power cycle the machine to get back to my desktop. It's not a

RE: TH - splicing with functions defined in the same source file

2006-11-29 Thread Simon Peyton-Jones
I think that in principle you can do this. I see three issues 1. You have to identify the CodeCutDecl points. 2. You have to compile all the code before your cut-point to byte-code, just in case it's invoked by a splice afterwards. This is in addition to compiling it to machine code