🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #269

Re: Will Java kill C++?

#269
From: Jan Steinman
Date: Tue, 16 Apr 1996 00:35
29 lines
1826 bytes
In article <31711755.328F@charm.net>, Bob Arning <arning@charm.net> wrote:

> Jan Steinman wrote:
...
> > 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? :-)
...
> Your standard disclaimer notwithstanding, it would be a more impressive 
> example if it actually worked. Where does the missing right paren go?

Oops! I separated it into one factor and four terms, but I guess I wasn't
counting right. Without the Smalltalk paren-matcher, I'd have to guess it
goes before the square bracket. Sorry!

 : Jan Steinman <mailto:Jan@Bytesmiths.com>
 : Bytesmiths, the Smalltalk specialists <http://www.bytesmiths.com>
 : "This is witty signature 1 of 47,288."
Technical Details
Message-ID: <Jan-1504962032120001@news.magmacom.com>
Path: arc1-ca.pugleaf.net!news.magmacom.com!Jan
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> <31711755.328F@charm.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.magmacom.com!Jan
From: Jan@Bytesmiths.com (Jan Steinman)
Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
Subject: Re: Will Java kill C++?
Date: 16 Apr 1996 00:35:15 GMT
Organization: Bytesmiths, the Smalltalk start-up specialists
Message-ID: <Jan-1504962032120001@news.magmacom.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> <316971B0.FEF@amd.com> <Jan-1104960033370001@news.magmacom.com> <31711755.328F@charm.net>
Reply-To: Jan@Bytesmiths.com
NNTP-Posting-Host: 206.116.214.1
X-Newsreader: Yet Another NewsWatcher 2.2.0b6