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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public From: "Marin David Condic, 561.796.8997, M/S 731-96" Subject: Re: Porting Experiences (was Ada and Pascal etc ) Date: 1997/11/03 Message-ID: <97110311130668@psavax.pwfl.com>#1/1 X-Deja-AN: 287715330 Sender: Ada programming language Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU X-VMS-To: SMTP%"INFO-ADA@VM1.NODAK.EDU" X-VMS-Cc: CONDIC Newsgroups: comp.lang.ada Date: 1997-11-03T00:00:00+00:00 List-Id: Craig Franck writes: >What is it about Ada that makes it portable? I would say it is the >types of applications being developed, as well as the platforms, >and, perhaps, quality of implementation. Last time I was in Barnes >& Noble I saw "Ada 95 for C and C++ Programmers" by Simon Johnston, >from Add-Wes. I almost got it because it had a compiler from Aonix >called "Objective Ada for Windows" on the accompanying CD. It would >be interesting to see what that would be like. I just do not see >how once I start throwing windows up on the screen and responding >to messages, that that code is porting anywhere. > I'd agree with the assessment about putting windows up on a screen. The only way this *might* be considered portable is that, for example, WinNT runs on more platforms than Pentium boxes, so sticking to the Win32api, your code will port. No such luck if you try to take it to a Motif box. I've had lots of success porting Ada code both from Ada83 compilers to Ada95 compilers, between different vendors compilers for the same hardware and between dramatically different machine architectures. (Embedded M680x0 to Sun Unix & similar) Since I'm dealing primarily with embedded application code that does no I/O of its own, the ports have been very successful and mostly painless. (I had to modify some packages that had embedded assembler statements and eliminate a couple of calls to some vendor supplied code and that was about it.) Its always the I/O that gets you on a port because that's where the language has to interface to things beyond its control. Even with Text_IO as your only interface, you'll find variations in behavior across platforms - even with the same compiler vendor. (I've found some variance using GNAT between Sun/Unix and Pentium/WinNT concerning terminal I/O behavior and GNAT is a perfectly fine example of portable compiler technology.) I don't know that there will ever be a good answer to this issue. Certainly this is not a problem peculiar to Ada - C, C++, et alia are all going to be plagued with the same troubles so it would not be fair to say "Ada sucks because when I program I/O code, it doesn't port from Sun/Unix/Motif to IBM-370/MVS/Punchcards..." Yet all too often Ada (and other languages) are attacked for completely silly reasons - usually by inexperienced students who have not yet learned much about computers, operating systems and programming languages. MDC Marin David Condic, Senior Computer Engineer Voice: 561.796.8997 Pratt & Whitney GESP, M/S 731-96, P.O.B. 109600 Fax: 561.796.4669 West Palm Beach, FL, 33410-9600 Internet: CONDICMA@PWFL.COM =============================================================================== "Having an open mind is nothing. The object of opening the mind, as of opening the mouth, is to shut it again on something solid." -- G.K. Chesterton ===============================================================================