druid
druid copied to clipboard
Supporting "other" JVM Scripting languages
Description
JSR-223 is pretty interesting, and allows a lot of scripting languages to be run inside JVM. Current code almost has it, just that we have to make it generic to accept not only JS, but groovy, jruby, clojure whatever works.
Copying the JavaScript specific code, and refactoring it would do fine. Naturally, the druid classpath must have the scripting engine.
Motivation
https://en.wikipedia.org/wiki/Scripting_for_the_Java_Platform
- Same advantage of having JS
- More so because of being absolutely polyglot
- Disadvantage might be performance for dynamic languages - but - we can also use Kotlin, Scala, Java as scripts , moreover the option to generate a compiled version of scripts does wonders to performance, it would compile to JVM bytecode anyways.