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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,971aa11c293c3db1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-25 08:44:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!news1.tor.metronet.ca!nnrp1.tor.metronet.ca!not-for-mail Message-ID: <3B5EE961.CDAB6A61@home.com> From: "Warren W. Gay VE3WWG" X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada The Best Language? References: <5be89e2f.0107170838.c71ad61@posting.google.com> <5be89e2f.0107180235.726d46a8@posting.google.com> <3B55B01A.DAC06D79@icn.siemens.de> <5be89e2f.0107181248.73298c57@posting.google.com> <9j949b$1ujp$1@norfair.nerim.net> <9cV57.54954$WS4.8386096@news6-win.server.ntlworld.com> <9j98pv$20vi$1@norfair.nerim.net> <3B586C51.53C17E25@home.com> <87vgkiav81.fsf@deneb.enyo.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 25 Jul 2001 15:44:34 GMT NNTP-Posting-Host: 198.96.47.195 NNTP-Posting-Date: Wed, 25 Jul 2001 09:44:34 MDT Organization: MetroNet Communications Group Inc. Xref: archiver1.google.com comp.lang.ada:10562 Date: 2001-07-25T15:44:34+00:00 List-Id: Florian Weimer wrote: > Ted Dennison writes: > > > "select" probably has its uses, but it seems to mostly be a > > holdover from the pre-thread era. > > select() (and poll()) are close to necessary if you want to establish > two-way communication with a child process. Of course, you could > create a bunch of tasks for that, but this seems to be pure overkill. > > OTOH, I havent seen a proper thick binding for select() and poll() > (using protected objects, so that you can use Ada select to wait for > events). With a thin binding, SUSv2 select() and Ada select do not mix > at all. I think you'll find that poll(2) can be interfaced to from Ada without much trouble. The select(2) interfaces is problematic to Ada because select(2) requires those FDSET macros, which are convenient only in C/C++. The poll(2) interface OTOH, requires you to only set up arrays. -- Warren W. Gay VE3WWG http://members.home.net/ve3wwg