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 -
So copy it to a C-like array from a list/np array instead of sending a pointer to the list/np array. Is a pointer possible?
1 reply 0 retweets 0 likes -
np array *is* a C array, behind the scenes, with some extra bells and whistles to make it Python-accessible, too, AFAIK.
1 reply 0 retweets 1 like
I didn't know that — interesting.
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.