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: 10261c,90121986704b5776 X-Google-Attributes: gid10261c,public X-Google-Thread: fdb77,4873305131bf4d94 X-Google-Attributes: gidfdb77,public X-Google-Thread: 1014db,4873305131bf4d94 X-Google-Attributes: gid1014db,public X-Google-Thread: 10c950,90121986704b5776 X-Google-Attributes: gid10c950,public X-Google-Thread: 109fba,4873305131bf4d94 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,4873305131bf4d94 X-Google-Attributes: gid103376,public From: seebs@plethora.net (Peter Seebach) Subject: Re: Yet another stupid language war (was: ... the only languages you need!!) Date: 1997/10/31 Message-ID: <63d34m$ap7$1@darla.visi.com>#1/1 X-Deja-AN: 286210169 References: <34557f2b.1934172@news.mindspring.com> <3458D116.2D34@pseserv3.fw.hac.com> <63anc7$75p$1@darla.visi.com> <345947D2.D20EF8E9@horvath.com> X-Complaints-To: news@visi.com X-Trace: darla.visi.com 878317526 11047 205.166.146.1 (31 Oct 1997 17:05:26 GMT) Organization: Plethora Internet Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java.advocacy,comp.lang.pascal.ansi-iso,comp.lang.pascal.misc Date: 1997-10-31T00:00:00+00:00 List-Id: In article <345947D2.D20EF8E9@horvath.com>, Bob Horvath wrote: >I have heard of an Ada to Java bytecode compiler, so now I guess you can have >Ada everywhere! Java only runs on a smallish number of popular desktop platforms. >> Java is intended to produce executables and programs which are portable >> across all implementations; this does not necessarily make it a widely >> portable language. >I don't understand this statement. There are not implementations for some platforms, so, even if a program runs on all java implementations, it may not run on all that many different platforms. >> Speak for C++. :) C has a bit of history, but is really fairly >> consistent. :) >Hmmmm. How big is an int? Do you want storage space or range? Storage space is 'sizeof(int)', range is [INT_MIN, INT_MAX]. C is portable in a way unlike the way Java is. Code that doesn't need to know what size an int is can be portable among all implementations. Code which needs a specific size of object is frequently intrinsically not portable by nature. C wouldn't want to offer you a guaranteed, 32 bit type, because that might be horrendously inefficient on a 36-bit machine. :) -s -- seebs@plethora.net -- Speaking for myself. No spam please. Copyright 1997. All rights reserved. This was not written by my cat. C/Unix wizard - send mail for help! -- - More Net, Less Spam!