Embeddable Kotlin Compiler -- long term memory leak

Wonderful reply.

I have moved away from the Jsr223 implementation, as I could sense that this was not the most future proof way moving forward, and subsequently discovered the new (if experimental) scripting API. After significant experimentation, I finally discovered how to use it with the compiler switches I needed (Kotlin Script Host - Embedded script compilation - #2 by nickheitz), and am proceeding with this. Is it desirable or possible that I can submit additonal example to the example git repo? Some of what I’ve discovered may be of use, if it is considered sufficiently idiomatic.

I am intrigued by the caching api you mentioned. My scripts will not change often, and til now I’ve been using my own cache to preserve the outcome of compilation. Do you know if there is an example that covers the use of script cache?