I have a strange request. We’re in a position where we need to run a clojure based service in between our python3.3 worker and a database. I’m looking into different ways to interface between python and clojure for this reason. I looked at Thrift, but unfortunately it’s doesn’t have python3 support yet. 0mq also looked interesting but I’m worried about the req/req pattern blocking the python3 threads (there will be multiple threads on multiple processes needing to use this proxy service).
Are there any other existing libraries in existence that could help me out here? At the end of the day I could write my own service from scratch using aleph and raw sockets, but I feel like that would be re-inventing the wheel too much.
Clojure means JVM. Most languages running on the JVM allow “calling Java” and be “called by Java” which basically means anything else on the JVM. I’ve never done it, but you can probably call Clojure from Jython. Now Jython doesn’t support the Python 3 language, but it does support Pyro.
It’s a bit far-fetched but you could try:
Arguments of the RMI must probably be translated to Java primitives & Java strings. It might also require some ClassLoader-Voodoo.