From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-28 18:12:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fdn.fr!teaser.fr!nerim.net!grolier!newsfeeds.belnet.be!news.belnet.be!newsfeed1.news.nl.uu.net!sun4nl!not-for-mail Message-ID: <3A9DB011.BD532232@infopuls.com> Date: Thu, 01 Mar 2001 02:12:33 +0000 From: Christof Brass Organization: InfoPuls X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.0.36 i586) X-Accept-Language: de MIME-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later References: <87n1baae6s.fsf@prep.synonet.com> <97bm3a$7tv@gap.cco.caltech.edu> <3A99AED0.5DF07890@infopuls.com> <97cd06$hcn$1@pyrite.mv.net> <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <97hofv$j4u$1@pyrite.mv.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cache-Post-Path: fuchs.cyberlink.ch!unknown@193.247.146.165 X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 193.246.253.18 X-Trace: 983412627 news.ch.uu.net 179 193.246.253.18 Xref: supernews.google.com comp.os.vms:20629 comp.sys.dec:2944 Bill Todd wrote: > > Christof Brass wrote in message > news:3A9B023A.CBD414A5@infopuls.com... > > ... > > > What do you mean with "it's often in a kernel there usually > > aren't all that many alternatives"? Are you writing code for an > > OS kernel? > > Yes - e.g., drivers and installable file systems. > > Why isn't there any alternative and to what? May I insist? I don't see any problem in using any PL which produces binary compatible code for writing this sort of code. Obviously you can't use a runtime system specificy to that language or an interpreter which e.g. excludes Smalltalk. > > > > Very good point: the language doesn't help anyone from making > > certain mistakes or finding certain improvments. But a good > > language supports you in accomplishing what you want to do in > > shorter time with better quality. > > Quality is not, as I said, something I have difficulty achieving. And I > find having to think, in detail, about what I'm doing contributes to the > quality of the result in ways other than just having correct code. Perhaps it's then time? Please re-read my statement. Quality and time are normally related. > > This is not a point in favour of C/C++. > > > > Talking about competence: There isn't any problem which cannot > > be solved better in a language different from C and C++. > > How about the problem that the rest of the kernel is written in that > language and maintained by people primarily familiar with that language? > Until you can change that, that's a major C/C++ advantage in *practice*, > regardless of whether you believe that *if* that kernel had been written in > another language it would be better. Depends on two factors: how entangled is your work and how easy is it to use a C/C++ API (or more precise the Kernel Module Interfaces) from the other language. > Unlike academics, many of us have to deal with things as they are, not as we > might wish they were. It gives one a somewhat different slant on the art: > one is grateful for things that work, even if they're less than elegant, and > appreciates tools that, while they may be dangerous, are also capable of > doing whatever job needs to be done if placed in competent hands. You have a point. > A language is just a tool. If it can be used effectively, it doesn't > deserve to be called crap, even if some other language might be safer and/or > more elegant and/or easier to use. When better languages have replaced > C/C++ to the extent that C/C++ have replaced assembler, then it *would* be > reasonable to call C/C++ 'verging on obsolete' - or at least too esoteric > for common use. Until that time, C/C++ contribute significantly to the > industry, and form one cornerstone of the open-source effort you appear to > appreciate. > > - bill I regret that most open source projects are using these languages even if there is no need similar to what you described. We should keep two things apart: what we have to do and the quality of the tool. We should be free enough to admit that *although* a lot of useful SW is implemented in C/C++ the languages are *pure* crap. C because it's far behind compared to what is possible today. C++ because it's behind, bloated and undesigned. If you master C++ you are an exception. But the wide spread use of C++ indicates that *a lot* of not exceptionel programers are using this powerful (although lacking some power) but very dangerous language. We see an enormous mis-ratio between suitable use (perhaps 1%) and actual use (perhaps 20%).