[Haskell-cafe] Haskell Cloud and Closures

Erik de Castro Lopo mle+hs at mega-nerd.com
Sat Oct 1 12:03:43 CEST 2011


Fred Smith wrote:

> 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?

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
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Haskell-Cafe mailing list