Is anyone using kotlin for data science in produc...
# datascience
a
Is anyone using kotlin for data science in production?
a
I am using a D/L model in Prod, yes. Converted from Java and based on
deeplearning4j
. Working on a much more sophisticated model as well
a
How has it been? Specially around why kotlin iver python type questions
m
There is a great article about advantages of statically typed languages comparing to python. https://www.47deg.com/blog/getting-started-swift-tensorflow/ Despite it being swift, you can apply the most of arguments to Kotlin too. For me has Kotlin other great benefit, the tooling(Idea, gradle etc.). I didn't trying swift under the linux yet, not because I like it or not, because just already setup alone is quite complicated and Swift is in the version 5.0 already. Another great strength of Kotlin is the Multiplatform game, so lets see. Also not to forget the Software 2.0 story on Kotlin by Facebook ...
a
Static typing wont help if all the ML stuff required doesn't exist lol
a
Oh, it was easy. the project also uses a Hazelcast IMDG (https://hazelcast.org/) and distributes the model data across a number of servers in a Kubernetes cluster - so classifications are done using "local" data making for ultra-fast <(<10ms) response times. Python's threading model disallows this type of thing (along with running Hazelcast in "embedded" mode which increases performance dramatically). Basically, Python is great for research, not so wonderful in production
a
Where are you deployed? Hazelcast doesnt work on cloud because multicast is disabled right?
a
There's plenty of ML/DL code available for Java - in the SMILE library and deeplearning4j. What's missing (mostly) is the "discovery" aspect. Once you understand which model/algorithm is best suited, converting code to Kotlin (Java) is pretty trivial - and then training and execution is 40X
Deployed in AWS EKS. Hazelcast (and Jet) have a Kubernetes plugin - everything works very reliably even when scaling EKS and/or replica counts
a
I see - thanks!