<@U10EJRH2L> It uses JSR-223, I'm pretty sure it i...
# scripting
j
@Ruckus It uses JSR-223, I'm pretty sure it is locked to the JVM (at least for now)
i
It sort of vice-versa. Scripting infrastructure in kotlin does not use JSR-223. But JSR-223 implementation, of course, using underlined scripting infrastructure. But the support is now limited to the JVM, correct.
r
Ah, interesting. Is there any plan to eventually make it available for other platforms as well?
Also, does that mean there's a way to use scripting on the JVM bypassing the JSR-223 implementation? (Not that I would want to, I'm just curious.)
i
Yes, eventually. Unfortunately there are quite many technical issues on the way, so the timeframe is totally unclear now.
👍 2
Yes, most of the discussions in this channel are about usages without JSR-223.
r
Okay, cool. I'll have to dig into it more. I've just recently started looking into it for use with a project I'm working on, though I'm having a hard time finding information on where to start. I guess I'll just have to read through the history of this channel when I get enough time.
i
Or start with scripting examples in the kotlin repo,
libraries/examples/scripting
.
r
Oh, duh. I noticed in the KEEP it references
libraries/samples/scripting/
, but I couldn't find that path, so I assumed I was looking at the wrong repo. I didn't even think to look in
examples
instead. 🤦‍♂️
Thanks 🙂
i
Oh, sorry, thanks for pointing out. I need to fix the KEEP.
n
i have a small repo with a example of how to implement scripting host and script definitions: https://github.com/NikkyAI/MinimalScriptingExample
i think it can give you a idea of where to start and fele free to ask questions
r
@Nikky Yeah, I actually have your repo bookmarked right next to the KEEP, I just haven't found the time to actually start looking it through. When I do, I'm sure I'll have plenty of questions 🙂
n
this is the newest project i am working on: https://github.com/DaemonicLabs/KNote with @amanda.hinchman-dominguez i use a few even fancier tricks with kotlin-scripting
💯 1
🌪️ 1
some of that i intend to add examples to the minimalScriptingExample, but its hard to add something too complex and still have it make sense
r
Nice, I'll have to look through that one more. I've looked into it very briefly in the past when you've mentioned it in #tornadofx.
a
It's coming along! I wish life didn't keep getting in the way I want to work on it all the time. I'm in the process of adding csv files for viewing