comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Re: Suitability of Ada as a general-purpose language
Date: Wed, 1 Aug 2012 16:57:57 -0700 (PDT)
Date: 2012-08-01T16:57:57-07:00	[thread overview]
Message-ID: <5d3fb55c-0594-4564-8524-79dec7733a88@googlegroups.com> (raw)
In-Reply-To: <d47dda80-8ac6-4aab-a484-6495eab4f3c6@googlegroups.com>

On Monday, July 30, 2012 12:43:46 PM UTC+1, Dufr wrote:

> I have a dilemma: whether to learn Ada or Delphi/Object Pascal (I have a only Pascal background, and I wish to stick with Pascal-like languages). My target would be to write day-to-day (business, educational, etc), relatively simple desktop applications.

I have and always will maintain that with Pascal you are limited as to how far you can go, standard Pascal doesn't have a lot, so you have to rely on different dialects. Whereas with Ada the language will grow as you do.

Also, even though you cannot really judge a language on the size of it's hello world program and how that size compares to other languages, I thought I'd do a test on 32-bit debian:

with ada.text_io; use ada.text_io;

procedure hello is
begin
   put_line ("hello world");
end hello;

$ /usr/bin/gnatmake -O2 hello.adb
$ ls -l hello
-rwxr-xr-x 1 laguest laguest 16563 Aug  2 00:39 hello
$ strip hello
$ ls -l hello
-rwxr-xr-x 1 laguest laguest 9128 Aug  2 00:39 hello

and then:

$ /usr/bin/gnatmake -O2 hello.adb -cargs -fdata-sections -ffunction-sections -largs -Wl,--gc-sections
$ ls -l hello
-rwxr-xr-x 1 laguest laguest 12842 Aug  2 00:43 hello
$ strip hello
$ ls -l hello
-rwxr-xr-x 1 laguest laguest 8584 Aug  2 00:43 hello

Should give you an idea.

Luke.



  parent reply	other threads:[~2012-08-07  6:43 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30 11:43 Suitability of Ada as a general-purpose language Dufr
2012-07-30 12:12 ` Patrick
2012-07-30 12:37 ` Georg Bauhaus
2012-07-30 13:27   ` Patrick
2012-07-30 13:45     ` Dmitry A. Kazakov
2012-07-30 13:50       ` Patrick
2012-07-30 13:55         ` Patrick
2012-07-30 14:14         ` Dmitry A. Kazakov
2012-07-30 13:04 ` francois_fabien
2012-07-30 13:45 ` Vasiliy Molostov
2012-07-30 13:55   ` Vasiliy Molostov
2012-07-31 14:28   ` Marc C
2012-08-04 14:07     ` Vasiliy Molostov
2012-07-30 14:19 ` Ludovic Brenta
2012-07-30 14:34   ` Yannick Duchêne (Hibou57)
2012-07-30 15:26     ` Dufr
2012-07-30 16:05       ` Patrick
2012-07-30 16:11       ` Georg Bauhaus
2012-07-30 22:06       ` Brian Drummond
2012-07-31  4:19         ` Randy Brukardt
2012-08-03 19:21           ` Yannick Duchêne (Hibou57)
2012-08-03 20:21             ` Brian Drummond
2012-08-04  2:48             ` Vasiliy Molostov
2012-07-30 16:07 ` Ludovic Brenta
2012-07-30 16:45   ` Dmitry A. Kazakov
2012-07-30 18:03     ` Patrick
2012-07-30 19:33       ` Dufr
2012-07-30 20:04         ` Patrick
2012-08-06  9:01         ` Jacob Sparre Andersen
2012-08-06  9:15         ` Pascal Obry
2012-08-01 23:57 ` Lucretia [this message]
2012-08-06 20:52 ` gautier_niouzes
replies disabled

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