Hi!
Really happy to use this great project, thanks for that!
My use case is about calling a jitclass
(non static) method from C/C++. I’m using pybind11
to create extensions of a C++ lib in Python and would like to rely on numba
to make such extensions much more efficient by jitting those parts.
I managed quite easily to use a cfunc
to call a free function from C++, but I can’t figure out if it’s possible or not to do the same on a class method with the self
arg already managed/bound to the C struct counterpart of the jitclass
. I would like to avoid using Python interpreter for performance (incl. acquiring the gil).
Does it looks feasible to get pointers to both C struct and class method and make the call from C/C++ code? Anybody has a pointer of where something similar would be done in numba
s codebase?
I feel a bit lost in my attempts to understand how it works and how to do such a thing, sorry if the description is not crystal clear…
Thanks!
Adrien