Python Forum
[Share] Invented a new wheel for calling Python from JAVA
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Share] Invented a new wheel for calling Python from JAVA
#5
As I know Swig mainly for c/c++ call other languages. It is too complicated and high threshold.  It needs generate the wrapper interface before you can using it, too many additional work to do.

For jpserver, we can enhance the local server to make it more robust, auto recovery when fail. Till now, I haven't found it failed in my project.

I think the biggest benefit is clean and simple. The Python code can be developed by Python developer and deploy to Python environment, then JAVA developer just call it by name to get the result. Another benefit is the Python server can run in different server, JAVA can call it just like RMI.

I didn't test FIFO, but it should do in theory. JAVA just send the script to a standalone Python and execute it, then return the result to JAVA through socket connection. So it can execute anything that original Python can do.
Reply


Messages In This Thread
RE: [Share] Invented a new wheel for calling Python from JAVA - by john.huang - Oct-14-2016, 01:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Portability in Python and Java ankitdixit 1 1,180 Jun-30-2022, 12:04 PM
Last Post: snippsat
  Can the video calling feature be used from python telegram bot api? Kumarkv 0 1,870 May-30-2020, 01:34 PM
Last Post: Kumarkv
  Python Finally Overtakes Java on Github Skaperen 0 1,547 Nov-09-2019, 09:36 PM
Last Post: Skaperen
  Whether or not it needs Java for Android with Python Aashuraa 4 3,201 Nov-26-2018, 02:36 PM
Last Post: Aashuraa
  GUI, Games and Java haazimoto 2 2,902 Aug-22-2018, 06:16 PM
Last Post: haazimoto
  java book bundle metulburr 0 2,804 Nov-21-2017, 12:34 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020