DEV Community

Discussion on: Best Supported Serverless Languages

Collapse
 
uminer profile image
Moshe Uminer

I find the bit about cloudflare supporting Kotlin interesting. Normally, Kotlin would be executed on the JVM, so any provider that supports Java would allow running Kotlin. However, since it seems cloudflare doesn't support Java (only AWS, GCP and Azure support it), they can only support Kotlin via Kotlin's support for JS. The problem with this, of course, is that I imagine the libraries/packages available for use are completely different when transpiling to JS, as JVM based libraries probably can't be used. I'll add a note about it being possible to compile Kotlin to native as well, for those providers that support binaries. Compilation is possible while relying on the JVM ecosystem using the GraalVM native-image tool (which is really a Java tool), or by using Kotlin/Native itself.

Collapse
 
dbanty profile image
Dylan Anthony

Right, Kotlin, Scala, etc. support is probably better on the Java-supporting platforms even though they don’t explicitly call it out. Same with F# and the C#-supporting platforms.