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!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: New to Ada, why these warning messages? Date: Fri, 1 Jan 2016 16:50:41 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 1 Jan 2016 23:48:05 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="26788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WTGQXO8iskK+pKxf7K00WBUn+uEmgFMA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: Cancel-Lock: sha1:1Cc9R/xgQKb9b+WocBJ2nSR14LY= X-Enigmail-Draft-Status: N1110 Xref: news.eternal-september.org comp.lang.ada:28975 Date: 2016-01-01T16:50:41-07:00 List-Id: On 01/01/2016 01:20 PM, Dale Dellutri wrote: > > Also, a good first Ada book? > > I found "Programming in Ada 2012" by John Barnes. It's rather > large. I was hoping for something like "The C Programming > Language, 2nd edition" by Kernighan and Ritchie. Is there > anything that concise? Barnes is good and very comprehensive, if expensive and heavy. Since you have programming experience , I recommend /Ada Distilled/, available at http://www.adaic.org/learn/materials/ specifically, http://www.adaic.org/wp-content/uploads/2010/05/Ada-Distilled-24-January-2011-Ada-2005-Version.pdf It's for ISO/IEC 8652:2007, but if you need Ada 12 it's easy enough to pick up the new stuff. Rumor has it there's an Ada-12 version coming soon. > (My goal is to determine whether it would be better to convert > a large cache of Fortran 95 programs to C or Ada. I already > know the problems converting to C. I need to convert some > Fortran programs to Ada to determine what problems might occur.) We have hard data across multiple application domains showing that deployed C has 4 times the errors of deployed Ada. I'm not aware of any data for Ada compared to Fortran, but I wouldn't be surprised if Ada has an edge there, too. So if this is a cost-plus DoD project doing this to drive up costs through unnecessary work, converting to C is the way to go. Where correctness is tantamount, Ada is the language of choice. -- Jeff Carter "Run away! Run away!" Monty Python and the Holy Grail 58