| Bill Allombert on Sun, 26 May 2024 00:27:33 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Making use of "GP in your browser" questions |
On Sat, May 25, 2024 at 10:58:52PM +0200, hermann@stamm-wilbrandt.de wrote: > On 2024-05-24 23:07, Bill Allombert wrote: > > https://jscad.app > > So I need to run gp-sta.js in node, not in browser. > gp-sta.js has no export, so require does not work. > But "import" does. > But import does not allow to import with "http:" or "https:" out of the box. > But with "--experimental-network-imports" > https://h3manth.com/posts/HTTP-imports-node/ > use of "http:" states that "https:" is needed for non-local addresses like > http://pari.math.u-bordeaux.fr/gpjswasm/gp-sta.js But you should be able to use https://pari.math.u-bordeaux.fr/gpjswasm/gp-sta.js or I misunderstand ? > so still work in progress. > > But what is amazing is that local gp-sta.js PARI/GP runs in node > already(!!), see below. Of course, this is how I run the test-suite in the CI! https://pari.math.u-bordeaux.fr/buildlogs/1b2f5ffb-fd50-4fda-ab37-40d03b986c21 Someday I will tell you how I compile it. Cheers, Bill