Charles Greathouse on Wed, 27 Jan 2016 08:42:51 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Experimental javascript port of GP


This is great! I notice it doesn't work (at least for me) in Chrome, though I tested that it works in Firefox and Edge. (Any Safari/IE/Opera/etc. users want to chime in?)

I actually attempted this not long ago, though I got stuck toward the end of the process with dependencies. My goal was to get gp2c working, both for its intended purpose and with -G as a code cleanup tool. Any chance of getting this working?

Charles Greathouse
Analyst/Programmer
Case Western Reserve University

On Fri, Jan 22, 2016 at 3:59 PM, Loïc Grenié <loic.grenie@gmail.com> wrote:
On 2016-01-22 at 21:49 GMT+01:00 Bill Allombert wrote:
Dear PARI developers,
Following Bernard Parisse (the author of xcas) demo
at the Ateliers, I have built PARI/GP to _javascript_ using emscripten.

The result is a version of GP that run in your browser.
You can try it at
<http://pari.math.u-bordeaux.fr/gp.html>

      Wonderful!
 
It has close to the same feature set as the stand-alone windows binary.
The speed depends on your web browser.
With firefox, it is about four time slower than a native binary.
(part of the slowness being due to _javascript_ missing support for
64bit integers, so PARI is compiled for 32bit).

One test is
factor(2^128+1)

you can time it using
my(t=getwalltime());factor(2^128+1);getwalltime()-t

435

  (153 in a native 64bit binary) what do I win?
 
(gettime() does not work)

     However bnfinit does, so the most important function ever is
  working!
 
          Loïc