Article View: comp.lang.java
Article #246Re: Will Java kill C++?
From: Alan L. Lovejoy
Date: Sun, 14 Apr 1996 21:53
Date: Sun, 14 Apr 1996 21:53
35 lines
2520 bytes
2520 bytes
Mike Zorn wrote: > > In <4kbfn8$1bu@news1.is.net> mvantassel@teambca.com (Mark VanTassel) writes: > > >"Alan L. Lovejoy" <alovejoy@concentric.net> wrote: > >>Bzzzt! Not according to the benchmarks I've done. Go benchmark the factorial or fibonacci > >>functions (implemented recursively) in both C and a good Smalltalk. You are in for a big > >>surprise. > >I don't think this is a valid benchmark... (and I too fail to see how > >Smalltalk can be faster than C++ except perhaps in bizarre special > >cases) > True, the Fibonacci and factorial are not good candidates for a > recursive algorithm. (They're just taught that way because it's one > of the few recursive problems that we can understand in first-year > college courses.) > On the other hand, almost any interesting program, compiled & run > in different languages, should be able to give a good idea of how the > languages compare. For my part, I'd also like to look at the source > code, and know how long it took to write (and debug) the two programs. > So, Alan, I guess you'll have to come up with a program for > Ackermann's Function in C++ and Smalltalk to satisfy the rest of us. > > Mike Zorn ozma@kaiwan.com | Thought for the day: > http://www.kaiwan.com/~ozma/ | Java is C-- I did those benchmars to prove that Smalltalk message sends are faster than c function calls. To do that, I needed a benchmark that consisted mostly of function calls/message sends--and involved as little other code as possible. The recursive factorial and fibonacci functions meet those requirements better than anything else I could think of. To do any better, you'd need a completely synthetic benchmark. --alan
Technical Details
Message-ID:
<317173F1.5790@concentric.net>Path:
arc1-ca.pugleaf.net!newsfeed.concentric.net!newsReferences:
<3134D499.653E@ix.netcom.com> <313613B2.136E@ksopk.sprint.com> <4i7qhl$ik6@cronkite.seas.gwu.edu> <4iuhi7$fmf@sundog.tiac.net> <4iumap$mn5@hustle.rahul.net> <31582A45.3742@vmark.com> <3163C031.4FB1@esec.ch> <3164888D.2B01@concentric.net> <4kbfn8$1bu@news1.is.net> <4kqjf6$kh0@kaiwan009.kaiwan.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsfeed.concentric.net!news From: "Alan L. Lovejoy" <alovejoy@concentric.net> Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk Subject: Re: Will Java kill C++? Date: Sun, 14 Apr 1996 14:53:53 -0700 Organization: Modulation Message-ID: <317173F1.5790@concentric.net> References: <3134D499.653E@ix.netcom.com> <313613B2.136E@ksopk.sprint.com> <4i7qhl$ik6@cronkite.seas.gwu.edu> <4iuhi7$fmf@sundog.tiac.net> <4iumap$mn5@hustle.rahul.net> <31582A45.3742@vmark.com> <3163C031.4FB1@esec.ch> <3164888D.2B01@concentric.net> <4kbfn8$1bu@news1.is.net> <4kqjf6$kh0@kaiwan009.kaiwan.com> NNTP-Posting-Host: cnc009041.concentric.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01Gold (Win95; U)