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: 10d15b,d730ea9d54f7e063 X-Google-Attributes: gid10d15b,public X-Google-Thread: 103376,dab7d920e4340f12 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,dab7d920e4340f12 X-Google-Attributes: gid1014db,public From: Craig Franck Subject: Re: C is 'better' than Ada because... Date: 1996/08/11 Message-ID: <4ul434$jf@mtinsc01-mgt.ops.worldnet.att.net>#1/1 X-Deja-AN: 173534389 references: <31F28DBD.2A1D@harris.com> <31f3c52e.238719470 <4uj42h$j06@mtinsc01-mgt.ops.worldnet.att.net> <4ukl9r$gcj@news.inetdirect.net> content-type: text/plain; charset=us-ascii organization: AT&T WorldNet Services mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c,comp.lang.cobol x-mailer: Mozilla 1.22ATT (Windows; U; 16bit) Date: 1996-08-11T00:00:00+00:00 List-Id: dlmiller@inetdirect.net (Doug & Rose Miller) wrote: >Craig Franck wrote: >+Richard Riehle wrote: >+ >+> C++ and C are probably fine for certain classes of problems, but they >+> are certainly archaic when compared to the progress being made in >+> the world of programming languages. And I do not refer only to Ada in >+> that last sentence. Eiffel also comes to mind as a preferred >+> alternative to C++. >+ >+ >+I agree with that, if you include PC programming as "a certain class of >+problems". Most PC OS's are written in C/C++. It makes sense that >+applications would then be coded in C/C++ as well. > >This is absolute nonsense. IBM mainframe operating systems are (or at >least were, during the time I worked with them) written in assembly language; >by this "reasoning," application programming on IBM mainframes should >therefore also be done in assembly language. While it might not be in your mind a compelling argument, I dont believe it is nonsensical. Having programmed for Windows in C/C++, Pascal as well as BASIC, I feel that C/C++ is the most natural. Pascal does not use NULL terminalted strings. In BASIC everything is passed by reference, so you had to create a ByVal keyword. Also do to some limitations of Visaul Basic, you can't even include all of windows.h in an application, so you must hunt for the declarations you want and put them in. Perhaps it's the implenentations not the languages themselves. When you are using the same tools the vendor used to write the OS your going to be using a good implementation. The only Ada compiler I have is for DOS so I tend to view it as good for learning the language, but not much else. Also so you *must* admit that lingua prima of the PC world is C/C++, with Pascal and BASIC taking up the rear. There must be a reason for this even if the one I gave is not satisfactory. Perhaps as psycholigists say you can be a victim of the run of your patients. In UNIX there is a lot more support for C than Ada, so if I were start a project I would pick C not Ada. There have been pure Lisp machines in which the whole OS was written in Lisp. Also there is Oberon which is a pure enviroment-- not just a language. Theoretically you could program in any language. The question is how can I get the most done? I have a bias towards these types of implementation because they have worked well for me in the past. Perhaps your experiences have been different. >What possible connection is there between the language used to write an >OS, and the language in which the applications which run under it are written? It seems that those languages have the best implementations. And yes if the OS is written in assembler, you are better off with a HLL for that is the best way to leverage your time. -- Craig ----- clfranck@worldnet.att.net Manchester, NH There are no electrons...