#6391: libGAP!  -- create a Cython library interface to gap
-------------------------+--------------------------------------------------
 Reporter:  was          |       Owner:  was       
     Type:  enhancement  |      Status:  new       
 Priority:  major        |   Milestone:  sage-4.1.2
Component:  interfaces   |    Keywords:            
 Reviewer:               |      Author:            
   Merged:               |  
-------------------------+--------------------------------------------------

Comment(by was):

 This log pretty much explains what/why/what next:
 {{{
 sage: import sage.libs.gap.gap as g
 sage: a = g.libgap('10')
 sage: a
 10
 sage: type(a)
 <type 'sage.libs.gap.gap.GapElement'>
 sage: a*a
 100
 sage: timeit('a*a')
 625 loops, best of 3: 209 ns per loop
 sage: b = gap('10')
 sage: b
 10
 sage: b*b
 100
 sage: type(b)
 <class 'sage.interfaces.gap.GapElement'>
 sage: !ps ax |grep gap
  5497 pts/110  Ss+    0:00
 /home/bober/sage-4.1/local/lib/gap-4.4.10/bin/x86_64-unknown-linux-gnu-
 gcc/gap -m 24m -l /home/bober/sage-4.
 19751 pts/84   SNs+   0:00
 /home/SimonKing/SAGE/sage-4.1.alpha1/local/lib/gap-4.4.10/bin/x86_64
 -unknown-linux-gnu-gcc/gap -m 24m -l /ho
 27563 pts/109  Ss+    0:00
 /scratch/steinz/sage/local/lib/gap-4.4.10/bin/x86_64-unknown-linux-gnu-
 gcc/gap -m 24m -l /scratch/steinz/sag
 27572 pts/98   S+     0:00 sh -c ps ax |grep gap
 27574 pts/98   S+     0:00 grep gap
 sage: b.name()
 '$sage1'
 sage: timeit('b*b')
 625 loops, best of 3: 292 µs per loop
 sage: a = g.libgap('0')
 sage: a
 0
 sage: b = g.libgap('10')
 sage: b/a
 hit stderr
 }}}

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