NNTP-Posting-Date: Thu, 02 Jun 2011 04:35:13 -0500 From: rossum Newsgroups: comp.lang.java.programmer Subject: Re: Android—Why Dalvik? Date: Thu, 02 Jun 2011 10:35:04 +0100 Message-ID: <71meu69511266d561jhov9a8d16d4ko77v@4ax.com> References: X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 33 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-ePQyJ8QwEpc3IE8m52CVrGghxLf36yoR3rGS9J1LiAGH++b/dGHogHZ8QnSLeNuV+xlkAFWEQumeyol!dlSo58RjgCXOsRc6UrpVFte8xJIZrDaehsALs7G5Jg83J6dBoouOmKoZrjJIgI2Jc4gg/UuuCnZE!9PUS2A== X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2756 Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4882 On Thu, 02 Jun 2011 11:54:06 +1200, Lawrence D'Oliveiro wrote: >In message , Joshua Cranmer wrote: > >> On 05/31/2011 11:05 PM, Lawrence D'Oliveiro wrote: >> >> Funny. I thought C/C++ was supposed to be portable. > >C certainly is. “Write once, run everywhere” is more true of C than it is of >Java; a portable compiler like GCC means C is the most portable language in >the world. > >> With Java, it doesn't matter which compiler I use to link the binary, they >> all the do same thing. Even if I don't program my code in Java. ;-) >> >> Java has extreme ABI portability--any compiler, any OS, any arch. > >At the cost of putting the burden on the recipient of your code to figure >out how to run a .jar file on their system. To run a .jar file on my system I double click on the file. I can run a C program using the GCC compiler as well but it is a lot more trouble than a double click. On my system a .jar file is immediately runnable while a C source file isn't. C is not "write once run everywhere" it is "write once, compile and run everywhere." Java removes the compile step from the user's end. To me the .jar is more portable. rossum