Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!ogicse!emory!mephisto!python!hsu From: hsu@python.gatech.edu (Yung-Kao Hsu) Newsgroups: comp.lang.smalltalk Subject: Re: Anyway to run a program directly from smalltalk? Message-ID: <19572@mephisto.UUCP> Date: 23 Feb 90 03:35:32 GMT References: <19566@mephisto.UUCP> <7709@netcom.UUCP> Sender: news@mephisto.UUCP Reply-To: hsu@cobra.gatech.edu (Yung-Kao Hsu) Distribution: na Organization: ICS, Georgia Tech. Lines: 38 In article <7709@netcom.UUCP> schang@netcom.UUCP (Sehyo Chang) writes: >In article <19566@mephisto.UUCP> hsu@boa.gatech.edu (Yung-Kao Hsu) writes: *> *>The problem could be greatly reduced if somehow I could build *>an object that could run a "prolog" or any other process directly *>by sending a message to it. Has anyone here known of such thing? *> *>---- >Thre are 3 possible solution to this problem: >(1) write class called 'prolog' or something that will manage all i/o >interface to the rest of smalltalk. It will use 'execv' call to automatically >invoke prolog agent if necessary. Even though the problem was solved following Tim's suggestion, but your suggestion here sounds interesting. What is the basis for writing this `prolog' class and where does this method `execv' come from? >Also, unix socket mechanism is very efficent and shouldn't take 3 minutes, >unless you are doing some kind of synchrous communication. You might want >to fork off prolog-communication as lower prority process and try to do >asynchrous communication much as possible which might yield better performance The slow response probably has something to do with Georgia Tech's recent upgrade of systems than socket's own performance. I had used socket interfacing a yacc program before I wrote my own parser and the response was reasonable even with synchronizations. However, the use of CShellPort is better than socket IMO. >Sehyo Chang schang@netcom.uucp --- YUNG-KAO HSU at ICS, Georgia Tech | FREE |~~|~~~~~~~~~~~~~~~~~~~|> bears the responsiblity for this ads. | RESUME |* | I need Food. |> Question? Contact=> hsu@boa.gatech | TAKE |* | will work!! |> This is a Limited Time Offer. Hurry!! | ONE |*_|___________________|>