Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site desint.UUCP Path: utzoo!linus!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!trwrb!desint!geoff From: geoff@desint.UUCP (Geoff Kuenning) Newsgroups: net.lang.c Subject: Re: Re: C needs BCD (ANSI People: Please Lis Message-ID: <199@desint.UUCP> Date: Wed, 7-Nov-84 23:04:19 EST Article-I.D.: desint.199 Posted: Wed Nov 7 23:04:19 1984 Date-Received: Sat, 10-Nov-84 03:06:43 EST References: <105@ISM780B.UUCP> <869@ihuxn.UUCP> Organization: his home computer, Thousand Oaks, CA Lines: 43 In article <869@ihuxn.UUCP> Rich Strebendt writes: >> PL/I has already been invented. It has 11 million different flavors >> of arithmetic. Why didn't you use it? Too slow? Not available? >> Think about why that might be. > >Why does the author of this question think that might be? I would be >willing to lay odds that he is dead wrong!!! As to why I think so, >continue to my comments below: [A discussion of the well-known fact that 70% of all software is written in COBOL follows]. >I will agree that PL/I suffered from trying to be all things to all >people and ended up doing none of them superlatively well, but that was >not why it did not catch on in the business DP community. Harumph. Certainly conservatism had something to do with it. But PL/I was, and is, an amazing pig compared to COBOL, which is hardly efficient. When you are buying from IBM, that translates into millions of dollars of extra hardware. >Sooooo, if we have to decide between FP and BCD, the smart money would >be betting on BCD. FP is of academic interest! Harumph again. BCD is necessary for the business community. C, in case you hadn't noticed, is not targeted at business programming. Just because 70% of all software is written for business (more accurately, 70% of all lines of code--COBOL is a pretty high-line-count language) doesn't mean a language intended for systems programming should implement BCD! The interesting question is how often you need each data type, and what the expense is of doing it in software. Systems programs and utilities occasionally need extended precision and range, but they do not have problems with binary/decimal conversion. BCD exists *not* because it is the only way to get extended precision, but because a business program that did decimal/binary/decimal conversion during its processing would be a lot slower. This is not true of systems software. Software floating point, on the other hand, is *excruciatingly* slow. -- Geoff Kuenning First Systems Corporation ...!ihnp4!trwrb!desint!geoff