5 ms·
The question is: if you compile Java to native code, what's the purpose of using Java instead of Go or Rust or C++?
by mister_hn 7y ago
The question is: if you compile Java to native code, what's the purpose of using Java instead of Go or Rust or C++?
- eternalban 7y agoLanguage semantics; libraries; runtime; tooling; talent pool; ... [p.s.: point is not that X is better than Y.]
- mister_hn 7y agowhat? you forgot tooling and semantics of modern C++. I found C++ tooling far superior to Java ones
- chrisseaton 7y agoExisting code. Existing expertise. Existing tooling.
- xvilka 7y agoYou can convert it to Kotlin and just use LLVM-based native[1] compilation that is even more complex efficient. It's completely automated, and gives you the better and more modern language without much hassle. [1] https://kotlinlang.org/docs/reference/native-overview.html https://kotlinlang.org/docs/reference/native-overview.html
- Jimmy123456789 7y agoYour question presupposes that the main reason for Java's widespread adoption was that it runs in a VM. That is not true. Java as a language was designed to be significantly more productive than C++ in the context of enterprise software development, regardless of whether its compiled or not.
- ncmncm 7y agoIndeed, Java is more productive, if you count lines of code produced per day, which is always easier than counting actually useful features produced. "The context of enterprise software development" has to be the euphemism of the century.
- Jimmy123456789 7y agoI was a C++ developer for years. Now working with Java and I am definitely more productive with it. It doesn't require more lines than C++, and is much more straightforward to deal with.