Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-22 Thread F. Wittenberger
Am Dienstag, den 20.05.2008, 15:49 +0200 schrieb Leonardo Valeri Manera: 2008/5/19 Mikael More [EMAIL PROTECTED]: Hi! I just emailed with Guillaume Germain, the author of Termite. He said it should be quite easy to port Termite to Chicken. Is anyone up for that? Me not really. But

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-21 Thread Mark Fredrickson
On May 20, 2008, at 8:04 PM, Ivan Raikov wrote: Answers embedded below: Alaric Snell-Pym [EMAIL PROTECTED] writes: Well, as far as I can tell, MPI seems to have a fairly static view of the world as having a fixed number of processes in it upon startup, so the following (in Erlang) comes

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-21 Thread Graham Fawcett
On Wed, May 21, 2008 at 9:39 AM, Mark Fredrickson [EMAIL PROTECTED] wrote: I do believe that one can start a new Erlang VM and add it to the cloud at any time, but I get the impression this is actually rare. With n cores, why not just start a VM on each core to begin with? A year or two ago,

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-21 Thread Ivan Raikov
It appears that I was wrong about not being able to start MPI processes dynamically. The MPI-2 standard does include a procedure MPI_Comm_spawn which can be used to create MPI processes from a master process. In fact, one of the main motivations for MPI-2 was to break free from the static

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Leonardo Valeri Manera
2008/5/19 Mikael More [EMAIL PROTECTED]: Hi! I just emailed with Guillaume Germain, the author of Termite. He said it should be quite easy to port Termite to Chicken. Is anyone up for that? Not me, though I'd love to see termite on chicken - erlang-style concurrency is win :) Cheers, Leo

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Ivan Raikov
There is already Erlang-style concurrency in Chicken via the MPI egg. -Ivan Leonardo Valeri Manera [EMAIL PROTECTED] writes: 2008/5/19 Mikael More [EMAIL PROTECTED]: Hi! I just emailed with Guillaume Germain, the author of Termite. He said it should be quite easy to port Termite

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Alaric Snell-Pym
On 20 May 2008, at 3:10 pm, Ivan Raikov wrote: There is already Erlang-style concurrency in Chicken via the MPI egg. IIRC there's more to it than that. As well as passing messages back and forth, Erlang also has mechanisms for passing uncaught exceptions in the top-levels of processes

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Leonardo Valeri Manera
2008/5/20 Ivan Raikov [EMAIL PROTECTED]: There is already Erlang-style concurrency in Chicken via the MPI egg. MPI is very nice Ivan - its not really the same kind of thing as Termite though. In any case, I can't use MPI in any of my projects - its straight GPL. Termite is BSD, so I'd like

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Ivan Raikov
Ok, can you show a Termite example that cannot be implemented with MPI? Leonardo Valeri Manera [EMAIL PROTECTED] writes: MPI is very nice Ivan - its not really the same kind of thing as Termite though. In any case, I can't use MPI in any of my projects - its straight GPL. Termite is

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Ivan Raikov
I am confused -- you talk about passing uncaught exceptions back to processes waiting for messages, and then you talk about preventing deadlock situations in a seemingly different scenario. Perhaps you would like to show some code examples? I don't know who is this process-management model and

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Leonardo Valeri Manera
2008/5/20 Ivan Raikov [EMAIL PROTECTED]: Ok, can you show a Termite example that cannot be implemented with MPI? I'm sure its possble to implement most if not all, but, termite provides those parts of the erlang model which make the message-passing model interesting already, without needing

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Alaric Snell-Pym
On 20 May 2008, at 3:16 pm, Alaric Snell-Pym wrote: IIRC there's more to it than that. As well as passing messages back and forth, Erlang also has mechanisms for passing uncaught exceptions in the top-levels of processes back to processes waiting for messages from that process... or something

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Ivan Raikov
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

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Alaric Snell-Pym
On 20 May 2008, at 3:27 pm, Ivan Raikov wrote: Perhaps you would like to show some code examples? I don't know who is this process-management model and why I care about it, but I would like to see some examples of actual working code that cannot be reproduced with the MPI library. Well, as

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Ivan Raikov
Ok, point taken about dynamic spawning of new processes. We have hot code loading and modules in Chicken. MPI has MPI_Disconnect,MPI_Wait and MPI_Test, which are not incorporated in the mpi egg, but could be used for monitoring process termination. The group communication facilities of MPI are

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Ivan Raikov
Answers embedded below: Alaric Snell-Pym [EMAIL PROTECTED] writes: Well, as far as I can tell, MPI seems to have a fairly static view of the world as having a fixed number of processes in it upon startup, Correct. This helps with communication transport optimizations -- when you create

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Shawn Rutledge
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

Re: [Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-20 Thread Ivan Raikov
(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

[Chicken-users] Anyone up for porting Termite to Chicken?

2008-05-19 Thread Mikael More
Hi! I just emailed with Guillaume Germain, the author of Termite. He said it should be quite easy to port Termite to Chicken. Is anyone up for that? Mikael ___ Chicken-users mailing list Chicken-users@nongnu.org