From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 04 Sep 2013 17:32:32 +0200 From: "G.B." User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How (or Where?) to get started on Ada? (Properly) References: <9ec51e40-081f-4ec7-b17f-7c73dbdcd10a@googlegroups.com> <52270a8c$0$6583$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <5227527e$0$6577$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 04 Sep 2013 17:32:14 CEST NNTP-Posting-Host: 0164be1c.newsspool3.arcor-online.net X-Trace: DXC=CgkWD[:mQ:]AX0F2i>_ljHi\nc\616M64>ZLh>_cHTX3j]F2HPOD6bD6V X-Complaints-To: usenet-abuse@arcor.de Xref: news.eternal-september.org comp.lang.ada:17109 Date: 2013-09-04T17:32:14+02:00 List-Id: On 04.09.13 13:01, e.s.harney@gmail.com wrote: > 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. One popular library is AWS ("Ada Web Server"); it includes HTTP, SMTP, and makes SSL available when the supporting libraries are present on a system. (So, no need to write bindings yourself.) Maybe this web application framework is worth a look: http://blog.vacs.fr/index.php?category/Ada > 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. My guess is that in order to do so it would probably need another 200-300 pages explaining how to get your program to interact with the rest of the world. The book surely covers techniques one might need in order to tackle real world issues. >> ISO 10646 is mandatory for >> current Ada, so UTF-8 won't be a problem. > > That is interesting. What I had found through Google was this http://commons.ada.cx/Unicode which isn't really that helpful. > > How does Ada represent its strings internally? (Or more specifically, what character set do the standard library functions for processing strings assume/expect?). Typically, an Ada compiler, like a C compiler (CHAR_BIT) will find a representation for standard characters that agrees with the requirements of the LRM and is a good match for the given hardware ;-) This includes passing language borders. For string I/O, see the String Encoding sections of the standard library. Like Dmitry said, you are in control here. That's not unlike Java when putting an encoding object somewhere in the I/O chain. Control extends to the possibility of defining your own character types and strings of such characters, and add representation clauses as needed. (A character is an enumeration type.)