Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Java game linking to a perl script

by straywalrus (Friar)
on Jul 14, 2005 at 14:56 UTC ( [id://474904]=note: print w/replies, xml ) Need Help??


in reply to Re: Java game linking to a perl script
in thread Java game linking to a perl script

To add one more option, you may want to take a look at Sleep, which is a Perl-ish scripting language for Java. It is easy enough to embed (since that was what it is meant for), has the ability to do what you want hidden from the user, and is seperate from the Java source itself, so you could update it seperately from the java. Just to add to the Pile of Ideas (пoй)
  • Comment on Re^2: Java game linking to a perl script

Replies are listed 'Best First'.
Re^3: Java game linking to a perl script
by exussum0 (Vicar) on Jul 14, 2005 at 16:15 UTC
    What would using an embedable language gain that loading the various values, answer keys, questions etc.. that can't be done using something like XML, or just key-value pairs?

    Btw, I prefer Velocity. Yes, it's a template language, but you can write programs in it. Albeit very simple ones that can't do much, "harm."

    ----
    Give me strength for today.. I will not talk it away..
    Just for a moment.. It will burn through the clouds.. and shine down on me.

      I should think that there would be rather little to gain from either method; however, My purpose in recommending Sleep was to firstly offer Yet Another Answer that the poster may not have been aware of and secondly offer something that is rather robust and can be replaced easily. With Sleep, you could simply rewrite the script and use the existing engine. For me, this would be a rather large positive. XML is Yet Another Embedded Language and key-value pairs are fine, but if the poster wishes to change something, then this has to be reworked. Sleep (or any other language, I simply choose the 'hot new thingie') allows for some abstraction, which I find nice in certain situations.
Re^3: Java game linking to a perl script
by Arunbear (Prior) on Jul 15, 2005 at 11:41 UTC
    Oh the joy of sleep, during which $self, $world, @problems and $pain are all undef.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://474904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found