From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,9d5e1d36489fe2af X-Google-Attributes: gidf7344,public X-Google-Thread: fd705,8dea03f3432f9a82 X-Google-Attributes: gidfd705,public X-Google-Thread: 1164f8,8dea03f3432f9a82 X-Google-Attributes: gid1164f8,public From: Eric.Vandermeer@net.HCC.nl (Eric v/d Meer) Subject: Re: Compiling your own compiler [was Re: A Microsoft Future?] Date: 1997/02/02 Message-ID: #1/1 X-Deja-AN: 213799004 sender: news@inter.NL.net (News at newsldn) x-nntp-posting-host: ldn99-22.leiden.nl.net references: <5c3tae$93t@reader.seed.net.tw> <5cjv84$gko@access1.digex.net> <5crnmc$rkk@nerd.apk.net> organization: NLnet newsgroups: comp.os.vms,comp.sys.dec,alt.folklore.computers In article <5crnmc$rkk@nerd.apk.net>, drushel@apk.net (Richard Drushel) wrote: > David McNett (nugget@slacker.com) spake unto the ether:: > > : Until it can compile its own compiler, (or interpret its own interpreter?) > : it's not a language. > > Oh, this bit of bigotry (IMHO) again...Jean Sammet's "History > of Programming Languages" is filled with all kinds of examples of > arcane "languages" whose greatest attribute (in their creators' opinion) > was that they could compile their own compiler. (Sammet's own ironic > view, expressed in almost those same words; I'd quote it exactly > if I owned the book instead of having borrowed it from the library > a few years ago.) > > And don't automatically diss her because she helped develop > COBOL, either! > > The ability to compile your own compiler is neither a > necessary nor a sufficient condition for being called a language. > Hey, English is a (human) language, yet not even Noam Chomsky et > al. have managed to write a complete description of it in English > :-) > > *Rich* > > -- > Richard F. Drushel, Ph.D. | "Aplysia californica" is your taxonomic > Department of Biology, Slug Division | nomenclature. / A slug, by any other > Case Western Reserve University | name, is still a slug by nature. > Cleveland, Ohio 44106-7080 U.S.A. | -- apologies to Data, "Ode to Spot" Hi Rich, Luckily, I do own the book. Here is the section on self-compiling languages: The concept of judging a language (even partially) by its ability to be used for writing its own compiler is one which I feel has been greatly overrated. The writing of a compiler is a particular type of computing application. Some languages are well-designed for that particular application, whereas others are not. Of course, it is desirable to permit a compiler to be written in the language it is compiling because this is an excellent way of testing it. By writing the compiler for a language in that language and then passing it through itself, there might be a better chance of checking out the compiler than trying any large number of artificially constructed programs. However, it seems completely unreasonable to expect that a language which is very suitable for writing scientific aapplications or for doing simulation should also be capable of writing a compiler for the language. Even if it can be done logically, it may lead to poor object code (although this is often the fault of the compiler design). If a language can be used to write its own compiler, this is an additional bonus, but no language should be criticized for not having that capability (unless, of course, that was its avowed purpose). From: Jean E. Sammet, "Programming Languages - History and Fundamentals." Prentice Hall, 1969, xxx+785p. [which includes Basic -only just- and has nearly 50 pages on COBOL, but obviously not a trace of C in sight :-)] Hope this helps. Eric