From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b12bc9a1cc5c6c3 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Spawning a subprocess and communicating with it. Date: 1998/10/06 Message-ID: <6vdt9q$lpt$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 398370967 References: X-Http-Proxy: 1.0 x2.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Oct 06 20:07:22 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (WinNT; I) Date: 1998-10-06T00:00:00+00:00 List-Id: In article , "Condic, Marin D." wrote: > Rick Stikkers writes: > >either be done through C routines as we use at my company, or through use > of > >C pragmas. Either way, you are going to have to rely heavily on C code. > >Although I am not allowed to release source code done for work, I did find > Are you sure it all has to be done with C routines? I'd think that most of > this should be simply connecting to OS runtime libraries, which may have an > interface expressed in C syntax, but ought to be accessible from anything. > Especially since Ada has such good syntax for connecting to stuff in other > languages. I don't think that was excetly what he was saying. But if it is, he's incorrect. Since they are meant to interface with C code directly, OS routines are usually imported into Ada programs *as*if* they were C routines. The only problem with writing your code in Ada is that you will find their interfaces annoyingly non-Ada like. I suppose you also have to be aware that OS routines aren't always task-safe. Again, if you aren't ever going to run these processes on separate processors I would highly suggest using Unix IPC (shared memory or message queues) rather than sockets (TCP/IP). IPC is a lot easier to interface to and use. On the other hand, TCP/IP looks better on a resume'... -- T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own