Article View: comp.lang.java
Article #240Re: Will Java kill C++?
From: Bob Arning
Date: Sun, 14 Apr 1996 15:18
Date: Sun, 14 Apr 1996 15:18
47 lines
2432 bytes
2432 bytes
Jan Steinman wrote: > > In article <316971B0.FEF@amd.com>, "Paul G. Schaaf, Jr." > <paul.schaaf@amd.com> wrote: > > > ...I would also argue that most of the remaining things in > > Smalltalk are not "significantly slower" than c/c++... > > Then there's floating-point. I guess Paul is covered because he said "most." :-) > > Don't get me wrong, I'm one of the biggest ST fans around, but I wouldn't > suggest it for serious number-crunching, unless you're doing infinite > precision math, in which case it does okay -- not fabulous, but not bad. > > Smalltalk's strength is productivity -- its run-time is usually "fast > enough." Don't use a hammer to drive screws! > > For example, I'll bet I can CODE AND CALCULATE pi to n places faster in > Smalltalk than the time it would take to simply COMPILE the C program! > > Ready, set, go (standard disclaimer, typed in off the top of my head): > > | pi n | > pi := 0. > n := "number of hex digits of precision desired" > 1 to: n do: [:i | pi := pi + > ((1 / (16 raisedTo: i) * > ((4 / ((8 * i) + 1)) + > (2 / ((8 * i) + 4)) + > (1 / ((8 * i) + 5)) + > (1 / ((8 * i) + 6))))]. > pi > > Okay, has your C compiler finished yet? :-) Hi Jan, Your standard disclaimer notwithstanding, it would be a more impressive example if it actually worked. Where does the missing right paren go? Cheers, Bob > > : Jan Steinman <mailto:Jan@Bytesmiths.com> > : Bytesmiths, the Smalltalk specialists <http://www.bytesmiths.com> > : 2002 Parkside Court, West Linn, OR 97068 USA +1 503 657 7703
Technical Details
Message-ID:
<31711755.328F@charm.net>Path:
arc1-ca.pugleaf.net!news.charm.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> <316971B0.FEF@amd.com> <Jan-1104960033370001@news.magmacom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.charm.net!news From: Bob Arning <arning@charm.net> Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk Subject: Re: Will Java kill C++? Date: Sun, 14 Apr 1996 11:18:45 -0400 Organization: Charm.Net Baltimore Internet Access, Hon (410) 558-3900 Message-ID: <31711755.328F@charm.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> <316971B0.FEF@amd.com> <Jan-1104960033370001@news.magmacom.com> NNTP-Posting-Host: arning.charm.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (Macintosh; U; 68K)