[Haskell-cafe] Haskell Cloud and Closures

2011-10-01 Thread Fred Smith
I've built a little program to compute the plus function remotely by
using Cloud Haskell:
http://pastebin.com/RK4AcWFM

but i faced an unfortunate complication, what i would like to do is to
send a function to another host, no matter if the function is locally
declared or at the top level.

In seems to me that in cloud haskell library the function's closures
can be computed only with top-level ones, is it possible to compute
the closure at runtime of any function and to send it to another host?

here's the code that i would like to compile:
http://pastebin.com/7F4hs1Kk


thank you all in advance!
Fred

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell Cloud and Closures

2011-10-01 Thread Fred Smith


On 1 Ott, 12:03, Erik de Castro Lopo mle...@mega-nerd.com wrote:
 I was at the Haskell Symposium where this paper was presented. This
 limitation is a known limitation and cannot currently be worked around
 other than my moving whatever is required to the top level.

 Erik
 --

do you know if there is another way either to compute the closure of a
function or to serialize it in order to send the computation to
another host?

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe