Article View: comp.lang.java
Article #237Re: Will Java kill C++?
From: Mike Zorn
Date: Sun, 14 Apr 1996 10:19
Date: Sun, 14 Apr 1996 10:19
26 lines
2100 bytes
2100 bytes
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. >You're not seriously suggesting that a fibonacci series be programmed >recursively, are you??? Have you looked at the number of operations >involved in calculating, say, the 1000th term as vs a standard looping >approach? >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--
Technical Details
Message-ID:
<4kqjf6$kh0@kaiwan009.kaiwan.com>Path:
arc1-ca.pugleaf.net!kaiwan.kaiwan.com!kaiwan-internetReferences:
<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>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!kaiwan.kaiwan.com!kaiwan-internet From: ozma@kaiwan009.kaiwan.com (Mike Zorn) Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk Subject: Re: Will Java kill C++? Date: 14 Apr 1996 03:19:18 -0700 Organization: Kaiwan, a PGP (Pretty Good Provider) Message-ID: <4kqjf6$kh0@kaiwan009.kaiwan.com> 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> NNTP-Posting-Host: kaiwan009.kaiwan.com