tool overload

Published October 12, 2005
Advertisement
Okay, I'm coming to terms with the fact that I am suffering from tool overdose.

Batik? Cool, but it doesn't really help me.

JRuby? The language looks fun, but the Java->JRuby interaction really has been a pain. I can't get it to work the way I want, plus there's something about the implementation that makes it really inefficient. Every time you pass JRuby code a Java object, it seems like it needs to fully ruby-ize the java object, and if you pass it a big object (like say Graphics), it literally sits there working for 10 seconds. I'm not going to have a loading bar for my scripting engine! (though they say this inefficiency will be fixed in the December release)

So JRuby is outta here. Hopefully sometime in the future I'll have an excuse to learn this fun language.

Rhino is looking better and better, I think I'm using that now. It seems to be the only library I can find that has a sane way for Java code to call a scripted method. &#106avascript might not be as charming a language as Ruby, but as long as I have some way in my game to interactively change the game code, I'll be happy.<div> </div>
Previous Entry My tv has gone crazy
Next Entry scripting
0 likes 4 comments

Comments

H_o_p_s
You should also look at BeanShell which actually runs off of the exact same sytax as java. This means that most of your code can also be ran interpreted through BeanShell. This is what I finally started using. All I can say is WOW. It provides Realtime Dynamic Object Creation and Alteration which means that you can create objects through the interpreter.

For instance if I type:
 > import javax.swing.JFrame;
 > JFrame f = new JFrame("test");
 > f.setSize(400,300);
 > f.setVisible(true);
 > f.dispose();

it will do all of those things in real time. Quite neat.
October 12, 2005 01:14 AM
Aldacron
I'm a fan of Rhino, but I also like pnuts.
October 12, 2005 05:39 AM
Ravuya
I find that Jython is a lot better at having Java objects passed to it, but it is still slow -- avoid this whenever possible and consider only sending wrapper functions to the scripting core.
October 12, 2005 10:39 AM
pinacolada
Man, so many choices! The BSF is quickly becoming my best friend.
October 12, 2005 05:06 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement

Latest Entries

check

1145 views

I have a logo!

1127 views

wooo

1078 views

scripting

1189 views

tool overload

1281 views

java svg code

1159 views

svg in java

1156 views
Advertisement