The JSR-223 API was initially implemented for scripting support. The Kotlin scripting API appeared and stabilized much later and is a lot more advanced. Using the scripting API directly is a good approach.
01/07/2020, 9:30 AM
I see, makes sense. Might want to update the artifacts or deprecate something to avoid similar confusion. Or maybe wrap the Scripting API with sensible default configurations for JSR-223 style evaluation. Hard to tell from the documentation which is preferred
02/08/2020, 1:25 PM
Any concluding remarks on script compilation/evaluation times? Is using the Kotlin scripting host faster than using the JSR233 interface?
03/13/2020, 4:50 AM
My experience is the kotlin scripting host is much faster and uses much less memory (10x-ish for both memory and overall load/compile/eval speed) then then JSR233 interface