comp.lang.ada
 help / color / mirror / Atom feed
From: Ole-Hjalmar Kristensen <ole-hjalmar.kristensen@substitute_employer_here.com>
Subject: Re: Ada used in General Aviation (GA) applications?
Date: 14 May 2004 08:41:02 +0200
Date: 2004-05-14T06:41:03+00:00	[thread overview]
Message-ID: <wvbrwu3fse81.fsf@europa1.Norway.Sun.COM> (raw)
In-Reply-To: slrnca7amb.18s.lutz@taranis.iks-jena.de

Lutz Donnerhacke <lutz@iks-jena.de> writes:

> * Pascal Obry wrote:
> > And don't forget that this is just a wrong argument! When it comes to Ada
> > you always hear "Well it takes time and money to leard a new langauge".
> > Now let me ask some questions :
> >
> >    - What was the cost of learning C++ ?
> 
> Nothing. You can program for our customers in C while learning C++.
> C++ is nothing more than C with Classes and the Template Library.
> 

Pretty much agree here, although you will probably have some false
steps in the beginning if you have not done any object-oriented
programming before.

<snip>

> 
> > I've never heard these arguments for other language that Ada, does it
> > really cost nothing ?
> 
> It look other than C. You can't be productive while learning.
> There are no examples on other websites how to implement the current task.
> 

You are right, there are few examples around. However, I would say
that you can be productive even while learning Ada. At the most basic
level, C, Pascal, and Ada are sufficiently similar that you can design
the system exactly the same way and implement it in any of these
languages without difficulty. Been there, done that, for the very
first prototype of the NATO ATCCIS system. So I would say it depends
on what you are building. If you are building a system from scratch,
you will probably finish just as fast in Ada as in C even if you do
not know Ada already. If the activity is mainly calling existing
libraries written in C or C++, then C or C++ will certainly be faster.

> Of course Perl is more different, but Perl has CPAN.
> Of course CPAN Modules are work in progress, if you are going deep, but
> there are Modules for every fucking task. And all important modules are
> written in C anyway ... So you can still programm in C while writing Perl.
> 
> There is a very simple, but important fact against Ada: The whole Network
> and OS interfaces are written in C. Only a small part of the interfaces can
> be imported into Ada, because the major list of system specific constants
> are only available as preprocessor macros. It get worse if you need
> structures.
> 
> So the main part of developing ordinary applications in Ada is writing a
> seperate inferface to the system or the network. Nobody will pay for a list
> of already defined constants. Of course, you can write a C wrapper in order
> to get a interface, but this is silly. You will be expected to simply
> include the system header files. So your language has to be C compatible as
> much as possible. Interfacing with Ada is too expensive.
> 
Too expensive if most of your code is calling OS and network primitives, yes.

Actually, writing interface functions to the OS/network/database in C
may be the path of least resistance if you are writing portable
software. You define a set of interface functions which abstract away
the details of the system around you. This set of functions is tuned
to the specific needs of your system, not a set of general wrappers
for OS calls. Of course this will work only if the environments are
reasonably similar, but at least Windows, VMS, and the different
versions of UN*X are similar enough that it works. Then, implement
these functions in whatever language seems most appropriate for a
given platform. This way, you can simply include the system header
files as you say (if you choose to do it in C), and there is really no
unnecessary work, as you need such an abstraction layer to minimize
the cost of porting anyway.

<example snipped>

-- 
   C++: The power, elegance and simplicity of a hand grenade.



  parent reply	other threads:[~2004-05-14  6:41 UTC|newest]

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-10  9:17 Ada used in General Aviation (GA) applications? Kai Glaesner
2004-05-10 11:39 ` Marin David Condic
2004-05-10 17:59   ` Jeffrey Carter
2004-05-11 11:38     ` Marin David Condic
2004-05-10 18:28   ` Bernd Specht
2004-05-10 20:10     ` Martin Dowie
2004-05-11  7:37       ` Dmitry A. Kazakov
2004-05-11  9:45         ` Bernd Specht
2004-05-11  9:52       ` Bernd Specht
2004-05-11 11:50         ` Marin David Condic
2004-05-12  0:07           ` Richard  Riehle
2004-05-12 12:21             ` Marin David Condic
2004-05-12 15:36             ` Robert C. Leif
2004-05-11 19:34         ` Bernd Trog
2004-05-11 20:46           ` Bernd Specht
2004-05-12 17:09             ` Mike Silva
2004-05-12 18:51               ` Bernd Specht
2004-05-13  5:50                 ` Pascal Obry
2004-05-13  7:21                 ` Vinzent 'Gadget' Hoefler
2004-05-13  8:10                   ` Bernd Specht
2004-05-13  8:57                     ` Vinzent 'Gadget' Hoefler
2004-05-13  9:27                     ` Ludovic Brenta
2004-05-13 11:46                     ` Marin David Condic
2004-05-13 19:20                       ` Randy Brukardt
2004-05-13 21:00                         ` tmoran
2004-05-13 23:41                         ` Alexander E. Kopilovich
2004-05-14  6:44                         ` Anders Wirzenius
2004-05-14 13:54                           ` Andersen Jacob Sparre
2004-05-17  5:27                             ` Anders Wirzenius
2004-05-17 11:53                             ` Marin David Condic
2004-05-14 22:31                           ` Ludovic Brenta
2004-05-15  9:05                             ` Jacob Sparre Andersen
2004-05-15 11:46                               ` Ludovic Brenta
2004-05-16 16:48                               ` Jeffrey Carter
2004-05-17  6:35                                 ` Time to market, was: " Anders Wirzenius
2004-05-17 12:17                                 ` Marin David Condic
2004-05-18  1:05                                   ` Jeffrey Carter
2004-05-18  7:58                                     ` Peter Amey
     [not found]                                     ` <40A9EFFC.7090708@noplace.com>
