RE: STG to JavaScript translation

2007-09-20 Thread Simon Peyton-Jones
| > For example: | > | > f = | > let g = (THUNK h x) | > in (CONS g y) | > | > Is this exactly the same as (right variant following the paper) | > | > f = | > let g = (THUNK h x) | > in let freshvar = (CONS g y) | > in freshvar Yes that's right. The only problem with the latter is t

RE: ANNOUNCE: GHC 6.8.1 Release Candidate

2007-09-20 Thread Simon Peyton-Jones
thanks for reporting this -- it's fixed now. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On | Behalf Of [EMAIL PROTECTED] | Sent: 14 September 2007 21:46 | To: [EMAIL PROTECTED] | Cc: glasgow-haskell-users@haskell.org | Subject: Re: ANNOUNCE: GHC 6.8.1 R

Re: combination not supported: Threaded/Profiling when building NDP library

2007-09-20 Thread shelarcy
Hello Ben, On Tue, 18 Sep 2007 18:21:35 +0900, Ben Gaster <[EMAIL PROTECTED]> wrote: > Having read the papers on Nested Data Parallelism in the Haskell I > wanted to play around with the de-sugared implementation in the GHC > library NDP. I have built GHC from source, on RHE5, and then installed >

Re: STG to JavaScript translation

2007-09-20 Thread Victor Nazarov
> Read our paper "Faster laziness using dynamic pointer tagging"! It's new > (ICFP'07) > http://research.microsoft.com/~simonpj/papers/ptr-tag/index.htm > > simon > Cool, is it implemented in 2.8? Function tagging seems promising for performance. But it isn't implementable in JavaScript :) I ha

RE: combination not supported: Threaded/Profiling when building NDP library

2007-09-20 Thread Ben Gaster
H Shelarcy, Thanks for your reply. I have removed the -threaded when building the library and now everything builds correctly and the examples are all working. However, I would like to explore porting the library to use a small FFI library which will allow exporting flattened data parallel operat

RE: STG to JavaScript translation

2007-09-20 Thread Simon Peyton-Jones
| Cool, is it implemented in 2.8? Function tagging seems promising for | performance. But it isn't implementable in JavaScript :) I think it'll be in GHC 6.8. | I have one more question. There are know calls (saturated | applications) and unknown calls in STG. Is this information is encoded | in

type families + GADT = type unsafety?

2007-09-20 Thread Roberto Zunino
(Trac reports "database locked", posting here...) Here's unsafeCoerce: > type family Const a > type instance Const a = () > > data T a where T :: a -> T (Const a) > > coerce :: forall a b . a -> b > coerce x = case T x :: T (Const b) of >T y -> y And this indeed "works"... Here's t

Re: GHC 6.8.1 RC debugger only breaking on first evaluation of a function

2007-09-20 Thread Olivier Boudry
The touch and reload option works but breakpoints are lost in the reload. For the moment putting the instructions in a script seems to be the simplest solution. Thanks for all inputs, Olivier. ___ Glasgow-haskell-users mailing list Glasgow-haskell-user