On Jan 30, 2012 8:09 AM, "Nathann Cohen" <nathann.co...@gmail.com> wrote:
>
> Helloooooooo !!
>
>
> > If you ever change a filebfrom Python to Cython for no clear good
reason, I
> > will be very annoyed.
>
> Well, the point's always to be able to rewrite code more efficiently :-p
>
>
> > One should always use Python instead of Cython unless
> > there is a clear compelling reason not to.
>
> Really ? O_o

Yes.

I would even add this to the review checklist.

>
> > - takes a long time to compile
>
> Come ooooooon ! Half a second when you rebuild Sage !!! How bad can that
be ?
>

It takes nearly an hour on one cpu to build the sage library now right?
If you change all .py to .pyx, it might take 2 hours.   That .5 seconds you
site can be longer for bigger files and adds up.

> > - is much harder to interactively debug sunce you can't run python code
in
> > the stackframe's context (yet)
>
> Hmmm... O_O;;;
> I have no idea what the stackframe's context could be O_o

Cause a traceback on the command line, then type %debug.

>
>
> > - requires more knowledge for devs to use thus reducing the
maintainability
> > of sage
>
> To add perhaps, because of the module_list file, but why would it be
harder to maintain ? The procedure is the same, a sage -b and you are done,
aren't you ?
>

No.   Maintenance = people reading, fixing bugs (all code has 'em),
improving

>
> > - is not always faster than pure python
>
> ? On which codes can it be slower ?
>
>
> > - does not support 100% of Python language features
>
> Arg ! And what is missing then ?
>
> Thaaaaaaaaaaaaaaaaaanks !!!
>

I'll let some Cython devs answer the above.

There are also different semantics between Python and Cython.

>
> Nathann
>
> --
> 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
> URL: http://www.sagemath.org

-- 
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
URL: http://www.sagemath.org

Reply via email to