Languages other than python?
-
- Posts: 150
- Joined: Fri Apr 18, 2008 3:41 pm
- MOULa KI#: 0
- Location: The big little New Zealand
Languages other than python?
I was wondering wether it would be possible to use languages other than python in Uru- for example, I was considering using processing (http://www.processing.org) to create an interactive music visualizer for Uru. Processing outputs Java code. Is there a way to wrap the java code in python code, and use that in Uru?
Re: Languages other than python?
You'd need a tool that can compile Java into Python bytecode, which seems unlikely (I can't find anything like that). I think Python bytecode is very strongly linked with the language itself, so it's going to be hard to translate other languages into it.
Interestingly, there is a tool that compiles Python into Java bytecode (Jython) -- but that doesn't help here.
Interestingly, there is a tool that compiles Python into Java bytecode (Jython) -- but that doesn't help here.
- Zrax
- Posts: 206
- Joined: Fri Sep 28, 2007 5:19 pm
- MOULa KI#: 0
- Location: Waist-deep in a conecano
- Contact:
Re: Languages other than python?
It could probably be done, since both languages rely on the use of a pure-stack machine in their interpreters... But as you say, the Python bytecode is very heavily linked to the language, and many of Python's features would be lost coming from Java source...