|
|
Subscribe / Log in / New account

Java: here to stay

Java: here to stay

Posted Jul 6, 2020 2:32 UTC (Mon) by marcH (subscriber, #57642)
In reply to: Book: Perl 7: A Risk-Benefit Analysis by tjc
Parent article: Book: Perl 7: A Risk-Benefit Analysis

From the perspective of making below average, 9-5 developers produce somewhat readable code[1] with minimum education and effort, reasonable performance, reasonable number of bugs and a fairly low number of security issues I don't think there is much that comes close to Java. Except maybe C# which is or used to be a (more; now less?) proprietary clone of Java or Kotlin which is a very impressive Java++ with that makes programming it almost enjoyable https://www.youtube.com/watch?v=X1RVYt2QKQE
The sweet spot between human vs machine readable and the lack of kludges like pre-processing also allow extremely powerful IDEs.

Its small market share on the desktop is just the tip of an "enterprise" and Android[2] iceberg that is everything but melting. If not in Java itself, new projects will still be started in something very close to it for the next couple decades. Programming in Java is rarely fun or exciting or ground breaking but almost always "good enough".

I wish the COBOLs of the next decades will be unsafe languages but considering people prefer buying "security products" rather than secure products I'm not holding my breath.
https://alexgaynor.net/2019/apr/21/modern-c++-wont-save-us/

[1] Try showing random pieces of Java code to non-Java developers. Try the same with Perl or COBOL.
[2] BTW, how is starting up a Java app on a mobile generally faster than a JVM on a PC? What is the Android "magic" there?


to post comments

Java: here to stay

Posted Jul 6, 2020 2:42 UTC (Mon) by Cyberax (✭ supporter ✭, #52523) [Link] (1 responses)

> [2] BTW, how is starting up a Java app on a mobile generally faster than a JVM on a PC? What is the Android "magic" there?
Android keeps an initialized copy of JVM in a special process ("zygote"). When it wants to launch a new application, this process is forked and the new instance uses all the pre-initialized classes.

Modern Android versions also precompile DEX classes into native code.

Java: here to stay

Posted Jul 6, 2020 4:17 UTC (Mon) by marcH (subscriber, #57642) [Link]

Thanks!

Conversely, this is another reason why we are (like it or not) near the end of Java: https://en.wikipedia.org/wiki/List_of_JVM_languages
The reason why so many languages target the JVM is because of the quality of the specification a.k.a "It Just Works". A probably boring but solid engineering foundation, exactly the opposite of:

> The project attracted a lot of theorists and experimentalists that didn't have much of an interest in releasing stable code,


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds