-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pythran version #4
base: master
Are you sure you want to change the base?
Conversation
Nice! Is there a way to make this work with user-defined types? Ie. the equivalent of the Julia example with an |
I'm guessing that this is work in progress, since there is still the actual n-dimensional, lazy broadcast implementation missing ;) |
It's all implemented within pythran, Is there any meaning of reproducing it here? |
It works for any shape of |
yes, the one and only point of this challenge is to evaluate, how the implementation looks and how much effort it is to make it nice and see how flexible it is in its core - it's all to better evaluate how well the implementation can grow in the future and how easily new contributors can start working on it. I think there is a lot of development currently happening in machine learning, and flexible and easily maintainable array algorithms will be crucial to tackle that challenge |
Part of what makes Julia so wonderful (and I believe one of the things Simon was trying to point out with this challenge) is that Julia is nearly unique[1] in how easy it is to generalize an algorithm to work on any datatype without doing any violence to that datatype. Like for instance, sometimes one wants to broadcast over arrays of strings or arrays of dual numbers or arrays of a composite datatype containing a string, a float64, two different integers, a symbol and a matrix. Because package designers can't always predict what their types and algorithms will be used for, it's important that they are maximally flexible. If you're looking for generality, [1] Though the Nim solution really impressed me! Clearly, such things are possible in Nim too (hence the 'nearly'. |
Or rather: Julia programmers in general think that Julia is unique in this way. (I hope we are wrong, because I want thus awesome flexible code everywhere) |
No description provided.