Naive number questions
John M McIntosh
johnmci at smalltalkconsulting.com
Thu Nov 4 00:55:40 UTC 2004
No no think bigger
100000 factorial
That takes a bit of time, the large positive integer is 189,589 bytes
in size, mind it seems lots of time is taken to do the inspect which
triggers a printString which takes a LONG time.
So extra credit for doing printString size
This tests object creation and GC timing & abilities, more important
real world necessities for GC based VMs versus counting to a few
trillion.
On Nov 3, 2004, at 1:50 AM, stéphane ducasse wrote:
> yes I did
>
> 1000 factorial / 999 factorial
>
> 1000 factorial
>
> ;)
--
========================================================================
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===
More information about the Squeak-dev
mailing list
|