Actually, I already did it with kotlin scripting. gpt-120-oss, running on low latency groq inference, and I had in some cases < 1s request to action, and frankly in this context the Kotlin compiler is SLOW. I generate kotlin DSL stubs that I provide to the llm. Initially it was a narrow scope, but I've been expanding the framework a little. I also care about things like preemptive execution and back driveability, so not pure kotlin in the future