2004-05-19  0:45                                       ` Jeffrey Carter
2004-05-17 12:04                               ` Marin David Condic
2004-05-17  6:09                             ` Anders Wirzenius
2004-05-18  4:45                               ` Simon Wright
2004-05-17 11:58                             ` Marin David Condic
2004-05-17  6:15                           ` Martin Krischik
2004-05-17 11:48                         ` Marin David Condic
2004-05-13 16:45                     ` Pascal Obry
2004-05-13 17:05                       ` Lutz Donnerhacke
2004-05-13 20:59                         ` Bartłomiej Świercz
2004-05-13 21:06                         ` Pascal Obry
2004-05-14  1:07                           ` Alexander E. Kopilovich
2004-05-13 22:37                         ` Alexander E. Kopilovich
2004-05-14  6:41                         ` Ole-Hjalmar Kristensen [this message]
2004-05-13 19:30                     ` Bernd Trog
2004-05-13 16:17                   ` Mike Silva
2004-05-11 20:15         ` Martin Dowie
2004-05-12 12:30           ` Marin David Condic
2004-05-13  7:55             ` Dmitry A. Kazakov
2004-05-13 12:01               ` Marin David Condic
2004-05-13 13:22                 ` Dmitry A. Kazakov
2004-05-17 12:25                   ` Marin David Condic
2004-05-17 13:11                     ` Dmitry A. Kazakov
2004-05-13 19:29                 ` Randy Brukardt
2004-05-14 10:45                   ` Kai Glaesner
2004-05-14 22:35                     ` Ludovic Brenta
2004-05-17 12:26                   ` Marin David Condic
2004-05-17 19:29                     ` Randy Brukardt
2004-05-18  1:09                       ` Jeffrey Carter
     [not found]                         ` <40A9F260.9080300@noplace.com>
2004-05-19  0:50                           ` Jeffrey Carter
2004-05-19  1:34                             ` Marin David Condic
2004-06-06  9:48                         ` I R T
2004-05-18  4:50                       ` Simon Wright
     [not found]                         ` <40A9F38C.9080003@noplace.com>
2004-05-18 21:05                           ` Simon Wright
2004-06-06  9:51                             ` I R T
2004-05-18 12:05                       ` Marin David Condic
2004-05-19 17:17                         ` Randy Brukardt
2004-05-19 22:21                           ` Marin David Condic
2004-05-20 19:10                           ` Georg Bauhaus
2004-05-21 11:39                             ` Marin David Condic
2004-05-19 22:42                         ` Jeff C,
2004-05-20 11:36                           ` Marin David Condic
2004-05-21  1:46                             ` Jeff C,
2004-05-21  5:46                               ` Richard  Riehle
2004-05-21  5:44                             ` Simon Wright
2004-06-06 10:01                               ` I R T
2004-05-12  2:32         ` Steve
2004-05-12 12:34           ` Marin David Condic
2004-05-13  6:21         ` Richard  Riehle
2004-05-13  8:30           ` End of "discussion" (was Re: Ada used in General Aviation (GA) applications?) Bernd Specht
2004-05-13 15:14             ` Robert I. Eachus
2004-05-13 12:09           ` Ada used in General Aviation (GA) applications? Marin David Condic
2004-05-13 14:58           ` Martin Dowie
2004-05-13 20:37             ` Symbian OS (was: Re: Ada used in General Aviation (GA) applications?) Alexander E. Kopilovich
2004-05-11 11:41     ` Ada used in General Aviation (GA) applications? Marin David Condic
2004-05-11 17:28       ` Bernd Specht
2004-05-12 12:42         ` Marin David Condic
2004-05-13  8:00           ` Dmitry A. Kazakov
2004-05-12 10:01     ` Peter Amey
2004-05-12 12:50       ` Marin David Condic
2004-05-12 14:45         ` Georg Bauhaus
2004-05-13  7:43         ` Peter Amey
2004-05-13 12:17           ` Marin David Condic
2004-05-12 17:13       ` Mike Silva
2004-05-10 21:31 ` Ludovic Brenta
2004-05-11 11:29   ` Martin Dowie
2004-05-11 20:12     ` Martin Dowie
2004-05-11 14:29   ` Britt Snodgrass
2004-06-06  9:30 ` I R T
  -- strict thread matches above, loose matches on Subject: below --
2004-05-12  9:06 Lionel.DRAGHI
2004-05-12 12:52 ` Marin David Condic
2004-05-12 17:58 ` Bernd Specht
2004-05-12 18:13   ` Ludovic Brenta
2004-05-12 18:28     ` Mark Lorenzen
2004-05-13 13:31   ` Mike Silva
2004-05-12 14:25 Lionel.DRAGHI
2004-05-13  7:57 Lionel.DRAGHI
2004-05-13  8:39 Lionel.DRAGHI
2004-05-14 11:44 Lionel.DRAGHI
2004-05-14 18:11 ` Martin Dowie
2004-05-16 18:53   ` Robert I. Eachus
replies disabled

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