T
Timo Kinnunen
I'm evaluating ways to add scripting capabilities to my Java
applications. I'm targeting J2ME and J2SE, which means I don't have
class loaders or reflection. So, BeanShell is out.
I'm leaning towards compiled scripts in hope of better performance.
My current idea is to implement enough of a JVM to load a single Java
class and run static methods with primitive data.
So, the question. From a performance point of view, is a stack based
abstract machine ideal or should I look for something register based?
Or is there something even better? What about the language to be
compiled, shuold I use Java or something else?
The abstract machine will be running in Java, so I'm free to
implement anything, well, almost.
Or, have I brushed off interpreted languages too fast? Would the
higher level of a serialized evaluation tree beat the pants off of
lower level compiled code?
applications. I'm targeting J2ME and J2SE, which means I don't have
class loaders or reflection. So, BeanShell is out.
I'm leaning towards compiled scripts in hope of better performance.
My current idea is to implement enough of a JVM to load a single Java
class and run static methods with primitive data.
So, the question. From a performance point of view, is a stack based
abstract machine ideal or should I look for something register based?
Or is there something even better? What about the language to be
compiled, shuold I use Java or something else?
The abstract machine will be running in Java, so I'm free to
implement anything, well, almost.
Or, have I brushed off interpreted languages too fast? Would the
higher level of a serialized evaluation tree beat the pants off of
lower level compiled code?