Can libffi be used for Python and Java to communicate?

319 Views Asked by At

I'm wondering if it is possible for an app to run in Python and call Java methods (and vice versa) through libffi?

1

There are 1 best solutions below

0
On

In general, things get complicated when you're talking about two managed runtimes (CPython and the JVM, for instance). libffi only really deals with a subset of the issues here. I would look more at remote method invocations as a way to integrate code written in different managed runtime environments.