Type information for faster Python C extensions
bernsteinbear.com
bernsteinbear.com
I think the GraalVM approach of transforming the C into your own IR and then JITing that is another interesting approach. Essentially treat Java and C as one unified source and compile them together. That certainly takes more work and a very expressive IR, but it is another way to deal with the inefficiency at the API boundary.