RE: Haskell profiling and performance

2004-04-08 Thread Simon Peyton-Jones
That's unexpected to me at least. We'll investigate. But probably not until after Easter. If you can send a program (smaller the better) that demonstrates this performance difference, we'd make much faster progress. Simon | -Original Message- | From: [EMAIL PROTECTED]

Re: What means MutVar# ?

2004-04-08 Thread Sven Panne
Hans Nikolaus Beck wrote: [...] I've readed tha writeIORef (and readIoRef etc) is used to write directly to memory places fo implementing variables, as in example in HOpenGL used. Is this also Haskell standard ? Huh? I'm not sure what you mean exactly, but with the help of unsafePerformIO and a

Re: unsafePerformIO

2004-04-08 Thread George Russell
Sven Panne wrote: Huh? I'm not sure what you mean exactly, but with the help of unsafePerformIO and a pragma for clever compilers you can simulate something like a global variable in Haskell. Here an excerpt from the GLUT menu handling module: {-# NOINLINE theMenuTable #-} theMenuTable ::