84 points · by Eduard · 12y ago · 49 comments
My colleague's reference for developer-facing changes in Java 8: http://www.techempower.com/blog/2013/03/26/everything-about-...
Kudos to whoever wrote it up!
So what's the point of describing the on a page talking about additions to Java 8?
[1] http://mail.openjdk.java.net/pipermail/lambda-dev/2013-March...
That's how I read it at least.
https://github.com/orfjackal/retrolambda
"Retrolambda lets you run Java 8 code with lambda expressions on Java 7 or lower. It does this by transforming your Java 8 compiled bytecode so that it can run on a Java 7 runtime. After the transformation they are just a bunch of normal .class files, without adding any runtime dependencies."
Another issue is the depth of the process on each change: there are a number of discussions on each feature with multiple proposals to determine the best way to implement any feature and how it will fit in, etc. The number of companies and people involved in the feature design and implementation in each change is generally an order of magnitude greater than those other languages.
Comes down to heavy bureaucracy and design by committee creating a very long process - but the end result is generally extremely well thought through and tested, so I'm personally not complaining since I'm not footing the bill.
Obviously, at this stage Java has accumulated quite a lot of baggage, as could be expected from such a mature and ubiquitous language. Some of these issues are addressed in Java 8, and some by other JVM languages with various degrees of adherence to the Java philosophy.
I would strongly recommend watching these two talks by Joshua Bloch, where he explains Java's goals, philosophy and design. These goals were later adopted by Google for their own new languages, Dart and Go, that have the same "Java feel":
* http://parleys.com/play/514892250364bc17fc56bb15/chapter11/a...
* http://parleys.com/play/514892290364bc17fc56c444/chapter0/ab...
Have you looked at the API of function types? If we needed a definition of incoherent, overcomplicated, painfully stupid non-sense, this would be it.
I'd say the issue with Oracle's style of development is that it is primarily time-driven which just doesn't work for evolving languages.
Features are not developed and shipped when they are ready. Instead, they decide that they want to ship X in the upcoming version Y and sacrifice the quality to reach the dead-line.
Of course, stuff is ugly and inconsistent if it has been rushed all the time.
That the persons involved in designing those features are completely under-qualified doesn't help either.
This isn't to say Anders and company didn't significantly improve it, to be clear, but I tend to think they were looking much more at Java than at Object Pascal.
tl;dr - I think we mostly agree.
Edit: look at the code.
In case it's the former, "a lot nicer" is subjective, so it carries no weight in the discussion.
If the latter... well, go read a few books on compiler design and language theory.