in reply to Re: Using objects and basic types from other Perl interpreters transparently.
in thread Using objects and basic types from other Perl interpreters transparently.
this is a thread that exists in other interpreter?my $thread = threads->remote( "host:port" );
Well, to do that I think that I need to make a bidiretional communication between the RPO Server and the client. For now only the server wait's for inputs, and always send a response to the client, what make the execution of both sides synchronized. Or for now this can be done making the main thread/process as the server, and all the threads made from it, or any remote thread, will work as a client, since the real location of a shared variable is in the server side.
A bidiretional IPC will also enable a way to create a remote reference in the server side, let's say, a scalar in the server that points to a real scalar in the client. For now is only possible to make the oposite. And this will create something even more crazy, like have 2 clients, where the server points to a scalar in client 1, and the client 2 can get a reference to the remote scalar in the server, and when the client 2 access this reference it's actually accessing the client 1. So, is possible to create a network of remote objects without really know that!
But you already have some bidiretional socket system for forks, not? Maybe I can use it.
Graciliano M. P.
"Creativity is the expression of the liberty".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Using objects and basic types from other Perl interpreters transparently.
by liz (Monsignor) on Apr 12, 2004 at 15:27 UTC | |
by gmpassos (Priest) on Apr 12, 2004 at 19:02 UTC |