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,38159b1b5557a2e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-29 15:20:14 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Standard Ada Preprocessor Date: Thu, 29 Jan 2004 17:19:09 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <101j591huagcl44@corp.supernews.com> References: <400A9B48.3060100@noplace.com> <400BD4B5.6000307@noplace.com> <400BDB7C.40100@noplace.com> <400D2150.6000705@noplace.com> <400E72F9.8060501@noplace.com> <100upo7ln5e3k59@corp.supernews.com> <400FC8E8.2040100@noplace.com> <_JSdna166JuxFo3dRVn-hg@comcast.com> <401115B7.5020205@noplace.com> <101bjm54k3rn8f0@corp.supernews.com> <101ghqq1bpk3m6e@corp.supernews.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:5069 Date: 2004-01-29T17:19:09-06:00 List-Id: "Warren W. Gay VE3WWG" wrote in message news:qQbSb.57519$Kg6.643416@news20.bellglobal.com... > Randy Brukardt wrote: ... > > Different problem. We're trying to get the code to run unmodified on as many > > targets as possible. Having it being self-adapting is very valuable in that > > aim. (Hopefully, even the binarys can run on most targets unmodified.) > > > > This is like probing hardware when Linux boots. Hardware is > getting better, so that probes don't hang etc., but this adds > time to the boot process, and for some hardware configs, is > unstable and leads to hangs. > > Testing a version of a Linux kernel for a working asynch I/O > API or not, seems much like the same thing. Its ugly, its > dangerous and leads to more problems than it solves. It is > much better to work all of that out at compile time, and never > deal with it again. I would be likely to base the decision whether or not to use a feature (say asynch I/O) on the version information provided by the kernel. (I'm presuming that Linux isn't so primitive that it doesn't have version/distribution/supported features queries.) Plus, of course, lots of upfront testing. Thus, the same info that you're using at compile-time would be used to choose which implementation to use. I readily admit that doing this is easier on Windows, where the number of versions is somwhat bounded, and it's possible to get information (not always right, of course) in one place. (Window emulators always try to match the real thing as closely as possible, so they tend to be less incompatible than the different versions of the real thing...) Randy.