On Sat, Aug 15, 2009 at 9:24 PM, Kevin Stueve<magest...@gmail.com> wrote:
> Which is preferable, writing a sage library in C and making it
> available to sage with Cython or writing it completely in Cython?

1. If you write it in C and make it available via Cython, then it
could potentially be used by other programs.   However, you have to
write everything in C, which can be painful, especially adding
verbosity, debugging, etc.

2. If you write in Cython the code looks nicer and it is easier to use
Python features when writing the code (e.g., this can make debugging
much easier in some cases).   However you can't use that function
easily as part of some other program.

Most people who work on Sage go with 2, though sometimes people do 1.
There are a number of examples of both.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to