Porting of Gython
Posted: 19 Mar 2011 18:10
This is the thread for asking more details about the Porting of Gython proposal.
Please post new questions on facebook group too (https://www.facebook.com/groups/gephi)
https://forum-gephi.org/
If we're really going to implement a MuTanT console + Gython, the student working on this would have to (aside from other more obvious tasks like working on the console's UI, etc):eytanadar wrote:I don't see any reason why Gython couldn't work under MuTanT.
After using GUESS, I have to agree with you. Probably most users would prefer if the console language was less "programming-oriented". Also, since Gython is just a Jython extension, we still have all the power of Jython on the console, which is more than enough in my opinion.mbastian wrote:My experience with GUESS has been that people prefer a concise language for working with the graph structures.
This is good news! I've been also already experimenting on creating a prototype of a console UI for Gephi using Jython, to see how hard it would be to integrate Gython into it. I'm really looking forward to your release, I'm sure it will be very helpful.taynaud wrote:Writting a console using one JSR 223 language is done(I use now jython), and after that changing the language is trivial. In my code, that I plan to release in a few days, changing the language is actually changing three variables in the java code.
Actually, the problem isn't porting to MuTanT. The main problem with using ScriptEngines is that Gython seems to be currently using Jython 2.1.0, which lacks ScriptEngine support. If we're going to use a generic ScriptEngine, we first need to upgrade Gython to the latest Jython stable release.taynaud wrote:It seems to implement the jsr 223, so porting to mutant is very easy. But changing the exported api to script is more difficult and I think the student should focus on this. Another issue is that mutant documentation seems very limited.
I haven't experienced any problems with Jython 2.5 actually. When I say that Jython's JSR 223 support sems to have problems, I'm referring to this commit on MuTanT's git repository. The authors opted to disable Jython support because of it's "poor implementation of ScriptEngine" (although I have no idea on what kind of problems they've been experiencing).taynaud wrote:I have not experienced difficulty with jython so far, do you have precise example ?