[Ironpython-users] numpy in IronPython

Doug Blank doug.blank at gmail.com
Sat May 31 16:23:12 CEST 2014

On Fri, May 30, 2014 at 5:22 PM, Steve Baer <steve at mcneel.com> wrote:

> I would definitely be interested in helping, but don't exactly know where
> to start. We have a lot of users who would love to get access to numpy on
> our OSX and 64bit windows versions of our product.  This is only going to
> become a bigger problem in the future since we will probably only have a
> 64bit version for Window in the next version of Rhino.

I agree. Let's start a serious discussion about how to solve the lack of
numpy in IronPython.

We could look into using ctypes (IronClad?) and wrap what already exists.

We could look into a cross-platform DLL drop-in replacement.

Between speed and compatibility, initially I'm most interested in
compatibility. But speed should be a long term goal.

We could write a pure-python prototype initially, and slowly move that to
C#, or another CLR language. That would be useful for all non-C-based
Python implementations, and would probably be quickest to write and test.

A related note: Python3 just added a new matrix multiplication operator
[1]. Hope to see more numpy-related functionality in standard Python in the

Other ideas? Where to start?


[1] - http://legacy.python.org/dev/peps/pep-0465/

> Any suggestions?
> -Steve
> Steve Baer
> Robert McNeel & Associates
> www.rhino3d.com
> On Fri, May 30, 2014 at 1:12 PM, Jeff Hardy <jdhardy at gmail.com> wrote:
>> On Fri, May 30, 2014 at 2:50 PM, Doug Blank <doug.blank at gmail.com> wrote:
>>> numpy is a numeric package for CPython that used a lot in science.
>>> Wondering about what it would take to develop a numpy for IronPython...
>>> I know a few years ago that there was a paid project to port numpy to
>>> IronPython [1], but that appears to have been only for Windows, and they
>>> seem to have some unfinished bits. Not sure what the license of that is.
>>> What to do for numpy IronPython on other platforms?
>> I think you're out of luck, unfortunately.
>>> PyPy has been working on their numpy for years [2] and have made some
>>> great progress [3].  Would that help a numpy on IronPython?
>> I'm not sure how the PyPy team is doing the port anymore. At one point I
>> thought they were going to rewrite it in RPython but I don't know if that's
>> the case. I also thought Cython might be involved. Ialso heard that the
>> NumPy team would make their core a plain C library that could be wrapped
>> with ctypes/CFFI. I have no idea if any of those panned out.
>> NumPy (and SciPy/Pandas/etc) is one of those projects I would love to see
>> working but just don't have the time or need to do it myself. Someone else
>> will have to step up to lead that project if it's ever going to get done.
>> - Jeff
>> _______________________________________________
>> Ironpython-users mailing list
>> Ironpython-users at python.org
>> https://mail.python.org/mailman/listinfo/ironpython-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20140531/4e89674a/attachment.html>

More information about the Ironpython-users mailing list