chapel-lang / chapel

a Productive Parallel Programming Language
https://chapel-lang.org
Other
1.8k stars 423 forks source link

Python interop: numpy-array interface for Chapel opaque arrays #12856

Open mppf opened 5 years ago

mppf commented 5 years ago

Chapel-Python interop for arrays currently works with two possibilities:

In both cases, I think that the Chapel-Python interop story should include Python library code that enables these types to have the same methods an a NumPy array. Since Python uses "duck typing", this should enable a significant amount of Python code that works on NumPy arrays to immediately work with Chapel arrays instead.

See https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html for a list of methods available on numpy arrays.

lydia-duncan commented 5 years ago

Oh, cool! I'm going to link this to Cray/chapel-private#333