David, Ducasse,
Goran - Re: Query about Long Number Calcs and Shareability
John M McIntosh
johnmci at smalltalkconsulting.com
Sat Feb 21 04:23:10 UTC 2004
You mean
(14229499582749302182940392839403938400058748399920384875773202816267485
94937267261/47) asDouble
3.027553102712617e79
Consider setting up a squeak http server (yes all the code exists for
that). Which allows you to enter numbers on a form, then have squeak
do the math, and return the results. Also you could do this with
sockets, write data to squeak VM listening socket, read results from
socket.
start a unix squeak headless server somewhere to be the calculation
engine. It will multi-task multiple request on lightweight threads.
Lastly I'm not sure if anyone pointed out
http://sourceforge.net/projects/dhbnumerics/
Smalltalk numerical analysis codes based on Didier Besset's
"Object-Oriented Implementation of Numerical Methods: An Introduction
with Java & Smalltalk", 2000, Morgan Kaufmann Publishers. Which came
out of work done at Camp Smalltalk.
On Feb 20, 2004, at 10:42 AM, Colin Putney wrote:
>> Ducasse mentions 1000 and 2000 length number strings could we
>> actually perform operations on these and get accurate results to four
>> decimal places with out rounding off? Could you give an example of
>> how this might be done in code (roughly)? Is it quite the acrobatic
>> feat or just normal Squeak math operations inline? Call me dense.....
>> (I'm sometimes a bit thick / slow - when first trying to viusalize
>> something.....) but I can't yet see how this would be done ....
>>
--
========================================================================
===
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
|