Invoking external processes/IPC
Hi all, I'm an occasional squeak/pharo dabbler, and I'm wondering what the recommended way of interacting with external processes is these days? Should I go through the process of getting all the VMMaker and OSProcess stuff, and build the OSProcess plugin, or is there some other way in Pharo to interact with the OS environment? Alternatively, are people doing something (easy) with IPC mechanisms like named sockets or TCP streams? The "project" I'm working on is putting figlet on a website, just for fun. Marcin -- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
On Mon, Aug 23, 2010 at 7:45 PM, Marcin Tustin <mm3@zepler.net> wrote:
Hi all,
I'm an occasional squeak/pharo dabbler, and I'm wondering what the recommended way of interacting with external processes is these days?
Should I go through the process of getting all the VMMaker and OSProcess stuff, and build the OSProcess plugin, or is there some other way in Pharo to interact with the OS environment?
Hi. Which OS are you? because I think OSProcess is not working on Windows. And I also think there are binaries for it, so you don't need to generate .c from VMMaker neither compile c code to binary. But I may be wrong. CommandShell ? Maybe using normal FFI or AlienFFI? They will let you invoke shared libraries of the OS from Pharo.
Alternatively, are people doing something (easy) with IPC mechanisms like named sockets or TCP streams?
The "project" I'm working on is putting figlet on a website, just for fun.
Marcin
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
Mariano, Thanks for this. I belive CommandShell depends on OSProcess. I am using windows, so I guess neither is a runner anyway. I'll try FFI/AlienFFI. Marcin On Mon, Aug 23, 2010 at 8:19 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
On Mon, Aug 23, 2010 at 7:45 PM, Marcin Tustin <mm3@zepler.net> wrote:
Hi all,
I'm an occasional squeak/pharo dabbler, and I'm wondering what the recommended way of interacting with external processes is these days?
Should I go through the process of getting all the VMMaker and OSProcess stuff, and build the OSProcess plugin, or is there some other way in Pharo to interact with the OS environment?
Hi. Which OS are you? because I think OSProcess is not working on Windows. And I also think there are binaries for it, so you don't need to generate .c from VMMaker neither compile c code to binary. But I may be wrong.
CommandShell ?
Maybe using normal FFI or AlienFFI? They will let you invoke shared libraries of the OS from Pharo.
Alternatively, are people doing something (easy) with IPC mechanisms like named sockets or TCP streams?
The "project" I'm working on is putting figlet on a website, just for fun.
Marcin
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
Following Mariano's advice, I just tried installing Alien (using Pharo-1.1-11406-rc3 with the Seaside RC3 image; this is a sane version, not affected by previous package loading problems). I loaded ConfigurationOfAlien (ConfigurationOfAlien-KenTreis.26) using Monticello, then executed ConfigurationOfAlien loadCore (as per the instructions). That resulted in an error: 'SystemDictionary>>recreateSpecialObjectsArray appears incompatible' raised from ensureInSpecialObjectsArray. The cause appears to be that Alien wants to be in the special objects array at 53, but the array is created to be size 50. Proceeding through the error results in the predictable subscript out of bounds error. running loadCore once more (second time) does the same thing. Doing it a third time results in a message not understood 'initScannerForTokenization' from Parser>>ParseSelector:. Any ideas? On Mon, Aug 23, 2010 at 8:41 PM, Marcin Tustin <mm3@zepler.net> wrote:
Mariano,
Thanks for this. I belive CommandShell depends on OSProcess. I am using windows, so I guess neither is a runner anyway. I'll try FFI/AlienFFI.
Marcin
On Mon, Aug 23, 2010 at 8:19 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
On Mon, Aug 23, 2010 at 7:45 PM, Marcin Tustin <mm3@zepler.net> wrote:
Hi all,
I'm an occasional squeak/pharo dabbler, and I'm wondering what the recommended way of interacting with external processes is these days?
Should I go through the process of getting all the VMMaker and OSProcess stuff, and build the OSProcess plugin, or is there some other way in Pharo to interact with the OS environment?
Hi. Which OS are you? because I think OSProcess is not working on Windows. And I also think there are binaries for it, so you don't need to generate .c from VMMaker neither compile c code to binary. But I may be wrong.
CommandShell ?
Maybe using normal FFI or AlienFFI? They will let you invoke shared libraries of the OS from Pharo.
Alternatively, are people doing something (easy) with IPC mechanisms like named sockets or TCP streams?
The "project" I'm working on is putting figlet on a website, just for fun.
Marcin
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
On Mon, Aug 23, 2010 at 11:08 PM, Marcin Tustin <mm3@zepler.net> wrote:
Following Mariano's advice, I just tried installing Alien (using Pharo-1.1-11406-rc3 with the Seaside RC3 image; this is a sane version, not affected by previous package loading problems).
I loaded ConfigurationOfAlien (ConfigurationOfAlien-KenTreis.26) using Monticello, then executed ConfigurationOfAlien loadCore (as per the instructions). That resulted in an error: 'SystemDictionary>>recreateSpecialObjectsArray appears incompatible' raised from ensureInSpecialObjectsArray. The cause appears to be that Alien wants to be in the special objects array at 53, but the array is created to be size 50.
Proceeding through the error results in the predictable subscript out of bounds error.
running loadCore once more (second time) does the same thing. Doing it a third time results in a message not understood 'initScannerForTokenization' from Parser>>ParseSelector:.
Any ideas?
No idea. I am still using the old FFI, not Alien.
On Mon, Aug 23, 2010 at 8:41 PM, Marcin Tustin <mm3@zepler.net> wrote:
Mariano,
Thanks for this. I belive CommandShell depends on OSProcess. I am using windows, so I guess neither is a runner anyway. I'll try FFI/AlienFFI.
Marcin
On Mon, Aug 23, 2010 at 8:19 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
On Mon, Aug 23, 2010 at 7:45 PM, Marcin Tustin <mm3@zepler.net> wrote:
Hi all,
I'm an occasional squeak/pharo dabbler, and I'm wondering what the recommended way of interacting with external processes is these days?
Should I go through the process of getting all the VMMaker and OSProcess stuff, and build the OSProcess plugin, or is there some other way in Pharo to interact with the OS environment?
Hi. Which OS are you? because I think OSProcess is not working on Windows. And I also think there are binaries for it, so you don't need to generate .c from VMMaker neither compile c code to binary. But I may be wrong.
CommandShell ?
Maybe using normal FFI or AlienFFI? They will let you invoke shared libraries of the OS from Pharo.
Alternatively, are people doing something (easy) with IPC mechanisms like named sockets or TCP streams?
The "project" I'm working on is putting figlet on a website, just for fun.
Marcin
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259
_______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
this scripting and other processes lunaching aspect is really important for us. On Aug 23, 2010, at 7:45 PM, Marcin Tustin wrote:
Hi all,
I'm an occasional squeak/pharo dabbler, and I'm wondering what the recommended way of interacting with external processes is these days?
Should I go through the process of getting all the VMMaker and OSProcess stuff, and build the OSProcess plugin, or is there some other way in Pharo to interact with the OS environment?
Alternatively, are people doing something (easy) with IPC mechanisms like named sockets or TCP streams?
The "project" I'm working on is putting figlet on a website, just for fun.
Marcin
-- Marcin Tustin Mobile: 07773787105 Office: 020 3400 3259 _______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
participants (3)
-
Marcin Tustin -
Mariano Martinez Peck -
Stéphane Ducasse