Languages other than python?

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.
Post Reply
ardent red
Posts: 150
Joined: Fri Apr 18, 2008 3:41 pm
MOULa KI#: 0
Location: The big little New Zealand

Languages other than python?

Post 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?
Kenguin
Posts: 11
Joined: Tue Jan 06, 2009 12:15 pm

Re: Languages other than python?

Post 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.
User avatar
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?

Post 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...
Post Reply

Return to “Scripting”