[gambit-list] Termite questions
Marc Feeley
feeley at iro.umontreal.ca
Thu Mar 12 09:49:19 EDT 2009
Here's another introduction to termite, with examples, which you might
find useful.
http://theschemeway.blogspot.com/2007/04/introduction-to-termite.html
Marc
On 12-Mar-09, at 2:13 AM, Neil Baylis wrote:
> OK, looking back in history a bit, I see this is the right place, so
> here goes:
>
> I'm just getting started with a distributed project, and don't want
> to learn Erlang at the moment. Termite seemed the logical choice,
> since I have some familiarity with Gambit.
>
> So, I have a couple of computers running Gambit 4.3 with Termite
> installed in their lib directories. I installed the tsi script, and
> it starts up correctly. When I run the examples in termite.pdf, they
> seem to do the right thing.
>
> However, I don't understand how to get communication between two
> computers working. Can someone point me to a simple example that
> shows how to start up Termite on two computers and get them to talk
> to each other?
>
> When I tried the remote-spawn example below, I thought it was
> working. But I killed the Termite on the remote machine, and the
> example code still did exactly the same thing. It seemed the process
> got spawned on the local computer, even though I specified the IP
> address of the remote one.
>
> > (define node (make-node "192.168.1.71" 3000))
> > (node-init node)
>
> > (let ((me (self)))
> (remote-spawn node
> (lambda ()
> (! me ’boo))))
> #<thread #2>
>
> > (?)
> boo
> >
>
> Thanks,
>
> Neil Baylis
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
More information about the Gambit-list
mailing list