Re: Java 8 Lambdas

2021-04-30 Thread Steve Loughran
LambdaTestUtils added l-expression based intercept() in HADOOP-13716 in October 2016. Five Years Ago. That was still java-7...we added it knowing what java 8 would bring. There is no way we could go back on not using intercept() in tests. Since then some other big l-expression stuff I've been

Re: [E] Re: Java 8 Lambdas

2021-04-29 Thread Jim Brennan
I just think that we should be cognizant of changes (particularly bug fixes), that will need to be ported to branch-2.10. Since it is still on Java7, anytime you use a lambda in code on trunk, we need to change it for branch-2.10. While not difficult, this is extra work and it increases the

Re: Java 8 Lambdas

2021-04-28 Thread Ahmed Hussein
Thanks Eric for raising this issue! The debate about lambda is very complicated and won't be resolved any time soon. I don't personally know a lot about the > performance of lambdas and welcome arguments on behalf of why lambdas No one probably knows :) - Lambda performance would depend on the

Java 8 Lambdas

2021-04-27 Thread Eric Badger
Hello all, I'd like to gauge the community on the usage of lambdas within Hadoop code. I've been reviewing a lot of patches recently that either add or modify lambdas and I'm beginning to think that sometimes we, as a community, are writing lambdas because we can rather than because we should. To