“As far as the Java platform (AKA ‘the JVM’) goes, Kotlin is painting itself into a corner.” (comment)
recommended by 2 users | 2020 | pron on: Kotlin 1.4 | language design | original thread |
pron on Aug 18, 2020 | on: Kotlin 1.4 | view on HN

As far as the Java platform (AKA "the JVM") goes, Kotlin is painting itself into a corner. Kotlin was designed in 2009-10, in the Java 7 days, around the time of the Oracle acquisition, and at a time of stagnation for Java due to Sun's decline. At the time, Android was also quite similar to Java. Kotlin was a great design in those conditions. Things are very different today.

Kotlin's design goals are now contradictory. It seeks to be a low-overhead language, i.e. provide abstractions that don't add overhead over the target platform, give access to all platform capabilities, and at the same time target multiple platforms -- Java, Android, LLVM and JS -- over none of which does Kotlin exert much influence (maybe a bit on Android). Since 2010, Java has moved away from Android, to the point that there are very big gaps between the two, and they're only growing.

By both trying to target multiple platforms (with no say in their design) and trying to add little or no overhead, Kotlin will soon find itself in a bind. It's coroutines are in conflict with Java's upcoming virtual thread's design, and its inline classes will cause problems with Java's Valhalla vs. Android. Kotlin will have to choose to either give up on low-overhead abstractions, give up on some of its platforms, give up on giving access to full platform capabilities, or split into multiple languages, each targeting a different platform. For example, if Kotlin's inline types will make use of Valhalla, then they won't work on Android, at least not without much overhead.

TL;DR: A full-capability, low-overhead, multi-platform language is hard to pull off in the long run when you have low market share on all of those platforms (except Android) and little or no influence on any of them. This was viable under some accidental circumstances, but those are no longer holding.

2 users recommended this comment. What they said:
hitekker Mar 12, 2026 | on: Kotlin creator's new language: a formal way to talk to LLMs… | context | aged well

This comment from 6 years ago predicts Kotlin's fate, I think https://news.ycombinator.com/item?id=24197817 I consider it prophetic.

My gut says Kotlin is great for individual developer experience. But I never heard or saw credible reports on the Total Cost of Ownership, e.g., Kotlin engineers hiring, swapping out on a team.

kaba0 Jun 14, 2022 | on: What I miss in Java, the perspective of a Kotlin developer | context

> I think Kotlin actually has the potential to dethrone Java on the JVM, it is that good.

No way.

I believe pron can do a better job articulating the reasons then I can so here is his comment: https://news.ycombinator.com/item?id=24197817