Java

Local Variable Type Inference in Java 10

One handy feature that made the cut in JDK 10 release train is Local-Variable Type Inference (JEP-286). This language feature is part of project Amber, a successor to Project Coin 🙂 With more frequent releases planned for the Java platform, we could expect to see 2 feature releases this year, Read more…

By Arul, ago
Java

Private interface methods in Java 9

Starting in JDK 9 build 54, compiler support for private interface methods have been resurrected. This was one feature that was planned for Java 8 and did not make the final cut. It is now part of JEP 213. The primary motivation for this proposal is to enable code sharing Read more…

By Arul, ago
C#

Parallel Looping Constructs in Java (revisited)

Two years ago, I blogged about parallel for each construct using a very early version of lambda prototype compiler. At that time, Data Parallelism was already available in C# TPL, but Java designers were hard at work in bringing this idiom to Java. Lambda expressions support in Java 8 is Read more…

By Arul, ago
Java

Java 8 – This ain’t your grandpa’s Java

Java 8 adds support for bulk data operations (JEP 107) in the Collections library. It is unlikely every forms of bulk data operations will be added to the retrofitted Collections framework, but the language designers are making every possible effort in accommodating general use cases of “filter/map/reduce for Java”. Libraries Read more…

By Arul, ago
Java

Aggregate operations, the Lambda Goodness in Java

One of the primary uses of Lambda expressions is to implement aggregate operations that can often be parallelized using multi-core processors we have today. The computation over bulk data structures is an area where Lambda expressions provide much needed support where part of the computation is caller defined. Doug Lea’s Read more…

By , ago
Java

Lambdas in Java, Plan B in action

Recently, Brian Goetz published modified draft of the Lambda proposal. This draft is mature in terms of the direction where Lambda is heading for in the Java world and introduces some breaking changes from earlier draft to align with this direction. While there are few things that need to be Read more…

By , ago
Java

Rest of Project Coin explored, advantage Java 7

Project Coin includes the following proposals that will make into Java 7. – Binary literals and underscores in literals – Strings in switch – Simplified Varargs Method Invocation – Improved Type Inference for Generic Instance Creation (Diamond) – Improved Exception Handling for Java – try-with-resources (ARM) I have briefly touched Read more…

By Arul, ago