1. What do I think of this design?
Itβs not clear what actual problem you are trying to solve.
in extreme cases; error processing; Forward / backward compatibility; errors in Python / Java? Not fun, but important for reliable software.
Mixing two languages ββis difficult enough, mixing three will probably be much worse. I would expect serious maintainability and communication problems.
there are already solutions to these problems. RPC, so that programs in different languages ββspeak to each other. Jython for Java / Python interoperability. I believe that Jython even allows you to create Python objects in Java and vice versa. It would be useful to clarify any shortcomings of these existing systems and how to address these shortcomings.
Here are some missing things:
- packages
- confidentiality
- interfaces / abstract classes
- method resolution: overloads and overrides (especially when matching multiple methods)
- exceptions
- type checking or recovering from type errors
2. I just need to find a way to call a method from Python in Java! What about Jython, RPC, or just calling an executable?
source share