Page 1 of 1

Languages other than python?

PostPosted: Tue Dec 23, 2008 11:14 pm
by ardent red
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?

PostPosted: Tue Jan 13, 2009 4:31 pm
by Kenguin
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.

Re: Languages other than python?

PostPosted: Wed Jan 14, 2009 10:50 pm
by Zrax
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...