Browser plug-in exposes 226 GMP functions to JavaScript

John Tobey jtobey at john-edwin-tobey.org
Thu May 10 20:34:00 CEST 2012


The GMP plugin now correctly computes 1 million digits of pi in about
twice the time the C program takes, running in-process under Firefox
12 on Ubuntu 11.10 x86.  (So I guess the JavaScript overhead about
equals the computation time.)

Original: http://gmplib.org/pi-with-gmp.html

Translated to JS:
https://github.com/jtobey/javascript-bignum/blob/master/src/pi.html

Caution: the plugin contains bugs.

Enjoy!
-John

On Fri, Apr 20, 2012 at 4:11 PM, John Tobey wrote:

    JavaScript bindings for GMP in Firefox, Chrome, etc.

    https://github.com/jtobey/javascript-bignum/tree/master/src


More information about the gmp-discuss mailing list