#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-5.13
      Component:  elliptic curves    |   Resolution:
       Keywords:  simon_two_descent  |    Merged in:
  spkg                               |    Reviewers:
        Authors:  John Cremona,      |  Work issues:  Update to work with
  Martin Raum                        |  Simon's latest scripts
Report Upstream:  N/A                |       Commit:
         Branch:                     |     Stopgaps:
   Dependencies:  #11230, #11234,    |
  #11130                             |
-------------------------------------+-------------------------------------
Description changed by pbruin:

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) patched the extcode repository (removing the old
> scripts);  (2) 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); (3) patched the build system so that the c file (also now in
> elliptic_curves/) is compiled and the resulting shared library installed
> where it can be loaded.
>
> So there are two patches needed!  (Previous versions of this also
> required a new spkg but that was redundant.)
>
>    1. Apply the patch trac_11005-simon-sage-3.patch to the sage library.
>    2. Apply the patch trac_11005-simon-extcode.patch to the extcode
> branch.
>
> Followed by sage -b.
>

> See also #11372 (a bug which might be fixed by this ticket).

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) patched the extcode repository (removing the old
 scripts);  (2) 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); (3) patched the build system so that the c file (also now in
 elliptic_curves/) is compiled and the resulting shared library installed
 where it can be loaded.

 So there are two patches needed!  (Previous versions of this also required
 a new spkg but that was redundant.)

    1. Apply the patch trac_11005-simon-sage-3.patch to the sage library.
    2. Apply the patch trac_11005-simon-extcode.patch to the extcode
 branch.

 Followed by sage -b.


 See #11041 for a list of related bug reports.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/11005#comment:26>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to