Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Java

Reply
 
LinkBack Thread Tools Display Modes
Old 06-16-2004, 07:06 AM   #1 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,139
Belisarius is on a distinguished road
My professor's kid got posted on Slashdot

My professor helps in the development of Java, and his kid apparently got tired of hearing people bash Java for being slow, so he ran a bunch of tests that showed Java, when run right, would often beat C++ by a hair. Oddly enough, it eventually got picked up on Slashdot, so we all gave our professor kudos on properly raising an uber-nerd.

Slashdot article

The Java is Faster than C++ and C++ Sucks Unbiased Benchmark
__________________
GitS
Belisarius is offline   Reply With Quote
Old 06-16-2004, 07:56 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
cool, .. how old is the 'kid' ?
__________________
Mike
sde is offline   Reply With Quote
Old 06-16-2004, 08:30 AM   #3 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,139
Belisarius is on a distinguished road
College age, which is 20, plus or minus.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 06-16-2004, 12:12 PM   #4 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
I saw the /. article. I may have to go back and read the details now.
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
technobard is offline   Reply With Quote
Old 06-19-2004, 03:33 AM   #5 (permalink)
npa
Code Monkey
 
Join Date: Jul 2003
Location: canada
Posts: 82
npa is on a distinguished road
there is absolutely no way java can be
faster then c++, in the specialised case.

secondly, the code on the site is not even
well-written, nor does it include the actual
timing code that he has implemented ...

consider this, 'fibo', from the c++ version:
Code:
    if (n < 2)
	return(1);
    else // useless else
	return(fib(n-2) + fib(n-1));
and the 'else' is left out of the java version:
Code:
	if (n < 2) return(1);
	return( fib(n-2) + fib(n-1) );
, despite this - the original comment stands - there
is absolutely no possibility for java to beat c++ in a
specialised case.

that said, i prefer developing in java.
__________________
direct entry file specification.
npa is offline   Reply With Quote
Old 06-19-2004, 06:23 AM   #6 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,139
Belisarius is on a distinguished road
To be fair, I think the entire thing was a bit tongue-in-cheek, he just wanted to show that Java isn't as slow as people kept saying it was. It was a bit of turn-around from C++ programmers mangaling Java code when running tests.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slashdot is down!!!! Belisarius Lounge 4 04-14-2004 03:09 PM


All times are GMT -8. The time now is 05:07 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting