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: 109fba,97482af7429a6a62 X-Google-Attributes: gid109fba,public X-Google-Thread: 10d15b,97482af7429a6a62 X-Google-Attributes: gid10d15b,public X-Google-Thread: 103376,97482af7429a6a62 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Language Efficiency Date: 1995/04/19 Message-ID: #1/1 X-Deja-AN: 101281531 references: <3lmt64$stt@dplanet.p2k.cbis.com> <3lrrqk$kbj@usenet.INS.CWRU.Edu> <3ls7u0$3v1@stc06.ctd.ornl.gov> <9511001.20524@mulga.cs.mu.OZ.AU> <3n4bal$dn6@stc06.ctd.ornl.gov> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.c++,comp.lang.ada,comp.lang.cobol Date: 1995-04-19T00:00:00+00:00 List-Id: matt says: "If the compiler can see the whole program at once! And you have to write two compilers. :-O I find this difference rather odd: * It's dogma that the choice of theoretical processor architecture {hardware language} makes a big difference in the eventual speed of its implementation. Note, not the "maximum possible given any technology imaginable" but the realistic "likely given economic constraints." Proven by empirical example." Yes indeed (see the whole program at once, and you have to write two compilers). To argue that language features make it easier or more difficult to achieve X is one thing, to argue that these differences are fundamental is another. one should always be hesitatnt to accept "dogma", and one should be especially hesitant to accept the allegation that something is "dogma" as a substitute for effective technical argument. Things that are "obvious" and which "everyone knows" are not always what they seem (the G&S song from Pinafore is applicable to a wide range of environments :-) "Proven by empirical example" Hm? Sure most compilers do little out of the ordinary, and normal expected behavior is much as one might expect, but there are plenty of examples which point in the opposite direction from "dogma". I will give just one: Jim Boyle has for many years worked on the transformational compilation of high level LISP programs. He starts with a high level abstract statement of the numerical algorithm written in nice high level idiomatic Lisp. Out of the end of a (complex!) set of compilation processes comes efficient generated fortran code that runs at comparable speed to hand generated fortran for the same problem.