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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f495c7652c09dd8c X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Does this model work ? Date: 1999/05/16 Message-ID: <7hmda1$khp$1@nnrp1.deja.com>#1/1 X-Deja-AN: 478438287 References: <373e38e2.31311363@news2.ibm.net> <7hhj6q$cjn$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x34.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Sun May 16 12:22:25 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-16T00:00:00+00:00 List-Id: In article <7hhj6q$cjn$1@nnrp1.deja.com>, dennison@telepath.com wrote: > I don't think this feat would be possible in any other > language. Such claims alway make me uneasy. It is perfectly possible to write code that is in practice close to perfectly portable in COBOL, Fortran, C, or several other standardized languages. As in Ada, the main barrier to portability is deliberate or accidental use of implementation dependent features. Yes, it is fair to say that Ada makes achieving this portability easier. I think there are four reasons for that. 1. Portability requires discipline, and the Ada programming culture tends to be more disciplined. 2. Ada discourages extensions, which are a frequent cause of non-portability. 3. Ada programmers tend to be more familiar with the standard for the language 4. Ada is designed to promote portability (e.g. portable integer types). However, Ada is no panacea. Over and over again, we run into cases where incompetence or deliberate (in-retrospect-poort) decisions have lead to highly non-portable code, and this can often be eacerbated by management or incompetent Ada vendor sales people who have sold the idea that Ada guarantees 100% portability. That's wrong, it does not. However, the above four factors are quite powerful, and in practice have lead to many success stories like the one quoted here! For an example of a highly portable C program, consider the gcc compiler itself. This is one of the portable benchmarks in the Spec suite, and runs unchanged on all targets with C compilers that run Spec (which is essentially 100% of all C compatible targets). --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---