mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Msieve (https://www.mersenneforum.org/forumdisplay.php?f=83)
-   -   Factorization using WebAssembly -- The fastest in a browser? (https://www.mersenneforum.org/showthread.php?t=25454)

alpertron 2020-04-25 14:13

WebAssembly threads requires SharedArrayBuffer. This was implemented on major browsers but since Spectre and Meltdown attacks were found in January 2018, the feature was disabled in both Chrome and Firefox and deleted in Safari.

In Chrome 70 SharedArrayBuffer was enabled again, so this Web browser supports WebAssembly threads with no changes, Firefox requires [I]javascript.options.shared_memory[/I] preference to be set to true. Safari does not have SharedArrayBuffer, so it cannot support WebAssembly threads.

Notice that this does not mean that we cannot use more than one core of the processor to perform factorization, but it is a lot more complex and probably requires more memory for communication between the different processes.

William Stein 2021-07-01 17:32

PARI
 
Pari/GP is a fast way to factor numbers purely in your browser. It can factor the number you gave instantly. Try it here:

[url]https://pari.math.u-bordeaux.fr/gpexpwasm.html[/url]

Incidentally, I'm the guy that runs CoCalc, which like you said currently only does computations on a Linux machine on Google Cloud Platform. That said, here's a much newer compilation of the Pari using the latest versions of everything, hosted on CoCalc: [url]https://share.cocalc.com/share/79bf90077a47d96142452571b094e9c65bbdcf0c/pari/test/index.html?viewer=share[/url]


All times are UTC. The time now is 01:04.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.