Java 支持可编译的引擎脚本
Java Engine Script which support Compilable
继续我的 ,Java 使用 Beanshell 作为脚本引擎,
而 BeanShell Engine Script Compilable 不受支持。
为什么 java 除了 Beanshell 之外没有支持 Compilable 的脚本引擎? can/should我们重写了吗?这个问题有改进吗?
compile scripts to a form that can be executed repeatedly without recompilation
我发现实现方式为 JavaScriptEngine and other JavaScriptEngine,但我不知道它是否适合使用。
java 是否有意让 Groovy 实施它,从而成为预期使用的脚本语言?
这不是一个完整的答案,但值得一提的是beanshell2项目,
我发现 beanshell2 issue 支持 Compilable
自 bsh-2.1b4.jar
版本以来,有一个可以 download 的修复
- 还有最新的 bsh-2.1。6.jar
- 根据beanshell2
应该是2.1.8版本
Feb. 20, 2014
Update v2.1.8
最新的 Beanshell 2.0b5(或 2.0b6)也支持 Compilabe,但它 throw new Error("unimplemented");
编辑:
New issue 用于在 Beanshell 2.0 中实现 Compilabe
继续我的
为什么 java 除了 Beanshell 之外没有支持 Compilable 的脚本引擎? can/should我们重写了吗?这个问题有改进吗?
compile scripts to a form that can be executed repeatedly without recompilation
我发现实现方式为 JavaScriptEngine and other JavaScriptEngine,但我不知道它是否适合使用。
java 是否有意让 Groovy 实施它,从而成为预期使用的脚本语言?
这不是一个完整的答案,但值得一提的是beanshell2项目,
我发现 beanshell2 issue 支持 Compilable 自 bsh-2.1b4.jar
版本以来,有一个可以 download 的修复- 还有最新的 bsh-2.1。6.jar
- 根据beanshell2 应该是2.1.8版本
Feb. 20, 2014
Update v2.1.8
最新的 Beanshell 2.0b5(或 2.0b6)也支持 Compilabe,但它 throw new Error("unimplemented");
编辑:
New issue 用于在 Beanshell 2.0 中实现 Compilabe