Link Details

Link 36400 thumbnail
User 217101 avatar

By gst
via jroller.com
Published: Aug 22 2007 / 09:27

My initial thought when I started playing with the Java Scripting API was to use scripting languages for prototyping, but I have some concerns regarding the performance of accessing some of those scripts through the API etc. The Java Scripting API introduced some features in that regard, as you have the interface javax.script.Compilable that scripting engines can implement to signal that they can compile scripts “to a form that can be executed repeteadly without recompilation”. You also have the javax.script.Invocable interface to signal that the engine allows “the invocation of procedures in scripts that have previously been executed (and compiled)”. However, given that Grooy has also a compiler that produces class files directly, I wondered how difficult it would be to use the same code I had written as scripts, but this time in binary form. And if it was not too hard, how much of an improvement would I see?
  • 9
  • 0
  • 952
  • 232

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)