On Monday, 30 January 2012 21:12:43 UTC+8, Nathann Cohen wrote:
>
> Hello everybody !!!
>
> I wondered why we still had .py files in our library. Some time ago
> this made sense as there were Python features that were not available
> in Cython -- like the yield keyword -- but now that they are, what is
> the point ? I'm asking this because we have in the Graph classes which
> are "copies" of each other, that is for instance a file
> generic_graph.py and a generic_graph_pyx.pyx, whose purpose is obvious
> : we want to be able to define some methods as Python ones, some
> others as Cython ones.
>
> Well, what is the point of having .py files anymore when we could
> easily rename them to .pyx without changing anything in them (first --
> is that even true or am I a bit optimistic ?) and be able to add some
> Cython code inside when Python is so awfully slow ?
>
> Cython is good, Cython is beautiful, Cython is fast. Thanks to Cython
> I can finally write Sage code which fails on weird architectures and
> spend days fixing the bugs, which is way harder with plain Python.
>
indeed. Note that a weird platform of today can be mainstream soon...
And it's not only your time, it's other's time that is being used (if not, 
hmm, wasted) to look for bugs that are so commonplace 
in C code.  
I am sure that a vast majority here would prefer the code that they can 
read and understand for their work to the code that is perhaps 5 times 
faster, but full of dodgy hacks, which require expert ueberhackers (thanks, 
Volker and Willem-Jan!) to debug and fix...

 Dima

Thankssss for your thoughts ! :-)
>
> 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

Reply via email to