From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-23 02:12:44 PST Sender: eric@ruckus.brouhaha.com From: Eric Smith Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Congratulations for the festive season References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C1ED472.7040102@qsl.network> <9vnh67$cct$1@bob.news.rcn.net> <3C2381E4.12E053FE@bartek.dontspamme.net> <3C23B4A2.54C610CA@bartek.dontspamme.net> <3C240D29.C7F79AA2@bartek.dontspamme.net> <3C256383.2A5C2E8A@bartek.dontspamme.net> Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy. Date: 23 Dec 2001 02:12:32 -0800 Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: ruckus.brouhaha.com X-Trace: 23 Dec 2001 02:20:27 -0800, ruckus.brouhaha.com Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.spies.com!ruckus.brouhaha.com Xref: archiver1.google.com comp.os.vms:56940 alt.sys.pdp10:8693 comp.sys.dec:10247 Arthur Krewat writes: > Yeah, but come on. Isn't it the programmer's fault that they can't write > good C code? Of course it is. But the reality is that it's going to get written badly by those programmers. So the responsible thing for the rest of us to do is to give those programmers tools that can protect them (and their victims, er, end users) from the most obvious stupid errors. The C language isn't the right tool. If you knew that most furniture was going to be made by klutzy people, you'd give them table saws that have finger guards, right? > Again, I see nothing wrong with the language except that it doesn't check > on the assholes. As I pointed out before, even experts slip up from time to time. So tools that can catch the more obvious screwups are preferrable to brain-damaged tools that can't. > Seen Ada, matter of fact had to tell the weenies how to program Ada in > an effective way (system admin for a place that did DOD stuff). Sounds like you're talking about efficiency. You can write inefficient code in any language, just like you can write buggy code in any language. There are several areas in which Ada implementations (and the language) tend to be criticized for inefficiency. In actuality, there is nothing in the language spec that can't be implemented just as efficiently as C code. People tend to complain about exceptions and generics, which actually have little run-time overhead. They also complain about garbage collection, which is not actually required by the language. However, I would argue that garbage collection is actually another thing that is well worth its small runtime cost. The usual criticism of garbage collection turns into complaints that it isn't suitable for real-time systems, which is a red herring. Memory management in real-time systems has to be done carefully whether you have garbage collection or not. Ada implementations let you explicitly deallocate your own memory (using the unchecked_deallocation generic), or you can plan your software to defer collection to acceptable times. The former is certainly no worse than C, and the latter is reasonably easy and less error-prone. > I like machine language, preferably in octal (for PDP-10's). You're never going to convince a non-trivial number of programmers of that being the Right Thing (tm). And I would argue that while that might be fine for you, you wouldn't really want to depend on the unwashed masses programming in that. The results would be much worse that what we have with C. > I never liked a compile/interpreter that pretended to know more than > I did. Are you making the "I don't want the compiler to tell me what I can and can't do" argument? That's the usual argument of assembler and C programmers against strongly typed languages. The counterargument is that while the compiler isn't smarter or more knowledgeable than the programmer, it is certainly better at mundane housekeeping tasks, and thus good at keeping track of data types and letting you know when you might have made a boo-boo. Generally people that run into a lot of problems with strong typing don't understand their problem or data well enough. In many programs there is a legitimate need for a small amount of type casting (between arbitrary types, e.g. Ada's unchecked_conversion generic,, not simple numeric casts as in C), but if you have to do a lot of it your program isn't well-structured. I've spend uncounted hours rewriting poorly structured code supplied by outside vendors, and invariably the results are cleaner, easier to understand, and have a lot less type casting.