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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4cb1f8d1c17d39a8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.16.35 with SMTP id c3mr6021608pbd.6.1319902485017; Sat, 29 Oct 2011 08:34:45 -0700 (PDT) Path: p6ni24487pbn.0!nntp.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feedme.ziplink.net!news.swapon.de!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 29 Oct 2011 17:32:48 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada 'hello world' for Android; success! References: <8239efcjuw.fsf@stephe-leake.org> <98ca5430-aa52-4e39-b789-70d0dd6adb46@d33g2000prb.googlegroups.com> <824nyrq5p6.fsf@stephe-leake.org> In-Reply-To: <824nyrq5p6.fsf@stephe-leake.org> Message-ID: <4eac1ca1$0$7625$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 29 Oct 2011 17:32:49 CEST NNTP-Posting-Host: 0b3b5a85.newsspool1.arcor-online.net X-Trace: DXC=T:@>;BE1SkMA@P]\Dic==]BZ:afN4Fo<]lROoRA<`=YMgDjhgB@:>SDEfdW7FPCY\c7>ejVHQ[LT9TVU7DDhdEVVPCX2VC X-Complaints-To: usenet-abuse@arcor.de Xref: news1.google.com comp.lang.ada:18748 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-10-29T17:32:49+02:00 List-Id: On 29.10.11 15:37, Stephen Leake wrote: > Anatoly Chernyshev writes: > >> Looks like a Pyrrhic victory to me. All elegance of Ada is suddenly >> dissipated. > > I gather you feel that Android is inelegant in some way; can you be more > specific? The example is a little non-Ada, IMHO. I don't know Anatoly's reasons, but to me the example has an air of "Fortran in any language", except that one has to replace Fortran with pointers or Java-with-covers-removed, viz. explicit access A.B.C.Typ all over the place. FWIW, the programs I have once written using SofCheck's version of Ada on JVMs looked and felt more like Ada and a less like explicit anonymous pointer to A.B.C.Typ everywhere. Note that the thorny appearance of the HelloWorld example isn't present in Java, which allows O-O without forcing the programmers to write pointers, pointers, pointers. BTW, is it possible in the Android model to have an equivalent of Ada's procedure Op (This : access constant Typ); where a programmer can state the intent of read-only access? Is the traditional O-O model of Ada impossible to support in a compiler for Android devices or is it just that no one is paying for such a compiler? So that the best we can do is juggle the pointers that the other languages can hide?