Live data from Hacker News

Ask HN: Would Java make it if introduced today?

news.ycombinator.com

11–20 of 57 posts

Re: Ask HN: Would Java make it if introduced today?

#11
post #4

It's not really about the technology, it's about the hook. I also started using Java when it came out, and there were two main hooks for us C/C++ coders: - write once, run anywhere. - write programs that run on web browsers (applets). Today, it could be: "I want to write an Android app, and Google just released this new Java language/platform that I have to use." In other words, any new language can make it if a larg…

So, unlike swift.

Re: Ask HN: Would Java make it if introduced today?

#12
I don't think any of the languages which were introduced 20-25 years ago would make it.

All modern languages and all current iterations of the older languages are vastly superior by every imaginable metric.

All those 1.0s from the past would look like someone's toy project, because, well, that's what they were.

Re: Ask HN: Would Java make it if introduced today?

#13

Not sure how that can be answered. How would it compete against C#, which is basically Java++, and now open source and cross platform, and mature? But C# doesn't exist without Java, which it was heavily influenced by. Scala runs on the JVM. Does Scala exist if Java is "introduced now"? Scala is also a Java++. I mean, Java was such a major influence that you have to stipulate how we deal with the fact that Java couldn…

Agreed. If Java hadn't existed until now, it's entirely unclear what languages would be popular or even exist. Hell, would object oriented programming be popular, or would it be a niche paradigm?

Re: Ask HN: Would Java make it if introduced today?

#14
Java was a success because performance + ease of use compared with the languages then available, on the hardware available. Today, python, ruby etc are fast enough for many tasks.

Java was a hit in the enterprise because it had static typing, modules etc and was a complete product (tooling, doc - and stewardship from a big and respected tech company, who was neutral). OO helped, fashion-wise. C# and objective-C are the most similar languages today - but notwithstanding MS very recent moves, both are wedded to a proprietary company.

But if Java was introduced today, it would have a difficult fight against Go: Go is similar, and with Google's neutral backing, would have taken Java's role. Or maybe languages which Java displaced: delphi, ada, etc.

The realistic answer is: if java hadn't existed, something that met those needs would have been drawn forth by the demand.

Re: Ask HN: Would Java make it if introduced today?

#15

Honestly, as it currently stands, Java appears to me as merely a pared down version of C#. C# shares nearly all of the same major features, while adding in more useful ones like properties and Linq, plus the promise of many new features on the horizon, like the null propagating operator. All of those, plus the rest of Microsoft's development ecosystem, make it a much nicer language overall. The only reason I don't th…

> The only reason I don't think C# has taken over Java yet is because of how entrenched Java is

A far bigger factor is that C# is (or at least was) Windows only.

Re: Ask HN: Would Java make it if introduced today?

#16

Honestly, as it currently stands, Java appears to me as merely a pared down version of C#. C# shares nearly all of the same major features, while adding in more useful ones like properties and Linq, plus the promise of many new features on the horizon, like the null propagating operator. All of those, plus the rest of Microsoft's development ecosystem, make it a much nicer language overall. The only reason I don't th…

Wasn't C# developed after Microsoft failed to buy Java from Sun?

Re: Ask HN: Would Java make it if introduced today?

#17

Not at all. Java's rise was the perfect storm of several factors: object orientation taken to its logical conclusion during a huge IT hype period for it (much like "Big Data" today), the tail end of a huge explosion of CPU architectures which made VMs very attractive, and CPU power finally getting to the point where pervasive garbage collection wasn't a detriment to large systems. The platform as we have today is sim…

object orientation taken to its logical conclusion

Oh, how I wish. OO was never taken to its logical conclusion in the mainstream at all. Java's Nygaard-style OO was just a sugar coating on top of a generic procedural paradigm and a far cry from Smalltalk's example that was set over 20 years prior. Ironically, much of the JVM's early optimizations were born out of research into the Self VM - a prototype-based OO Smalltalk environment.

Yet thanks to C++ and Java's object models following the Simula legacy becoming so firmly entrenched into the mainstream as the OO, today the entire paradigm has become disgraced and is outright reviled in some circles (how many times have I seen FP enthusiasts jump every time it's mentioned...)

The Smalltalk and Self communities are minuscule. A more recent addition was the Io language, but that too is very small. OO died before it could really shine, though the Smalltalkers' legacy did somewhat live on as they went on to establish many of the software development methodologies and maxims that are taken for granted today.

Re: Ask HN: Would Java make it if introduced today?

#18
Absolutely. The only thing really keeping Java from taking over the world is a slightly outdated standard lib. It's a great combination of speed, portability, community, OO, native types, functional prototypes and some clear lines drawn so you can't shoot yourself in the foot too terribly bad.

Oracle's API architects are concerned with selling as much WebLogic licenses as possible however, so don't expect changes soon. However, the community has come up with some absolutely brilliant libraries where Oracle has clung to legacy technology.

All in all, it's a superb language with a bright future. Maybe we'll get better leadership as Oracle is forced out of the closed source era (it's happening at Microsoft, so don't laugh).

Re: Ask HN: Would Java make it if introduced today?

#19
Instead of answering the question, I'd like to point out how different the world of programming might look today WITHOUT Java. Java was the first maintstream GC language (no more malloc), fully object oriented and the first byte code based VM language. Prior to Java, you were either writing in interpreted languages like Perl or in C/C++.

Java brought programming to a higher standard with clear syntax, easy of use and a much faster learning curve than languages up to that point. That paradigm gave rise to new languages like Javascript and new designs for large scale software.

So, I think it's irrelevant if Java would make it if introduced today since I am not sure today would be here (or at least in its current form) without Java.

Re: Ask HN: Would Java make it if introduced today?

#20

Not sure how that can be answered. How would it compete against C#, which is basically Java++, and now open source and cross platform, and mature? But C# doesn't exist without Java, which it was heavily influenced by. Scala runs on the JVM. Does Scala exist if Java is "introduced now"? Scala is also a Java++. I mean, Java was such a major influence that you have to stipulate how we deal with the fact that Java couldn…

Agreed. If Java hadn't existed until now, it's entirely unclear what languages would be popular or even exist. Hell, would object oriented programming be popular, or would it be a niche paradigm?

OOP gained momentum in the late 80s and early 90s. Before we were programming in Java, many of us were using...C++. OOP might have been different, but it would probably still be dominant.
Post reply on HN