https://kotlinlang.org logo
#announcements
Title
# announcements
l

LeoColman

01/21/2020, 7:41 PM
Hey guys! Is Kotlin JS deprecated? Or are people using it actively?
s

serebit

01/21/2020, 7:42 PM
It's not deprecated, but it's encouraged to use the multiplatform plugin instead of the kotlin-js one
l

LeoColman

01/21/2020, 7:42 PM
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

Casey Brooks

01/21/2020, 7:43 PM
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

LeoColman

01/21/2020, 7:48 PM
It seems to be
Perhaps just plain Kotlin and JVM is not that hard to achieve
c

Casey Brooks

01/21/2020, 7:50 PM
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

LeoColman

01/21/2020, 7:52 PM
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

Casey Brooks

01/21/2020, 7:53 PM
It has auto-warming capabilities. You’ll never be able to fully remove the cold-start, even in a Node lambda
l

LeoColman

01/21/2020, 7:54 PM
Node starts faster, doesn't it? I read some benchmarks, that's why I aimed to go for it
c

Casey Brooks

01/21/2020, 7:56 PM
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

bashor

01/22/2020, 9:20 AM
@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

TanVD

02/05/2020, 10:30 PM
@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
3 Views