-
Notifications
You must be signed in to change notification settings - Fork 646
numpy #330
Comments
+1 |
It is possible to implement numpy using Grumpy, in either Python or Go and then leverage the libraries built on top of numpy. But it'd be very challenging to leverage the numpy C extension directly, and the results would probably be sub-optimal or partially broken since Grumpy has no GIL and numpy may use it for synchronization. Having said that, depending on how the code is written, it may be possible to leverage parts of the code and expose them to Go via cgo. How much code could be reused in this way kind of depends on how deep in the extension the Python part is rooted: if they use PyObjects through all the code then that'd be a problem, but if they use numpy specific data structures and functions and then a thin layer of C extension code on the top, then things would be much easier. |
c2goasm: C to Go Assembly Introduction This is a tool to convert assembly as generated by a C/C++ compiler into Golang assembly. It is meant to be used in combination with asm2plan9s in order to automatically generate pure Go wrappers for C/C++ code |
continuing the issue started with #112
numpy is currently the most relevant data science library, but it uses c extensions which grumpy doesn't support.
Maybe there's a way to bring numpy over to grumpy
The text was updated successfully, but these errors were encountered: