comp.lang.ada
 help / color / mirror / Atom feed
From: "Peter C. Chapin" <PChapin@vtc.vsc.edu>
Subject: Re: How (or Where?) to get started on Ada? (Properly)
Date: Wed, 4 Sep 2013 07:22:38 -0400
Date: 2013-09-04T07:22:38-04:00	[thread overview]
Message-ID: <alpine.DEB.2.02.1309040711491.2222@whirlwind> (raw)
In-Reply-To: <dbd4b15b-7dd9-488b-9ecd-5fa17c3bf311@googlegroups.com>

On Wed, 4 Sep 2013, e.s.harney@gmail.com wrote:

> Thank you for your replies and the links! So Ada95 books/resources are 
> still a good place to get started for learning the language today then?

Yes, Ada95 materials are still relevant. They don't cover the new features 
of Ada2005 or Ada2012, of course, but with only a few little exceptions 
everything they do say is still true. Furthermore, Ada95 is still regarded 
by many as a perfectly reasonable language to use. ("I don't need no 
stink'n synchronized interfaces or executable contracts!")

One nice thing about Ada is that it has enjoyed an unusually (my opinion) 
high degree of coherence during its evolution. I send kudos to those who 
have labored to make that so. This isn't to say that it doesn't have warts 
and quirks but compared to, say, C++... well...

> Well, I'm only looking at it since Ada seems to be missing things like 
> widely-used/extensively-tested HTTP or crypto libraries. So I'll have to 
> figure out a way to using things like curl or openssl from Ada. I'm not 
> sure if something more complex than simple function is really necessary 
> for this.

Because Ada isn't as main stream as some other languages the menu of third 
party libraries available written in Ada is less than you would be used to 
coming from Java.

> Either way though, my point was that Barnes' book (judging by the table 
> of contents on Amazon) does not seem to concern itself with how to get 
> your program to do something useful.

The Barnes book is encyclopedic but it's not exactly a book about 
designing with Ada. He talks about some of the issues, but his focus is on 
presenting the raw language.

> How does Ada represent its strings internally? (Or more specifically, 
> what character set do the standard library functions for processing 
> strings assume/expect?).

There are three character types and corresponding string types.

 	Character
 	Wide_Character
 	Wide_Wide_Character

 	String
 	Wide_String
 	Wide_Wide_String

I'm sure the language lawyers here can set me straight if I get this wrong 
but my understanding is that Character is 8 bit ISO-8859-1, Wide_Character 
is 16 bit BMP part of ISO-10646, and Wide_Wide_Character is 32 bit full 
ISO-10646.

Ada source text is now assumed to be UTF-8 (or is that compilers must 
provide a mode where they accept UTF-8?).

> Is this covered by the reference manual for Ada?

There is a lot of dense language in the Ada standard regarding character 
sets.

Peter



  reply	other threads:[~2013-09-04 11:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-04  9:14 How (or Where?) to get started on Ada? (Properly) e.s.harney
2013-09-04  9:40 ` Gour
2013-09-04 10:15 ` G.B.
2013-09-04 10:25 ` G.B.
2013-09-04 11:01   ` e.s.harney
2013-09-04 11:22     ` Peter C. Chapin [this message]
2013-09-04 12:15     ` Dmitry A. Kazakov
2013-09-04 15:32     ` G.B.
2013-09-04 12:04 ` mockturtle
2013-09-04 12:25 ` Austin Obyrne
2013-09-04 15:00 ` Eryndlia Mavourneen
2013-09-04 16:05 ` e.s.harney
2013-09-04 16:55   ` Dmitry A. Kazakov
2013-09-04 18:46   ` Jeffrey R. Carter
2013-09-04 20:35     ` Alan Jump
2013-09-05  8:42     ` Jacob Sparre Andersen
2013-09-05 14:34       ` Jeffrey R. Carter
2013-09-04 16:09 ` Dan'l Miller
2013-09-05  0:13   ` e.s.harney
2013-09-05 14:37     ` Mike H
2013-09-10  9:16   ` Maurizio Tomasi
2013-10-03 13:34 ` grodzicky_j
replies disabled

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