#11005: Update Simon's GP scripts and convert to use via gp2c
-------------------------------+--------------------------------------------
Reporter: cremona | Owner: cremona
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.7.1
Component: elliptic curves | Keywords: simon spkg
Work_issues: | Upstream: N/A
Reviewer: | Author: John Cremona, Martin Raum
Merged: | Dependencies: #11230, #11234, #11130
-------------------------------+--------------------------------------------
Description changed by jdemeyer:
Old description:
> 1. Denis Simon's GP scripts (in data/extcode/pari/simon) need updating.
>
> 2. Using them via gp2c would be more efficient.
>
> The scripts have been combined into one and revised to make the gp2c-
> compliant, and gp2c has been used to make a single C file from them.
> This can be compiled (once, on building Sage) into a shared library file
> which can then be used in a GP session, the result being faster running
> of all the functions.
>
> To implement this we (1) created a new spkg containing the C file, which
> on bring installed puts tha .so into data/extcode/pari/simon (together
> with a helper GP script); (2) patched the extcode repository (removing
> the old scripts); (3) patched the sage library repository, mainly to
> adapt the interface in elliptic_curves/gp_simon.py but also to correct
> the doctest output (due to the script upgrade giving different generators
> in some cases).
>
> So there are two patches needed! Now, there is also an spkg at
>
> http://sage.math.washington.edu/home/mraum/simon-20110321.spkg
>
> 1. Apply the patch trac_11005-simon-sage.patch to the sage library.
> 2. Apply the patch trac_11005-simon-extcode.patch to the extcode
> branch
> 3. Apply the patch trac-11005-simon-sage-2.patch.
> 4. Apply the spkg using "sage -f".
>
> No doubt I will be told that I should have done something differently,
> but this is enough for people to test. The main thing which will need
> checking on different platforms is whether the compile commands in the
> spkg-install work OK. (I borrowed code from the ratpoints spkg.)
New description:
1. Denis Simon's GP scripts (in data/extcode/pari/simon) need updating.
2. Using them via gp2c would be more efficient.
The scripts have been combined into one and revised to make the gp2c-
compliant, and gp2c has been used to make a single C file from them. This
can be compiled (once, on building Sage) into a shared library file which
can then be used in a GP session, the result being faster running of all
the functions.
To implement this we (1) created a new spkg containing the C file, which
on bring installed puts tha .so into data/extcode/pari/simon (together
with a helper GP script); (2) patched the extcode repository (removing
the old scripts); (3) patched the sage library repository, mainly to
adapt the interface in elliptic_curves/gp_simon.py but also to correct the
doctest output (due to the script upgrade giving different generators in
some cases).
So there are two patches needed! Now, there is also an spkg at
http://sage.math.washington.edu/home/mraum/simon-20110321.spkg
1. Apply the patch trac_11005-simon-sage.patch to the sage library.
2. Apply the patch trac_11005-simon-extcode.patch to the extcode branch
3. Apply the patch trac-11005-simon-sage-2.patch.
4. Apply the spkg using "sage -f".
No doubt I will be told that I should have done something differently, but
this is enough for people to test. The main thing which will need
checking on different platforms is whether the compile commands in the
spkg-install work OK. (I borrowed code from the ratpoints spkg.)
See also #11372 (a bug which might be fixed by this ticket).
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11005#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.