4 ms·
We used Jython very extensively at a former employer, a high frequency trading firm. Originally it was to be used as a configuration language, to allow traders
by dmurray 3y ago
We used Jython very extensively at a former employer, a high frequency trading firm. Originally it was to be used as a configuration language, to allow traders to easily write scripts that configured trading strategies written in Java. The scripts grew into a monstrous ecosystem of applications and analytics.
Jython stuck on Python 2 and doesn't have great interop with the rest of the world Python ecosystem, so I wouldn't recommend it for a new project, but it was a big force multiplier in that use case.
- froh 3y agothere are JEP, JPype and PyJNIus these days...
- networked 3y agoThose are bridges to native CPython. There is also GraalPy (https://github.com/oracle/graalpython https://github.com/oracle/graalpython), which is a standalone implementation more similar to Jython. It seems already quite compatible with Python 3. I have tested the latest version graalpy-community-23.1.2 as a regular Python interpreter from the command line (i.e., not through a Java program). It was able to run my standard library-only Python scripts, as well as a script that made async HTTP requests with the external library HTTPX. It couldn't run a TUI program that used the Python Prompt Toolkit (`AttributeError: module 'signal' has no attribute 'siginterrupt'`). I am curious about your experience if you have used GraalPy more than I have.
- froh 3y agowow oracle is really nervous about python and Microsoft's support for it, huh? I just now learned about this project, thanks for pointing it out. I'll be curious how they go about shared data, especially shared str/String. also I personally happen to depend on Windows support, I'll go popcorn on the future of this project...