invesdwin / invesdwin-context

Module system for software product lines
GNU Lesser General Public License v3.0
6 stars 0 forks source link

implement scripting for java #16

Closed subes closed 2 years ago

subes commented 2 years ago

Here they invoke the compiler manually with generated files: https://github.com/scijava/scripting-java/blob/master/src/main/java/org/scijava/plugins/scripting/java/JavaEngine.java

A similar approach: https://github.com/jacktasia/java-repl https://github.com/eobermuhlner/java-scriptengine

subes commented 2 years ago

won't do, this will perform similarly bad as jshell and it does not really support the script pattern since one has to wrap everything in classes. Groovy is a much better alternative to jshell and java-scriptengines. If one wants to use compiled java, instead go for janino which is a lot faster.