#6391: libGAP!  -- create a Cython library interface to gap
---------------------------+------------------------------------------------
   Reporter:  was          |       Owner:  was       
       Type:  enhancement  |      Status:  needs_work
   Priority:  major        |   Milestone:  sage-4.7  
  Component:  interfaces   |    Keywords:            
     Author:               |    Upstream:  N/A       
   Reviewer:               |      Merged:            
Work_issues:               |  
---------------------------+------------------------------------------------

Old description:

> There's libSingular, there's libPari, and next we need to create libGAP.
>

> Older spkg:
>
> http://sage.math.washington.edu/home/wstein/patches/gap/gap-4.4.10.p17.spkg
>
> Rebased, for Sage 4.6.1 and GAP 4.4.12:
>
>    http://sage.math.washington.edu/home/dima/packages/gap-4.4.12.p5.spkg
>
> Current snapshot, handles errors (such as zero division) better, for Sage
> 4.6.1 and GAP 4.4.12:
>
>    http://sage.math.washington.edu/home/dima/packages/gap-4.4.12.p6.spkg

New description:

 There's libSingular, there's libPari, and next we need to create libGAP.

 Most current spkg for Sage-4.7.alpha1:
   http://www.stp.dias.ie/~vbraun/Sage/spkg/gap-4.4.12.p7.spkg


 Older versions:
 http://sage.math.washington.edu/home/wstein/patches/gap/gap-4.4.10.p17.spkg
    http://sage.math.washington.edu/home/dima/packages/gap-4.4.12.p5.spkg
    http://sage.math.washington.edu/home/dima/packages/gap-4.4.12.p6.spkg

--

Comment(by vbraun):

 Changes to the newest spkg:
  * removed dist directory
  * removed unsetting CC/CXX since "sage -sh" sets these to sane values
  * converted all copied files from patches/ into patches
  * using libtool to build libGAP
  * Code cleanups

 Basic functionality now works including trapping errors:
 {{{
 sage: import sage.libs.gap.gap as g
 sage: g.libgap('1/0')
 ERROR: An unexpected error occurred while tokenizing input
 The following traceback may be corrupted or invalid
 The error message is: ('EOF in multi-line statement', (1312, 0))

 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /home/vbraun/opt/sage-4.7.alpha1/devel/sage-main/sage/libs/gap/<ipython
 console> in <module>()

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/structure/parent.so in sage.structure.parent.Parent.__call__
 (sage/structure/parent.c:6816)()

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3254)()

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3157)()

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/libs/gap/gap.so in
 sage.libs.gap.gap.Gap._element_constructor_ (sage/libs/gap/gap.c:4963)()
     684         """
     685         initialize_libgap()
 --> 686         return self.element_class(self, x)
     687
     688

 /home/vbraun/Sage/sage/local/lib/python2.6/site-
 packages/sage/libs/gap/gap.so in sage.libs.gap.gap.GapElement.__init__
 (sage/libs/gap/gap.c:3047)()
     366         except RuntimeError, msg:
     367             ClearError()
 --> 368             raise ValueError, 'Gap: '+str(msg)
     369
     370         assert Symbol == S_SEMICOLON, 'Did not end with
 semicolon?'

 ValueError: Gap: Rational operations: <divisor> must not be zero
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6391#comment:33>
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.

Reply via email to