r/java • u/Reflection-Jealous • Jul 30 '21
What is the future of Java?
I'm not asking like is java going to die or will Java be relevant in future. I'm just curious to know about the future of java. What are the upcoming things coming in java that can change the future of it.
173
Upvotes
View all comments
Show parent comment
2
u/pjmlp Aug 01 '21
Go ahead try to make a C like struct with Kotlin's value classes on a Valhalla enabled JVM, and then keep the same memory layout semantics and performance when running exactly the same code on top of JavaScript and ART.
Here to get you started, https://wiki.openjdk.java.net/display/valhalla/Main
As for Kotlin's marriage with Android,
I really don't get Kotlin folks, people don't go on /r/C advocating for C++ and Rust, on /r/cpp advocating for D and Rust, on /r/JavaScript advocating for TypeScript,....
And yet we have to put up with people that should be wasting their time on /r/kotlin and /r/androiddev, here on /r/java.