Git Product home page Git Product logo

Comments (3)

HuangXingBo avatar HuangXingBo commented on September 22, 2024

@Robbie-Palmer Thanks lot for bringing up this interesting topic. I haven't looked into python4j in depth before. Just from the API example you provided, I have two questions about python4j

  1. Does python4j support the invocation of python objects or methods(invoke and invokeMethod in pemja), not just the execution of entire code fragments exec.
  2. Does python4j support calling back java in python code?

from pemja.

Robbie-Palmer avatar Robbie-Palmer commented on September 22, 2024

@HuangXingBo I believe the answer to both of those is no! So those are definitely pros versus python4j

Another key difference (with pros and cons) is python4j comes with the Python VM bundled inside the Jar, while PemJa depends on interfacing with an external Python VM

Pros:

  • Can deploy as a simple Jar without environment changes

Cons:

  • Python version is fixed by the version of the library
  • Non standard library packages still need to be installed and the bundled Python VM pointed to them

from pemja.

HuangXingBo avatar HuangXingBo commented on September 22, 2024

@Robbie-Palmer Thanks a lot for the patient explanation. I am not sure whether python4j bundled pythonvm is a customized CPython, which will bring a lot of optimization possibilities. But from my side, dependency management is very important. It seems that the dependency management of python4j is very inconvenient.

from pemja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.