hermann on Fri, 01 Mar 2024 12:28:03 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: "GP in your browser" is quite powerful |
On 2023-08-26 09:48, Bill Allombert wrote:
...I tried on stable version as well, but that did run out of memory: https://pari.math.u-bordeaux.fr/gp.htmlYes, asm.js memory management is less flexible than WASM and does not supportfully dynamic memory allocation. At this point, maybe we should only support WASM. Cheers, Bill.
Today I clicked on "Try GP in your browser" and landed on https://pari.math.u-bordeaux.fr/gpwasm.html so that seems to be standard now.I am impressed, did run in Chromium browser on 4GB RAM only Raspberry Pi5. Only the last "#digits(p)" took so long that I had to click "Wait" button
several times. Running in terminal is only 5.33× faster ... pi@raspberrypi5:~ $ gp -q ? { b=516693; e=1048576; p=polcyclo(3,-b^e); s=b^(e*3/2); [M,V]=halfgcd(s,p); [x,y]=[V[2],M[2,1]]; } ? ## *** last result: cpu time 1,213 ms, real time 1,297 ms. ? ... than in Chromium browser, here browser output: ? { b=516693; e=1048576; p=polcyclo(3,-b^e); s=b^(e*3/2); [M,V]=halfgcd(s,p); [x,y]=[V[2],M[2,1]]; } *** _^_: Warning: increasing stack size to 8000000. *** polcyclo: Warning: increasing stack size to 16000000. *** polcyclo: Warning: increasing stack size to 32000000. *** halfgcd: Warning: increasing stack size to 64000000. *** halfgcd: Warning: increasing stack size to 128000000. *** halfgcd: Warning: increasing stack size to 256000000. ? ## *** last result computed in 6,919 ms. ? x^2+y^2==p *** _^s: Warning: increasing stack size to 8000000. *** _+_: Warning: increasing stack size to 16000000. %3 = 1 ? s^2%p==p-1 *** _^s: Warning: increasing stack size to 8000000. *** _%_: Warning: increasing stack size to 16000000. *** _-_: Warning: increasing stack size to 32000000. %4 = 1 ? #digits(p) *** digits: Warning: increasing stack size to 8000000. *** digits: Warning: increasing stack size to 16000000. *** digits: Warning: increasing stack size to 32000000. *** digits: Warning: increasing stack size to 64000000. *** digits: Warning: increasing stack size to 128000000. *** digits: Warning: increasing stack size to 256000000. *** digits: Warning: increasing stack size to 512000000. %5 = 11981518 Regards, Hermann.