Kotlin code can be run ad hoc using the Kotlin compiler’s -script option1! kotlinc -script my-skript.kts To run this asciicast without javascript, use asciinema play https://abdelrahman.sh/2025/09/scripting-with-kotlin/kotlinc-script.cast with Asciinema https://kotlinlang.org/docs/command-line.html#run-scripts ↩︎