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 X-Google-Thread: 103376,8309f2bc055237c4 X-Google-Attributes: gid103376,public From: Nicolas Brunot Subject: Re: Bit manipulation Date: 2000/11/08 Message-ID: <3A09629A.15541FFF@cadwin.com>#1/1 X-Deja-AN: 691210838 Content-Transfer-Encoding: 8bit References: <8u8v6n$b7o$1@nnrp1.deja.com> <2WTH$pdrCfOd@eisner.decus.org> <8ub6kt$6nd$1@nnrp1.deja.com> <8ubeq8$cgm$1@nnrp1.deja.com> <8ubld2$hdd$1@nnrp1.deja.com> X-Accept-Language: fr Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@proxad.net X-Trace: nnrp4.proxad.net 973693622 212.27.47.9 (Wed, 08 Nov 2000 15:27:02 CET) Organization: Guest of ProXad - France MIME-Version: 1.0 NNTP-Posting-Date: Wed, 08 Nov 2000 15:27:02 CET Newsgroups: comp.lang.ada Date: 2000-11-08T00:00:00+00:00 List-Id: That's quite interested to read, and illustrate the 'Ada student homework' thread. If this kind of post were more often read, perhaps Ada would be more likely to be used by software companies, and less ruled by unrealistic scholar fanatics ... Sandro Binetti a �crit : > In article <8ubeq8$cgm$1@nnrp1.deja.com>, > Robert Dewar wrote: > > > Nope! When someone asks how can I do "xxx" and xxx is a low > > level implementation technique, it is always appropriate to > > enquire as to what the problem is. > > > > A C programmer is used to shifting and masking as a solution > > for all sorts of problems. Now there are cases where such > > a solution is appropriate in Ada, which is why the capability > > was added in Ada 95, but compared to C, they are few and > > far between. > > I'm an ADA programmer since 1989; I've written millions of lines of ADA > code, developped systems that, fortunately, runs without "unhandled > exceptions". I say SYSTEMS, not little PROGRAMS, with lines and lines > of generic instantiation, exception handlers, tasks that wait each > other in respect of strict time constraints, and so on. > > But the real fact is not this. > > My ADA code has, always, a little (very little) part made of "pragma > INTERFACES" to C language, in order to manage certain Unix or Linux > kernel capabilities (curses, for example). > > So, once again, the question is the following: > > IF I HAVE TO MANAGE A COMPLEX UNCOMMERCIAL DEVICE, SAY A SATELLITE BUS, > WHY DO I HAVE TO WRITE ALL THE CODE USING ADA (IMPOSED FOR THESE REAL- > TIME ORIENTED APPLICATIONS) AND, AT A CERTAIN MOMENT, USE LOW LEVEL > MANIPULATION IN C LANGUAGE? > > If you can give me a simple answer... > -- > Ciao, Sandro > > Sent via Deja.com http://www.deja.com/ > Before you buy.