--=20 ---------- Forwarded message ---------- Date: Wed, 21 Jan 2004 12:29:28 +0100 From: "[unknown-8bit] Dani=EBl W. Crompton" <webhat@xxxxxxxxx> To: beowulf@xxxxxxxxxxx Subject: Re: [Beowulf] Which is better GNU C or JAVA (for network programing) On Wed, Jan 21, 2004 at 12:50:10AM +0100, Jakob Oestergaard wrote: > On Tue, Jan 20, 2004 at 08:05:45AM -0500, Robert G. Brown wrote: > > On Mon, 19 Jan 2004, prakash borade wrote: < ... snipped for brevity ... > > > Now we can give the correct answer, which is "C". > Typing a little fast there, I think... The correct answer for anything > larger than 1KLOC is "C++" - of course, you knew that, you were just a > little fast on the keyboard ;) =09While I can find litte fault with your posts I should note that there are a number of points which I would like to mention. =09Firstly, obviously YHBT YHL HAND. =09Now I've got that out of the way, there was a light weight comparative benchmark[1] on OSNews. Obviously, as you will see, they only tested some simple things, but the tests showed Sun's Java performed quite well when compaired to GCC. =09Compairing it to GCC is a little cheap though, as we know from the benchmarks in October edition of Dr Dobbs Journal[2]: GCC, it may have the best ANSI C/C++ support produces the bulkiest code and, although not always, slower code that a processor specific design such as Intel's C++ compiler. =09The have been a lot of myths[3] floating around about Java performance, and although IMO floating point precision sucks in Java, it is not as bad a= s people think. =09The main reason that I vote for Java and not my favorite C or my second favorite C++ is that the person who asks this question will just be adding more bad/exploitable C/C++ network code to the world. And I don't really think we should be encouraging that. [1] Nine Language Performance Round-up: Benchmark Math & File I/O - C.W. Co= well-Shah =09http://osnews.com/story.php?news_id=3D5602 [2] Compairing C/C++ Compilers - M. Wilson =09http://www.ddj.com/articles/2003/0310/ [3] Urban Performance Myths - B. Goetz http://www-106.ibm.com/developerworks/java/library/j-jtp04223.html?ca=3Ddgr= -lnxw01JavaUrbanLegends yours, Daniel (ever the debunker) blaze your trail -- redhat 'I am become Shiva, destroyer of worlds' _______________________________________________ Beowulf mailing list, Beowulf@xxxxxxxxxxx To change your subscription (digest mode or unsubscribe) visit http://www.b= eowulf.org/mailman/listinfo/beowulf