interesting article. I wonder how far you could ge...
# server
b
interesting article. I wonder how far you could get with AOT compilation of Kotlin JVM code e.g. with Graal
n
Good point! If one was looking at performance benchmarks with Graal then the same would need to be done with Kotlin Native. Aka have a Serverless benchmark covering Kotlin JVM, Kotlin Native, Go, JS via Node, Python, and C#.
Biggest problem with the benchmark idea is that there is no Serverless platform that supports Kotlin Native yet, therefore Kotlin Native can't be included in a Serverless benchmark 😢.
b
heh Kotlin barely supports Kotlin Native yet 😉
😄 1
this is an interesting application area though. if it was supported Kotlin Native would be a lot more convenient than some AOT solution like Graal
n
Kotlin Native isn't too far away from a stable release though 😀. Guessing that Kotlin Native makes its debut in Kotlin 1.3 or 1.4, and the release provides official support for Serverless 🔮.
b
yeah I'm definitely excited to see how it turns out
kinda wonder how much of the perf gap with Go could really be closed while maintaining the mandate for reasonable interop with Kotlin-common. Stuff like pass-by-value vs. pass-by-reference which Go has is a pretty different programming model altogether. if Kotlin Native ventures too far into its own territory away from common/JVM/JS then at some point you might as well just use Go
but I am being a wet blanket and am very excited to see what just a simple native runtime can do for things like serverless
Kotlin/JVM on Graal versus Kotlin/Native for serverless is going to be an interesting topic
👍 1
e
I work with/on a serverless implementation and I’m going to do my best to not have to write js or python 😉
m
@evanchooly LMK how that goes... I played with Lambda and was immediately put off by how clumsy the packaging was (and the insistence on JS/Python). Why isn't Docker/OCI/whatever image the standard deployable...
e
we use openwhisk so if push comes to shove, there’s always a docker deploy option. 🙂
n
Funny that Open Whisk has been mentioned. One Kotliner managed to get Kotlin Native working on Open Whisk ( https://jaxenter.com/kotlin-native-serverless-tutorial-fibonacci-fun-136615.html ) 🎉 .
For Kotliners looking at the IBM Cloud Functions platform ( Open Whisk based - https://console.bluemix.net/openwhisk/ ) there is experimental kotlin support ( https://github.com/ibm-functions/runtime-kotlin ), and a issue raised on Kotlin Native support ( https://github.com/ibm-functions/runtime-kotlin/issues/12 ). If you are interested in Kotlin Native support on the IBM Cloud Functions platform please vote for the issue.