RE: GHC and Cygwin/MinGW

2006-04-14 Thread Simon Peyton-Jones
Were always on the lookout for some Cygwin-savvy person to do this. There should be nothing difficult in principle, but probably quite a lot of delicate details like fixing backslash directions. Simon Also, any ideas how difficult a Cygwin port of GHC would be? Tips would be

Optimization Destructive Updates

2006-04-14 Thread Lajos Nagy
I was just musing the other day about the possibility of allowing (efficient and transparent) destructive updates in certain situations. Take the following (giberish) example: f xs = g xs [] where g [] ac = ac g (x1:x2:xs) ac = g xs (ac ++ [x2,x1]) It seems to me that the list

Re: Optimization Destructive Updates

2006-04-14 Thread Robin Bate Boerop
I am interested in better understanding what optimizations of this sort GHC performs. I second Lajos's question. I sometimes write code using StateMonad, and expect some destructive updates. Judging by the performance of the resulting executable, the updates are nondestructive. (But,

Re: Optimization Destructive Updates

2006-04-14 Thread Robert Dockins
On Apr 14, 2006, at 12:25 PM, Lajos Nagy wrote: I was just musing the other day about the possibility of allowing (efficient and transparent) destructive updates in certain situations. Take the following (giberish) example: f xs = g xs [] where g [] ac = ac g (x1:x2:xs) ac = g