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: 10a146,a03ae7f4e53958e1 X-Google-Attributes: gid10a146,public X-Google-Thread: fac41,a03ae7f4e53958e1 X-Google-Attributes: gidfac41,public X-Google-Thread: 109fba,a03ae7f4e53958e1 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,a03ae7f4e53958e1 X-Google-Attributes: gid1014db,public X-Google-Thread: 1094ba,a03ae7f4e53958e1 X-Google-Attributes: gid1094ba,public X-Google-Thread: fa0ae,a03ae7f4e53958e1 X-Google-Attributes: gidfa0ae,public X-Google-Thread: 114809,a03ae7f4e53958e1 X-Google-Attributes: gid114809,public X-Google-Thread: 103376,8775b19e3c68a5dc X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Which language pays most? Smalltalk, not C++ nor Java. Date: 1997/12/31 Message-ID: #1/1 X-Deja-AN: 311717873 References: <199712121931.LAA25389@sirius.infonex.com> <68bu22$geg$1@brie.direct.ca> <68c66j$ei3$1@client3.news.psi.net> <68dvjv$m70$1@darla.visi.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 883597323 14338 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++,comp.lang.eiffel,comp.lang.java.programmer,comp.lang.smalltalk,comp.lang.perl.misc,comp.lang.ada,comp.edu Date: 1997-12-31T00:00:00+00:00 List-Id: David says <> Sure, but you should be able to program this easily in any language. Unfortunately, in practice it is often difficult to program efficient multiple precision arithmetic because none of the common languages provide the necessary primitives, e.g. Add A+B generating sum, carry Add A+B+carry, generating sum, carry In addition you need Multiply single length giving double length Divide single into double giving single quotient and single remainder COBOL has the last two, but other languages do not. Your compiler may recognize some idiom such as x = (long)a + (long)b; or X := Long_Integer (A) + Long_Integer (B); (C or Ada) and generate reasonable code, but it may well not, and you may end up with a horror, particularly if the addition is replaced by multiplication in the above assignments.