https://github.com/kelvie/libfreenect/commit/7221fa0adab12a44f4fc01a8bf19055406cd80f8
I know I'm pretty bad at API design (especially pythonic API design),
and perhaps I shouldn't be using ctypes and just write it using the C
api.
Anyone have any ideas how this is improved? Is any one else working
on something similar?
--
Kelvie Wong
Nirav
I was thinking of doing this as well, the threading thing. Of course,
this would have to happen inside a C API wrapper.
Or maybe we should use Cython, as suggested earlier.
--
Kelvie Wong
Could you actually publish that code? I think I may be interested in
writing exactly what you described now. I want to see how far in you
are before starting completely from scratch.
Although I just may do that tonight if I get bored.
--
Kelvie Wong
Nirav
It wouldn't hurt to merge it now. I think it is still useful in its
current state (as a light wrapper around the C functions).
The other implementation will take some time.
--
Kelvie Wong
<brandyn> cryptk, Do you mind posting a link to my repo
https://github.com/bwhite/libfreenect/tree/master/c/python/ at this
thread http://is.gd/hu6Up? You can just paste this message verbatim
On Nov 20, 8:37 am, Christopher Jowett <cry...@gmail.com> wrote:
> This is from a guy in IRC, he doesn't have permissions to post in the group yet.
Also can someone post this on my behalf on the forum as I have been
unable to (just copy the whole message).
-Brandyn
This error just looks like a missing symbol. Is whatever library that
provides that IO function in your link path?
--
Kelvie Wong
Just wondering -- what is the performance of these bindings? In my
ctypes implementation, they perform quite poorly, just about 8.5
frames per second. And this is just running asserts and print
statements, with no actual processing.
--
Kelvie Wong
2010/11/20 Kelvie Wong <kel...@ieee.org>:
Cython would add another dependency, would it not? Or is it easy to
install in Windows/OS X, etc?
I was just thinking of writing a pure Python/C extension (which is not
hard at all), which is supported on all platforms Python is, and
distutils can build it for us.
--
Kelvie Wong
2010/11/20 Kelvie Wong <kel...@ieee.org>:
Interesting. Is anyone else working on a Cython binding right now?
Maybe one that produces a synchronous API by starting a thread in C
(as was suggested earlier).
Otherwise, I am going to start work on that today/tomorrow, either in
pure C or in Cython.
--
Kelvie Wong
Can we not use both? :)
I tried googling Cython and threads, and that does not really turn up
any useful results (at first glance, anyways).
I was planning on writing a synchronous API, and am not sure if I am
able to thread in Cython.
--
Kelvie Wong
./configure LDFLAGS='-framework IOKit -framework CoreFoundation'