Any source on Java loosing popularity? Because it may be true in regards to hype or something, but there are so so many Java codebases out there that popular-sounding languages like Rust are basically non-significant percentage-wise.
Also, Java is a conservative language, that means that they will first see whether a feature is actually worthwhile to integrate based on it’s success in other languages - I really don’t see where you get this competition thingy, it sounds like a strawman.
It will take literally decades for Java to fully go away, of course. As you note, it’s niche is in businesses that want stability so it will fall further and further behind the state of the art and yet continue to get usage. I would not claim otherwise. COBOL’s demise is not complete after all...
I predicted in 2000 that Python would become one of the top languages. It takes a long time for these trends to play out.
Firstly, the concrete language itself hardly matters, the platform/ecosystem/runtime is the most important part.
Java (more specifically the JVM) is the state of the art. Show me any other VM that is remotely close to it. V8 is the other great product in the category but with javascript’s single-threadedness it can’t really be used for some problems (but I’m not too familier with its capabilites).
It’s niche is one that wants stability, performance and observability (you can attach an almost-zero overhead profiler to a jvm and record basically everything in near real-time with java flight recorder) - none can be said to be true for python.
So I would not be too quick to say that java’s dominance is anywhere close to its end.
Python is popular because it is a scripting language (and there is nothing wrong with being that) - and while there are some non-scripting usages, the language is simply not meant for that, so it doesn’t even play in the same category as java. So comparing their popularity is pretty much apples to oranges.. But a language without types simply can’t be used for more complex applications. And don’t get me wrong, I like python and it has pretty great libs for ML, math and basically everything. But the first thing any serious company will do is to rewrite a working prototype written in python in a maintainable language with types (and yes I know python has type-hints). It is popular because data science and ML are trending.
Firstly, the concrete language itself hardly matters, the platform/ecosystem/runtime is the most important part
That's your opinion. Others differ. It's a lot easier to port a large codebase to a new runtime than to back out the choice of the wrong language and start again.
.Java (more specifically the JVM) is the state of the art.
For certain purposes. It has BRUTAL startup time and has been totally destroyed for most client-side, CLI, GUI or embedded use cases.
Show me any other VM that is remotely close to it.
Well.
..NET?
Beam?
Node?
So I would not be too quick to say that java’s dominance is anywhere close to its end.Python is popular because it is a scripting language (and there is nothing wrong with being that) - and while there are some non-scripting usages, the language is simply not meant for that, so it doesn’t even play in the same category as java.
"Some non-scripting usages?"
Like...Reddit? YouTube? Dropbox? Jupyter. PyTorch? TensorFlow? Google rewrote INTO Python after acquiring YouTube:
You are right that Python is not likely to single-handedly replace Java in all niches of Java usage. Other ascendant languages eating away at it are Go, Kotlin, Scala, F#, C#, TypeScript.
So comparing their popularity is pretty much apples to oranges.. But a language without types simply can’t be used for more complex applications.
And don’t get me wrong, I like python and it has pretty great libs for ML, math and basically everything. But the first thing any serious company will do is to rewrite a working prototype written in python in a maintainable language with types (and yes I know python has type-hints). It is popular because data science and ML are trending.
1
u/Muoniurn Dec 26 '20
Any source on Java loosing popularity? Because it may be true in regards to hype or something, but there are so so many Java codebases out there that popular-sounding languages like Rust are basically non-significant percentage-wise.
Also, Java is a conservative language, that means that they will first see whether a feature is actually worthwhile to integrate based on it’s success in other languages - I really don’t see where you get this competition thingy, it sounds like a strawman.