Looking at the trampoline feature, I could not resist and experiment with 
employing it and have the
faculty of one million calculated using a precision of ten million digits!

Running on an older laptop (T7600 @ 2.33 GHz, two CPUs, 2 GB RAM, Windows XP 
SP3): took one day, 19
hrs and 13 minutes. The resulting number has 5.565.709 digits!
Running on the same laptop, but using "only" numeric digits 100, the result was 
calculated in less
than a minute!

Here the first 2000 digits of the resulting number:

    res:        
[8263931688331240062376646103172666291135347978963873045167775885563379611035645084446530511311463973351606804210
    
87858854146474695064783618230121097542329959011564174624917379888389269193414176545783239319872802472198939643654445521615339
    
20583519938798941774206240841593987701818807223169252057737128436859815222389311521255279546829742282164292748493887784712443
    
57228595093436211764525449305226584119762990561901212024141900253412831943306507620700405159591511718661384475090075583403742
    
71376868770420937510235026334012483413149102176845494312736363990669719529613457333185577827926166902990562020543694097070666
    
47851950401003675381978549679950259346666425613978573559764142083506254450884333700191034646738768455143860797752914909146431
    
24095355211845475532162241503968697233745499833067172880953624648077818320285426377421697236875196416847586471082421002997781
    
80917677898375179885052302287080350414430331143865310703303359946872239071017851847402978308794136484637681285596049813171765
    
92935316306651748060977240375607291075142479169220460316550297169354047663716190369381921896827532213492684751953501004003352
    
55754749084696578284256885422102069005135327700296694166578456103340306518057531283674663930273623823028538366724195760861471
    
74113288761986851192463922239454903418407170452419127856039173818065632292055980341496433939625002178497725812661138248429892
    
68461523442361118297456949837880338146874699517099836346390273203494110645894272490579230586018143489052638296317734261173162
    
13792554305450984461464453919949930041011911236049279494601295130659278247356204716530093403421148592953866359624474610973032
    
53380618748369952010062827823753289857996942389068885295677159492092251495838068565145059667090455569731727177301400443280810
    
28253902520864800089839066315497846656900420712066548160292683938943423565931192630890840193101695234971107709046977878661139
    
05135675939369298998926409043243894492108690938445966098327758208235883512238936111346466640661817871870440916923509980465007
    2819161636524...]

Thinking how much calculations had to be done on what kind of lengths, I am 
quite surprised how fast
this went! (The last 1.000 multiplications in the full precision case were 
carried out in three
minutes and 37 seconds, where each resulting number consisited of more than 5.5 
million digits!):

    res:        
[8.263931688331240062376646103172666291135347978963873045167775885563379611035645084446530511311465094E+5565708]
    res~length: [110]

---

Then I created a regular looping program that ran under a precision of 10 
million digits on a
relatively new desktop (E8400@3 GHz, two CPUs, 8 GB RAM, Linux, official ooRexx 
4.1.0), saving the
results of each 1.000 multiplications in a separate file took one days and 
three hours. Although
these machines cannot be directly compared, the old laptop did quite well.

---

Again, very impressive and a great job regarding trampoline which now allows 
ooRexx programmers to
carry out complex recursive programs that otherwise would quickly blow-up the 
control stack!

---rony

P.S.: If anyone is interested, I could post the full number, which would yield 
a message that is 5.5
MB! ;)

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to