6 ms·
Kotlin solves most of the problems for us while leveraging the benefits of the JVM.
by christkv 6y ago
Kotlin solves most of the problems for us while leveraging the benefits of the JVM.
- BiteCode_dev 6y agoJVM != Java. We are talking about Java as a language, not the JVM as a platform. You can also run Python on the JVM. Although, some Java compromises are definitely linked to the JVM.
- KptMarchewa 6y ago>You can also run Python on the JVM. Jython is stuck on 2.7 and unmaintained.
- vips7L 6y agoGraal's implementation of python is maintained and up to date with python 3.
- sarsway 6y agoWhat's the state of server-side Kotlin now, is it usable and what kind of JVM are cloud hosts running it on? Kotlin seems like one of the best languages out there.
- christkv 6y agoWe use it in production with spring boot and deploy a single jar file on azure. Works pretty well
- RhodesianHunter 6y agoNot only usable, but becoming very widely used. It's no different from Java for deployment.
- LennyWhiteJr 6y agoKotlin is widely used internally at Amazon. In both AWS and retail.
- jcadam 6y agoWe're using Kotlin with Spring at the moment and everyone on the team prefers it over Java. I suggested Kotlin when they laughed at my suggestion of using Clojure. Ah well.
- pjmlp 6y agoLong term, Kotlin will only stay relevant on Android. They cannot fully embrace the JVM while targeting ART, JS and native at the same time.
- RhodesianHunter 6y agoWith respect, you're wrong. I say this because we're now seeing widespread adoption of serverside Kotlin at places like Google and Amazon. With the support of Google and Jetbrains they can target whatever they want.
- pjmlp 6y agoWith respect, welcome to the Kotlin version of #ifdef, where language features depend on the underlying runtime. That 3D graphics library using SIMD and value types from JVM on ART or JS? Good luck achieving the same perfomance and memory semantics. Kotlin/Native has already been rebooted as its memory model was incompatbile with JVM libraries.
- johnnycerberus 6y agoHow is Kotlin going to support the SIMD interface? It really sounds like #ifdef for every platform, unfortunately.
- dropofwill 6y agoIt’s worked out ok for scala (though i don’t think anyone cares about it for android). Obviously a lot of code that only works on the JVM, because a lot of people just don’t care about native/js. But most core libraries will have ‘shared’ pure scala code and then have the platform specific implementations in separate folders. This is all fairly standardized with sbt plugins to do all the heavy lifting. From the app side you just don’t use classes that you can’t use? It will be interesting to see how things like Valhalla and Loom will pan out.
- pjmlp 6y ago
- dagw 6y agoAre there many companies seriously using Kotlin for large projects outside of the Android space?
- throwaway10110 6y agoYes
- jicea 6y agoYes, our stack is Spring Boot + Kotlin on the back side, TypeScript + Vuejs on the front. We’ve millions of unique visitors each month, and we’re pretty satisfied with the stack.
- RhodesianHunter 6y agoGoogle, Amazon, hundreds of F 500's
- hagy 6y agoCash App uses Kotlin Multiplatform, including server-side code, https://kotlinlang.org/lp/mobile/case-studies/cash-app https://kotlinlang.org/lp/mobile/case-studies/cash-app
- LennyWhiteJr 6y agoAbsolutely. Kotlin is *widely* used for backend code at Amazon.
- cutler 6y agoYes, I think today the languages worth focusing on are Kotlin, Swift and C#. They are similar in many ways and come with built-in nullability. They are also platform languages offering excellent tooling and a productive development environment.