<br><br><div class="gmail_quote">On Mon, Oct 17, 2011 at 1:20 PM, David Cournapeau <span dir="ltr">&lt;<a href="mailto:cournape@gmail.com">cournape@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Oct 17, 2011 at 2:22 PM, Michael Foord &lt;<a href="mailto:fuzzyman@gmail.com">fuzzyman@gmail.com</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt; Travis&#39; post seems to suggest that it is the responsibility of the *pypy*<br>
&gt; dev team to do the work necessary to integrate the numpy refactor (initially<br>
&gt; sponsored by Microsoft). That refactoring (smaller numpy core) seems like a<br>
&gt; great way forward for numpy - particularly if *it* wants to play well with<br>
&gt; multiple implementations, but it is unreasonable to expect the pypy team to<br>
&gt; pick that up!<br>
<br>
</div>I am pretty sure Travis did not intend to suggest that (I did not<br>
understand that from his wordings, but maybe that&#39;s because we had<br>
discussion in person on that topic several times already).<br>
<br>
There are a lot of reasons to do that refactor that has nothing to do<br>
with pypy, so the idea is more: let&#39;s talk about what pypy would need<br>
to make this refactor beneficial for pypy *as well*. I (and other)<br>
have advocated using more cython inside numpy and scipy. We could<br>
share resources to do that.<br>
<div class="im"><br>
&gt; It seems odd to argue that extending numpy to pypy will be a net negative<br>
&gt; for the community! Sure there are some difficulties involved, just as there<br>
&gt; are difficulties with having multiple implementations in the first place,<br>
&gt; but the benefits are much greater.<br>
<br>
</div>The net negative would be the community split, with numpy losing some<br>
resources taken by numpy on pypy. This seems like a plausible<br>
situation.<br>
<br>
Without a C numpy API, you can&#39;t have scipy or matplotlib, no<br>
scikit-learns, etc... But you could hide most of it behind cython,<br>
which has momentum in the scientific community. Then a realistic<br>
approach becomes:<br>
  - makes the cython+pypy backend a reality<br>
  - ideally make cython to wrap fortran a reality<br>
  - convert as much as possible from python C API to cython<br>
<br>
People of all level can participate. The first point in particular<br>
could help pypy besides the scipy community. And that&#39;s a plan where<br>
both parties would benefit from each other.<br>
<br>
cheers,<br>
<font color="#888888"><br>
David<br>
</font><div class="im">&gt;<br>
&gt; All the best,<br>
&gt;<br>
&gt; Michael Foord<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Alex<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; &quot;I disapprove of what you say, but I will defend to the death your right<br>
&gt;&gt; to say it.&quot; -- Evelyn Beatrice Hall (summarizing Voltaire)<br>
&gt;&gt; &quot;The people&#39;s good is the highest law.&quot; -- Cicero<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; pypy-dev mailing list<br>
&gt;&gt; <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
&gt;&gt; <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; <a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br>
&gt;<br>
&gt; May you do good and not evil<br>
&gt; May you find forgiveness for yourself and forgive others<br>
&gt;<br>
&gt; May you share freely, never taking more than you give.<br>
&gt; -- the sqlite blessing <a href="http://www.sqlite.org/different.html" target="_blank">http://www.sqlite.org/different.html</a><br>
&gt;<br>
</div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; pypy-dev mailing list<br>
&gt; <a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
&gt; <a href="http://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>Why can&#39;t you have scipy and friends without a C-API?  Presumabley it&#39;s all code that either manipulates an array or calls into an existing lib to manipulate an array.  Why can&#39;t you write pure python code to manipulate arrays and then call into other libs via ctypes and friends?<div>
<br></div><div>Alex<br clear="all"><div><br></div>-- <br>&quot;I disapprove of what you say, but I will defend to the death your right to say it.&quot; -- Evelyn Beatrice Hall (summarizing Voltaire)<br>&quot;The people&#39;s good is the highest law.&quot; -- Cicero<br>
<br>
</div>