Hey guys! Is Kotlin JS deprecated? Or are people u...
# announcements
l
Hey guys! Is Kotlin JS deprecated? Or are people using it actively?
s
It's not deprecated, but it's encouraged to use the multiplatform plugin instead of the kotlin-js one
l
I want to use it for Node JS
Specifically to avoid JVM cold start at Lambda. But perhaps it's not exactly a good idea
c
The
kotlin-frontend
Gradle plugin is deprecated, but Kotlin/JS itself is very much still active as part of the multiplatform plugin. The docs could definitely use some work
I’ve actually used Kotlin/JS for Node Lambdas, it works pretty well. Just a toy project, but I made a simple Slackbot with it, though getting it compiled and deployed was a bit of a pain
đź‘Ť 1
l
It seems to be
Perhaps just plain Kotlin and JVM is not that hard to achieve
c
the Jetbrains team is working on Kotless, which looks like a good approach for using Kotlin in serverless apps, but I haven’t tried it out for myself yet https://github.com/JetBrains/kotless
l
Kotless doesn't escape the cold start tho
That's the main issue I'm trying to handle
Unless with warming, but that's not ok
c
It has auto-warming capabilities. You’ll never be able to fully remove the cold-start, even in a Node lambda
l
Node starts faster, doesn't it? I read some benchmarks, that's why I aimed to go for it
c
Yeah it definitely does start faster than a JVM lambda, but the cold-start was still noticeable when I was playing around with my Kotlin-Node lambdas
b
@LeoColman Kotlin/JS is alive, to try it you can start from https://kotlinlang.org/docs/reference/js-project-setup.html And don’t hesitate to ask any question on the dedicated channel #javascript
t
@LeoColman Node start faster, but there it is still some time. Autowarm approach solves issue to some extent. Still, in Kotless we consider support of JS in nearest future