On 10/29/07, Anton Mellit <[EMAIL PROTECTED]> wrote:
> sorry for my rant. In fact indeed I am making pari-python module and I
> would like to study how this is realized in SAGE.

If you're making a C-extension module we do it by writing
a Pyrex (actually Cython) file, gen.pyx:

http://www.sagemath.org/hg/sage-main/file/22f456794143/sage/libs/pari/gen.pyx

This wraps most of the functionality of PARI, and has some nice
improvements, e.g., running out of pari memory does not result
in a "pari stack overflow message" -- it automatically doubles
the stack; also pari objects are stored on the Python heap.

> make and it starts to unpack and compile all the packages from spkg/
> standard in alphabetic order. Say elliptic curves, graphs and conway

It's not in alphabetic order.  It's in an order determined by
the makefile
     spkg/standard/deps

> polynomials. I am sure that these packages are not really necessary to
> run sage.

At least 80% of them are required just to start sage.

> To William:
> > Building Sage on Windows in Cygwin is not possible or supported.
> > You can only build Sage from source under OSX or Linux, or by
> > installing vmware and using Linux under Windows.
>
> I disagree. I bet it _is_possible_ to build sage on cygwin. What kind

Sorry.  I meant that the current version of Sage does not build on
Cygwin. Period.  One could put in a few months of work and create a
new version
of Sage that builds and works.

> To Jaap:
>
> I decided forking python is not a good idea :).
> > SAGE has it all, and is certainly not a download of 2 
> > GB!http://www.sagemath.org/SAGEbin/vmware/says 614 MB
> Yes, but when you install it you get some more GBs.

Yes, the disk space requirement is 2GB after extracting the
vmware image.

> Sage supports pari a little. But not fully. Take this line from the
> documentation:
> gp("a = intnum(x=0,6,sin(x))")
> or this
> x = gp("znlog( Mod(2,7), Mod(3,7))")
> or this
> gp('[1,2;3,4]')
> You see, you have to pass strings to the gp interpreter. This means
> you cannot fully work with pari using python language.

That's the pseduo-tty interface to gp.  This is defined in
  devel/sage/sage/interfaces/gp.py
See
  http://www.sagemath.org/hg/sage-main/file/22f456794143/sage/interfaces/

William

--~--~---------~--~----~------------~-------~--~----~
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-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to