(Assuming (use mpi s11n))

(continuation-capture (lambda (x) (MPI:send (serialize `(process ,x)) dest tag 
comm)))

Where: 

  * x: the current continuation
  * `(process DATUM): a message in a hypothetical high-level protocol
     for process migration 
  * dest: the destination process ID (integer)
  * tag: unique message identifier (integer) or MPI_ANY_TAG (this
    again depends on the user-defined high-level protocol)
  * comm: MPI communicator object (created at the beginning of the
    program)
 

"Shawn Rutledge" <[EMAIL PROTECTED]> writes:

> On Tue, May 20, 2008 at 5:22 PM, Ivan Raikov <[EMAIL PROTECTED]> wrote:
>>  Well, of course, it is "possible" to implement anything in a
>> Turing-equivalent language, but I am curious what features of Erlang
>> or Termite are difficult to implement with MPI primitives and
>> Scheme. For example, "process migration" in Scheme MPI could be simply
>> passing a continuation from one node to another -- something that
>> would take one line of code using the s11n and mpi eggs in Chicken. My
>
> I'm curious what one line of code you would write.


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to