We're in the process of migrating DAWN's Java-Python integration via
RPC, into Triquetrum.
This work will be done together with Jonah Graham (Kichwa Coders)
and Matt Gerring (Diamond LS), who together developed the original
implementation for DAWN (i.e. the so-called AnalysisRPC module.
The goal is to ensure that this becomes a reusable integration
module to run Python scripts from Java, so no lock-in on the
remainder of Triquetrum. (but of course it will also be used in
Triquetrum)
For more info on the AnalysisRPC approach, check e.g. :
-
https://www.eclipsecon.org/france2015/sites/default/files/slides/Integrating%20Java%20and%20Python_ecf_0.pdf
-
https://kichwacoders.com/2015/01/07/integrating-python-for-high-throughput-science/
The thrift option may be an interesting approach as well. The
focus there seems to be on implementing/using "services", more
than running arbitrary Python scripts from Java (and being able to
pass data around). So this could be complementary?
Met vriendelijke groeten - Bien à
vous - Kind regards
Erwin
De Ley
Op 12/06/2016 om 13:32 schreef Marek
Jagielski:
In my case (
https://www.youtube.com/watch?v=qvY3V9Ujoa0)
I enabled two ways of java-python integration.
One is via Jython. However, in this solution it would be
hard to use numpy, etc.
Second one is running a separate python process from Java
and establish bidirectional communication using thrift (
https://thrift.apache.org/).
I used on the python side thriftpy library (
https://thriftpy.readthedocs.io/en/latest/).
However, you are limited to predefined data types. In some
situations, I had to do objects serialization to binary type
and restore them on the second side.
Best,
Marek
_______________________________________________
science-iwg mailing list
science-iwg@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/science-iwg