comp.lang.ada
 help / color / mirror / Atom feed
From: "Mike Dimmick" <mike@dimmick.demon.co.uk>
Subject: Re: Why should hackers love Ada. (Re: Ada 95 based RTOS)
Date: 2000/03/07
Date: 2000-03-07T00:00:00+00:00	[thread overview]
Message-ID: <952461466.12261.0.nnrp-12.d4e5bde1@news.demon.co.uk> (raw)
In-Reply-To: 38B80EBA.721830@flash.net

"Gary Scott" <scottg@flash.net> wrote in message
news:38B80EBA.721830@flash.net...
> Robert Dewar wrote:
>
> > > > Gary wrote:
> > > >> I see this reference to ADA being good at bit twiddling,
> > periodically.
> > > >> Virtually all high-level languages provide facilities for
> > bit twiddling.
> >
> > Sure, but the facilities in Ada are far more powerful, allow
> > more control, and most importantly, provide a much better level
> > of abstraction. For example, packed bit arrays are a powerful
> > feature missing from C. Sure you can program this yourself in
> > C, but it is messy, error prone, and results in ugly and
> > possibly inefficient code.
> >
>
> C or C++ or both?  Fortran 95 has better facilities than C (and
certainly better
> syntax)...I do wish, however, that support for packed bit arrays was
more
> widespread.

C.  C++ has the <bitvector> as part of the standard library (alright,
it's not part of the language, but it should be there on all
implementations of standard C++).

Unfortunately not all compilers are standards-compliant yet.  MSVC 6 is
close, but missing a few things; GCC (egcs) isn't quite there yet
either.  For example, egcs has only just added support for namespaces,
while some of the stream_iterators are broken on MS VC++.

As an example of this, try compiling some of Stroustrup's examples from
'The C++ Programming Language'.  I'd advise anyone considering flaming
C++ to look at this book to see what it's truly capable of, and how you
should now program in C++ given the standard language and its
library.[1]  The C++ standards committee stole quite a few ideas from
Ada95.

--
Mike Dimmick

[1] The first rule is, forget anything and everything you ever knew
about C.





  reply	other threads:[~2000-03-07  0:00 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-18  0:00 Ada 95 based RTOS xaplos
2000-02-18  0:00 ` Tucker Taft
2000-02-21  0:00   ` xaplos
2000-02-22  0:00     ` Matthew Majka
2000-02-22  0:00       ` xaplos
2000-02-22  0:00         ` Marin D. Condic
2000-02-22  0:00         ` Stanley R. Allen
2000-02-22  0:00         ` Ted Dennison
2000-02-22  0:00           ` xaplos
2000-02-23  0:00             ` Roger Racine
2000-02-24  0:00               ` Simon Wright
2000-02-24  0:00                 ` Robert Dewar
2000-02-25  0:00             ` Mike Silva
2000-02-26  0:00               ` xaplos
2000-02-23  0:00         ` Tarjei T. Jensen
2000-02-23  0:00           ` Ted Dennison
2000-02-25  0:00             ` Scott Ingram
2000-02-23  0:00           ` Gautier
2000-02-23  0:00             ` Ehud Lamm
2000-02-23  0:00               ` Why should hackers love Ada. (Re: Ada 95 based RTOS) Marin D. Condic
2000-02-23  0:00                 ` Vladimir Olensky
2000-02-23  0:00                   ` Gautier
2000-02-24  0:00                     ` Ehud Lamm
2000-02-24  0:00                   ` David C. Hoos, Sr.
2000-02-24  0:00                     ` Vladimir Olensky
2000-02-23  0:00                 ` Gary
2000-02-24  0:00                   ` Gisle S�lensminde
2000-02-24  0:00                   ` Marin D. Condic
2000-02-24  0:00                     ` Larry Kilgallen
2000-02-25  0:00                       ` Gary Scott
2000-02-25  0:00                         ` Mike Silva
2000-02-26  0:00                           ` Gary Scott
2000-02-25  0:00                         ` Marin D. Condic
2000-02-25  0:00                           ` Gary
2000-02-26  0:00                       ` Robert Dewar
2000-02-26  0:00                         ` Gary Scott
2000-03-07  0:00                           ` Mike Dimmick [this message]
2000-03-10  0:00                             ` Wil
2000-03-10  0:00                               ` Ada OS again " David Starner
2000-03-11  0:00                               ` David Botton
2000-02-24  0:00                 ` Ehud Lamm
2000-02-24  0:00                   ` Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox