I've successfully written a C library for Python. It's small obv as I only wrote it over a weekend but 

-
-
Replying to @o_guest
...if anybody needs to do this it's not that hard but there is very little online, which is a shame as it's tricky but not that tricky!
2 replies 0 retweets 0 likes -
Replying to @o_guest
Nice! it get's really hairy if you start allocating/moving allocated objects around between the two sides; memory handling is very different
1 reply 0 retweets 1 like -
Replying to @dmoisset
I haven't done that although I would love to know how. What I did it merely copy them. Even though it's big data I've managed to have much
2 replies 0 retweets 0 likes -
What I'm doing is along the same lines as
@dimpase does here: https://github.com/dimpase/dyn/blob/master/m.pyx … which unless I am very mistaken is copying the data.2 replies 0 retweets 0 likes -
I think if you use numpy arrays they can be accessed from C directly. cf http://cython.readthedocs.io/en/latest/src/tutorial/numpy.html …
1 reply 0 retweets 1 like
Aha! I will investigate! Thanks — you are so useful as always.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.