Personal repository for experimentation with the new JDK 8 features.
ant clean compile dist
I got pretty excited with Java 8, long before they even reached general availability. I tought myself how to build the the JDK and started playing with their new features. I was psyqued about functional programming back then and I just couldn't wait to get may hands on their latest build. In those days there weren't such frequent builds as they do today.
Since I was following the project so close back then, I managed to answer a few very interesting question in Stackoverlow.
- Why There's Interface Pollution in Java 8
- Should I use Java8/Guava Optional for every method that may return null?
- Why are Java 8 lambdas invoked using invokedynamic?
- Remove Elements from a Collection while Iterating
- Lambdas, multiple forEach with casting
- How to specify function types for void (not Void) methods in Java8?
- Adding two Java 8 streams, or an extra element to a stream
- How do I use the new computeIfAbsent function?
- CompletableFuture in loop: How to collect all responses and handle errors
- Is polymorphism possible without inheritance?
- Why is “final” not allowed in Java 8 interface methods?
- Java 8: Mandatory checked exceptions handling in lambda expressions. Why mandatory, not optional?
- Why does Iterable not provide stream() and parallelStream() methods?
- Java Lambdas and Closures
- Why doesn't Java 8's ToIntFunction extend Function<T, Integer>
- Parallelism in Java 8
- Java 8 default method readability
- Java 8 dancing around functions as first class citizens?
- Why does Guava's Optional use abstract classes when Java 8's uses nulls?
- Why an Anonymous class can't implement multiple interfaces directly?
And many more...
During this time I put up a list of interesting links and reference material which I also contributed in the java-8 tag in Stackoverflow.
- What's New in JDK 8
- Java 8 Launch
- Project Lambda
- Official Site
- State of Lambda
- State of Lambda: Libraries Edition
- Translation of Lambda Expressions
- From Lambdas to Bytecode
- Lambda: A Peek Under the Hood
- Evolving Java
- Maurice Naftalin's Lambda FAQ
- Java Tutorials
- JSR 335: Lambda Expressions for Java Programming Language
- JLS: Lambda Expressions
- Historic References
- Date/Time API
- Nashorn
- Others
- Books