0

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

Grijesh Chauhan
  • 57,103
  • 20
  • 141
  • 208
zcaudate
  • 13,998
  • 7
  • 64
  • 124
  • libffi seems a bit too low-level to do this conveniently or safely. There are other options for Java-Python interop, why do you focus on libffi specifically? –  Jan 19 '14 at 12:27
  • But why C tag, I think you are missing `Python` and `Java` tags. – Grijesh Chauhan Jan 19 '14 at 12:28
  • I'm still learning about ffi and how it works. The question is not limited to java/python but all combinations of languages with ffi. – zcaudate Jan 19 '14 at 19:32

1 Answers1

1

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.

Anthony Green
  • 643
  • 1
  • 4
  • 9