Randall R Schulz wrote:
> Because of this I'd like to use a Lisp dialect to add scripting. Right 
> now, I'm looking mostly at SISC and Kawa.
> 
> So my question is this: What sort of analysis should I be making to 
> select between these two?
> 
> One thing I'll point out is that there will be quite a lot of 
> interaction across the boundary between the scripting language and the 
> existing Java application. I.e., there will be a lot of functions or 
> methods that can be invoked on the scripting side to gather information 
> about and manipulate the content being operated on and to initiate 
> problem execution on the Java side.
> 
> I mention this because if it's tedious to make any given bit of 
> Java-side functionality accessible to the scripting side, that will be 
> a negative.

Kawa provides very easy access to almost all of Java, and because Kawa
is compiler-based, there is little or no impedance mismatch between
your code and Kawa:  You can easily call a Java method, access a Java
array, set a Java field, invoke a synchronized section, catch or throw
an exception, etc, etc.  And doing so compiles into the similar bytecode
that javac generates, so there is no need to use reflection or
emulation.  There is never (well, hardly ever) a need to "escape into
Java" for performance reasons or because you can't access a feature
from Kawa.  (An example of one of the rare exception is annotations -
Kawa doesn't yet provide a mechanism to annotation a declaration.
It's on my to-do list ...)

Kawa also provides deployment flexibility: You can use eval, a repl,
compile your "script" into class files, compile a file on-the-fly,
create a servlet, etc.  And Kawa takes care with line numbers and
other debug information, so you get useful exception stack traces.
-- 
        --Per Bothner
[EMAIL PROTECTED]   http://per.bothner.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to