Dag Sverre Seljebotn wrote:
> Christopher Barker wrote:
> Yes, but the existing intro on numpy+cython:
> a) Lacks quite a bit in several areas
> b) Is outdated
> 
> While the tutorial + paper is already written now.

right -- my pint was that we really should have only one -- if the 
tutorial+paper is the better/more up-to-date one, then by all means 
let's make that the one people find.


>> However, maybe it's my personal use-case bias, but I think that numpy is 
>> almost a standard part of Cython use -- I can't think of what I'd like 
>> to optimize that I wouldn't want to use numpy for! And numpy is why I 
>> skipped past pyrex and straight to Cython.
> 
> Well, take Stefan Behnel, who doesn't use NumPy at all, but rather works 
> with XML documents.
> 
> Even within science, the whole Sage project (a very important Cython 
> user) don't use that much NumPy either, and in particular not the 
> Cython/NumPy features, as they need exact math which isn't covered by 
> NumPy's dtypes

OK -- lot's of non-numpy use.

> Then you have any kind of wrappers around native libraries.

yes, but if those native libraries are working with arrays of data, 
numpy may well be a good idea there, too.

> There's enough usecases for Cython without NumPy to make our primary 
> Cython tutorial generic and not targeted for numerical users IMO.

agreed, though I may never use the stuff used to process XML docs, but 
it gets first class treatment...

> And then you have the question of whether one should have *two* 
> tutorials. Perhaps a very small intro document for numerical users which 
> links heavily into the other documents...

Sure -- in fact, it often makes lots of sense for there to be different 
tutorial focused on different user groups -- either because they have 
different use-cases, or because they have different backgrounds.

I can tell you that I went straight to the numpy+Cython tutorial, 
because I knew I'd want to work primarily with numpy arrays.

We may some day want tutorials for:
   - how to use Cython to wrap C libs
   - how to use Cython to wrap C++ libs
   (maybe targeted for folks that are used to using SWIG, ctypes, etc.)

Anyway. I love to see this documentation effort!

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to