Can kotlin script replace python?

Forgot to say about performance. Performance is a tricky thing. If you compare compiled Kotlin against interpeted python, Kotlin will be an order of magnitude faster, but if you use numpy in pythons, the performance of numpy operations will be of the same order of magnitude. Also, Kotlin needs time to startup JVM and compile the script. So for very short-lived task, it could be slower.

5 Likes