comp.lang.ada
 help / color / mirror / Atom feed
From: theanalogmachine@gmail.com
Subject: Re: Ada's ranking of popularity at IEEE Spectrum
Date: Thu, 10 Jul 2014 21:55:18 -0700 (PDT)
Date: 2014-07-10T21:55:18-07:00	[thread overview]
Message-ID: <c58df082-6315-4fe7-b3c2-a6e2ea0c2297@googlegroups.com> (raw)
In-Reply-To: <lpmm3j$u4q$1@speranza.aioe.org>

On Thursday, July 10, 2014 2:30:03 PM UTC-4, Nasser M. Abbasi wrote:
> On 7/10/2014 1:18 PM, Nasser M. Abbasi wrote:
> 
> 
> 
> >
> 
> > One thing that can be done is concentrate on things that are unique
> 
> > or done much better in Ada.
> 
> 
> 
> Also things that can be done in more clear way. I like browsing
> 
> http://rosettacode.org sometimes and compare how different languages
> 
> do somethings. For example, looking at
> 
> 
> 
> http://rosettacode.org/wiki/Address_of_a_variable
> 
> "Demonstrate how to get the address of a variable and how to set the address of a variable"
> 
> 
> 
> Ada way:
> 
> ----------
> 
> The_Address : System.Address;
> 
> I : Integer;
> 
> The_Address := I'Address;     -- read
> 
> for I'Address use 16#A100#;  --- set
> 
> --------------------
> 
> 
> 
> C++ way:
> 
> -----------
> 
> int i;
> 
> void* address_of_i = &i;
> 
> 
> 
> "While C++ doesn't directly support putting a variable
> 
> at a given address, the same effect can be achieved by
> 
> creating a reference to that address: "
> 
> 
> 
> int& i = *(int*)0xA100;
> 
> ----------------------
> 
> 
> 
> Anyone looking at the above 2 examples, can see that Ada is much
> 
> more clear. Actually anyone who does not even know Ada can
> 
> understand what the code does. Try that with the C++ version!
> 
> 
> 
> --Nasser

I agree with the sentiment of promoting Ada's unique elements. For example, discriminate records and the typing system are unrivaled and the like. However, there are still many long standing problems that draw people away:

* Why are record discriminates only limited to discrete types?
* Why can't I use the regular string notation for unbounded_string types?
* Why am I required to have msys/unix configure to use standard and basic packages? It could just be my UNIX illiteracy, but I could not get GNATColl to work under windows after a day and decided to just write my own hacked JSON parser instead and gave up on connecting to databases...


  reply	other threads:[~2014-07-11  4:55 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 15:19 Ada's ranking of popularity at IEEE Spectrum Dan'l Miller
2014-07-06 16:25 ` gautier_niouzes
2014-07-06 17:18   ` Dan'l Miller
2014-07-06 18:03     ` Ludovic Brenta
2014-07-06 19:03       ` Dan'l Miller
2014-07-06 19:41         ` Ludovic Brenta
2014-07-07  7:03         ` Tero Koskinen
2014-07-06 22:15     ` Brad Moore
2014-07-07 13:14       ` Peter Chapin
2014-07-07 14:27         ` Dan'l Miller
2014-07-09 15:01         ` Brad Moore
2014-07-10  7:42           ` Maciej Sobczak
2014-07-10 13:56             ` Peter Chapin
2014-07-10 18:18             ` Nasser M. Abbasi
2014-07-10 18:30               ` Nasser M. Abbasi
2014-07-11  4:55                 ` theanalogmachine [this message]
2014-07-11 11:56                 ` G.B.
2014-07-07  8:37     ` Brian Drummond
2014-07-06 19:41 ` sbelmont700
2014-07-08 17:25   ` Shark8
2014-07-08 23:03     ` sbelmont700
2014-07-08 23:30       ` Jeffrey Carter
2014-07-09  0:29         ` sbelmont700
2014-07-09  2:30       ` Shark8
2014-07-27  2:01       ` David Thompson
2014-07-27 20:19         ` sbelmont700
2014-07-28  3:53           ` Dan'l Miller
2014-07-07  0:17 ` Simon Clubley
2014-07-07  1:17   ` Nasser M. Abbasi
2014-07-07  6:11     ` Simon Wright
2014-07-07  6:30     ` Georg Bauhaus
2014-07-07  9:04     ` Brian Drummond
2014-07-07 13:33       ` Simon Wright
2014-07-07 16:11         ` Brian Drummond
2014-07-10 19:49   ` Marius Amado-Alves
2014-07-10 20:19     ` Shark8
2014-07-10 21:39       ` björn lundin
2014-07-10 22:54         ` Shark8
2014-07-11  7:26           ` Dmitry A. Kazakov
2014-07-11  7:37           ` Maciej Sobczak
2014-07-11  9:32           ` björn lundin
2014-07-12 21:43           ` Marius Amado-Alves
2014-07-13  8:52             ` björn lundin
2014-07-11  0:16     ` Simon Clubley
2014-07-11  0:40       ` Jeffrey Carter
2014-07-11  1:15       ` Shark8
2014-07-11  7:03         ` Simon Clubley
2014-07-08 20:10 ` gautier_niouzes
2014-07-10 13:30 ` Gerd
2014-07-10 15:14   ` Shark8
2014-07-10 19:16   ` Jeffrey Carter
2014-07-11  2:17     ` Dennis Lee Bieber
2014-07-11  0:39   ` gvdschoot
replies disabled

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