News for hackers. Stuff that matters.
Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @09:04AM (#29823639)
Java would be the same success as PHP .. it might be everywhere but due to all kinds of side forces.

It's like playing snooker, claiming a ball, missing it but scoring all the other ones accidentally and bragging.

Re:“I am literally losing sleep” over Java (1996) by Sharlin on Thursday January 06, 2022 @09:28AM (#29823888)
That's very unfair. Some people may dislike Java and its ecosystem (and even the JVM platform), but it is not where it is now by accident.
Re:“I am literally losing sleep” over Java (1996) by LanceH on Thursday January 06, 2022 @10:25AM (#29824691)
But it isn't necessarily there strictly on the merits of the language. Sun put a billion dollars of marketing into it. Managers, directors and others with expectation of ever programming were taking Java courses because it was going to change everything.

It was going to run on every device in my kitchen, and they were all going to talk to each other. Instead the first niche it found was J2EE, and that "write once, run anywhere" was a bit comical, because who swaps out the OS on their server?

It was apparently good enough to be the choice for Android and similar, but that was much later.

It's really difficult to describe how people -- especially non programmers -- bought into the hype surrounding Java.

I've since seen a bit of that hype around some things, but never to that extent: XML, SPA, a strange obsession with tiled widgets.

Re:“I am literally losing sleep” over Java (1996) by pbourke on Thursday January 06, 2022 @12:25PM (#29826517)
> It was going to run on every device in my kitchen, and they were all going to talk to each other. Instead the first niche it found was J2EE

The first niche was applets. A managed language with a batteries-included library, familiar syntax and cross-platform GUI story was a new thing at the time.

Re:“I am literally losing sleep” over Java (1996) by KptMarchewa on Thursday January 06, 2022 @02:03PM (#29828231)
3 billion devices run log4shell.
Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @09:55AM (#29824248)
I honestly wonder what made java so prevalent server side. JVM jit speed and memory safety are good arguments but the rest was not so shiny. Remember the J2EE era, it was horrible and the reason java got there seems, IMO, to be heavy marketing.

ps: I forgot, the JVM spec was a good thing, it made a lot of things sound for people, so easier deployments and less inconsistencies.

Re:“I am literally losing sleep” over Java (1996) by Jetrel on Thursday January 06, 2022 @11:17AM (#29825467)
Not exactly a java fan here, but java targeted the enormous block of people writing in C/C++ for their enterprise servers, and gave them "machine-independence". Being able to upgrade your server, and not having to rewrite your app, was huge. The competition wasn't PHP, at the time; it was C/C++.

It's interesting in today's era of Rust, that people think of Java as failing to replace C++; in practice, it was only 90% successful, and managed to replace the vast majority of cases where people did use it.

About the only things that didn't get replaced were (some) desktop gui apps, and apps that were so tiny that they weren't worth the launch of the JVM.

Re:“I am literally losing sleep” over Java (1996) by zmmmmm on Thursday January 06, 2022 @05:10PM (#29831056)
Also - you have to remember that in the late 90's / early 2000's, Windows was at peak dominance, nearly 100% of developers at work were stuck with a Windows desktop to develop on. At the same time nearly all servers were linux or maybe solaris. So how are you going to develop on Windows and deploy on Unix? C++ was a nightmare, scripting languages were far from ready ... Java was really transformational in how it gave a complete, totally portable standard library in a mature language framework. All these things are take for granted today.
Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @12:02PM (#29826167)
Yeah I remember steele saying they wanted to make c++ move toward lisp.

But you got me curious.. what kind of backend code was written in c++ ? did people write server side logic in it ? I remember seeing some Oracle C code but it felt like a strange thing and not a c/c++ land. But to be honest that's not my world.

Re:“I am literally losing sleep” over Java (1996) by pbourke on Thursday January 06, 2022 @12:31PM (#29826620)
C++ was quite common back in the day. Amazon began as a C++ monolith (obidos).
Re:“I am literally losing sleep” over Java (1996) by KptMarchewa on Thursday January 06, 2022 @02:05PM (#29828260)
I honestly feel there was no competition in the early 00s besides PHP, and that choice came with tons of other issues, especially at that time.
Re:“I am literally losing sleep” over Java (1996) by kaba0 on Thursday January 06, 2022 @10:38AM (#29824878)
PHP was a scripting language that got big because my aunt could create a “website” with it and host it for pennies. If anything, its popularity was the only surprising thing.

The JVM on the other hand was not chosen by Google, Apple, Alibaba and basically the majority of web servers to be the base stone of their functionality by accident.

Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @10:50AM (#29825068)
But the server side position of java is already a strange notion of success, as mentioned above java wasn't meant to live there. Hence the parallel with PHP, its mod_php was the reason admins installed it on servers, because it was easier and leaner (compared to mod_perl), a happy accident.
Re:“I am literally losing sleep” over Java (1996) by wanderingstan on Thursday January 06, 2022 @11:01AM (#29825229)
Indeed. Reminds me of an early 1997 interview I had about the future of Java, when it was trying hard to displace JavaScript in the browser (swing gui and such) and flash was already starting to beat it out. https://wanderingstan.com/netguide-interview-february-1997
Re:“I am literally losing sleep” over Java (1996) by jfengel on Thursday January 06, 2022 @02:24PM (#29828572)
I still wonder what would have happened if Java decided to take Javascript's approach by giving access to the DOM, rather than an entirely separate GUI mode.

Things like Google Maps and Gmail came as something of a shock. They were near-desktop-level apps entirely within the browser. That meant JS, not because of the language but because it was the only cross-platform system that gave access. It should have been possible to do that for Java as well, but they never really tried.

Re:“I am literally losing sleep” over Java (1996) by simion314 on Thursday January 06, 2022 @09:28AM (#29823898)
>Java would be the same success as PHP .. it might be everywhere but due to all kinds of side forces.

People like you that complain about C,PHP,Java etc forget the history , your favorite cool language did not exist at that time or if it existed had probably a lot of downsides. Also many complainers do not work with the languages and repeat like parrots something they read. I would love to get some perfect programming language, something with more maths in it that forces thinking of solutions and less glueing shit together or rewriting X and CoolLang for my CV.

Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @09:53AM (#29824207)
And what is that history I have forgotten ?

Was java an embedded project at first ? yes

Was it then a client side universal solution ? yes

is it still any of those two ? no

Also please don't make comments on me assuming I'm parroting, that would be nice :)

Re:“I am literally losing sleep” over Java (1996) by whimsicalism on Thursday January 06, 2022 @10:00AM (#29824303)
> Was it then a client side universal solution ? yes

This remains true?

Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @10:48AM (#29825039)
I rarely run into client side programs being better (or even interesting) due to java/jvm. Eclipse was quite a clusterf.. (at least when I left that side in 2008). Note that I'm not anti Java. I just think its course was fluctuating across time and "success" is really a strange term. The rare times people were happy about Java was the advanced JIT.
Re:“I am literally losing sleep” over Java (1996) by simion314 on Thursday January 06, 2022 @11:22AM (#29825551)
Minecraft Java Edition IMO has this giant community because it is easy to mod and this is because of Java since the devs did not create modding tools. I am sure it was much easy for one person to develop such a complex game in a manged language too , from my experience with desktop apps the ones I made in Adobe AIR using AS3 had a lot fewer bugs and fewer support tickets and we got cross platform too.

I also worked on a Java screen sharing in browser web conference solution back when this was not possible with native stuff or with Flash, if you understood the language you could get good performance.

Re:“I am literally losing sleep” over Java (1996) by whimsicalism on Thursday January 06, 2022 @11:12AM (#29825388)
IntelliJ/Pycharm?
Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @11:58AM (#29826085)
IntelliJ might be better than Eclipse/Netbeans but it's still not the massive success Java planned. A few exception in the IT side of the world.
Re:“I am literally losing sleep” over Java (1996) by simion314 on Thursday January 06, 2022 @01:28PM (#29827666)
>IntelliJ might be better than Eclipse/Netbeans

Is better then any other similarly featured IDE, so good that people pay for it rather then use free alternatives

Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @01:53PM (#29828061)
I know I used it for ages back when they started MPS
Re:“I am literally losing sleep” over Java (1996) by simion314 on Thursday January 06, 2022 @10:46AM (#29824995)
>Also please don't make comments on me assuming I'm parroting, that would be nice :)

I did not said you specifically but I doubt you have years of experience in PHP and Java but let me know How what was the better alternative back then? Writing webpackes in C or some proprietary language with a paid compiler? Was there something much better and for some reason people used PHp because was cool and were tons of "write in PHP zelots"?

From my memory the LAMP stack was free and was easy to start with, Java was much more productive then the alternatives and it had good tools, books and documentation. I can't think at any good alternative except the late C# but Microsoft was to incompetent to do the right thing and kept it proprietary and Windows only for a long time.

Re:“I am literally losing sleep” over Java (1996) by agumonkey on Thursday January 06, 2022 @10:54AM (#29825134)
I don't think the word productive ever reached my brain when I was learning websphere. Annotation driven servlets never felt exciting or clean (unlike the post closure / decorator era where you can write stuff clearly and rapidly). I'm calling for a winner language here, I'm saying praising java position is a strange notion of success, it's everywhere indeed, but for what reasons ?
Re:“I am literally losing sleep” over Java (1996) by simion314 on Thursday January 06, 2022 @11:17AM (#29825466)
> don't think the word productive ever reached my brain when I was learning websphere.

So what else was more productive? you said PHP is not the answer and "websphere" is not Java the language or Java the ecosystem (think of the many Java libraries out there and at the good enough Java standard library compared to others)