When will we have LINQ in Java?
LINQ is one of Microsoft’s .NET Framework’s most distinct language features. When it was first introduced to languages such as C#, it required heavy changes to the language specification. Yet, this addition was extremely powerful and probably unequalled by other languages / platforms, such as Java, Scala, etc. Granted, Scala has integrated XML in a similar fashion into its language from the beginning, but that is hardly the same accomplishment. Nowadays, Typesafe developers are developing SLICK – Scala Language Integrated Connection Kit, which has similar ambitions, although the effort spent on it is hardly comparable: one “official” Scala developer against a big Microsoft team. Let alone the potential of getting into patent wars with Microsoft, should SLICK ever become popular.
What does Java have to offer?
There are many attempts of bringing LINQ-like API’s to the Java world, as the following Stack Overflow question shows:
Here’s another newcomer project by Julian Hyde, that I’ve recently discovered:
He tried his luck on the lambda-dev mailing list, without any response so far. We’re all eagerly awaiting Java 8 and project lambda with its lambda expressions and extension methods. But when will we be able to catch up with Microsoft’s LINQ? After all, jOOQ, linq4j are “internal domain specific languages”, which are all limited by the expressivity of their host language (see my previous blog post about building domain specific languages in Java).
Java 9 maybe? We can only hope!
Everytime you read an excellent article and don't share it, god kills a kitten!
- 1,631,906 hits
- "Instant Enterprise REST – 3 Game Changing Technologies" by Val Huber from @sqlrest buff.ly/1J8cSgh 1 week ago
- "5 Features in Java 9 that WILL Change How You Develop Software (and 2 That Won’t)" buff.ly/1RbvXNy 1 week ago
Get Back in Control of Your SQL
Top Posts & Pages
- 10 Subtle Best Practices when Coding Java
- Do You Really Understand SQL's GROUP BY and HAVING clauses?
- SQL Trick: row_number() is to SELECT what dense_rank() is to SELECT DISTINCT
- The Difference Between ROW_NUMBER(), RANK(), and DENSE_RANK()
- The 10 Most Popular DB Engines (SQL and NoSQL)
- Java 8 Friday: No More Need for ORMs
- Java 8 Friday: 10 Subtle Mistakes When Using the Streams API
- 10 Common Mistakes Java Developers Make when Writing SQL
- Java 8 Friday Goodies: Map Enhancements
- Top 10 Easy Performance Optimisations in Java
- What’s Even Harder Than Dates and Timezones? Dates and Timezones in SQL / JDBC! June 30, 2015
- How to Debug Your Maven Build with Eclipse June 23, 2015
- Implementing Client-Side Row-Level Security with jOOQ June 17, 2015
- Querying Your Database from Millions of Fibers (Rather than Thousands of Threads) June 16, 2015
- JavaEE or Spring? Neither! We Call Out For a Fresh Competitor! June 10, 2015
- jOOQ Tuesdays: Axel Fontaine Predicts Exciting Times as our Industry is Maturing June 9, 2015
- What Exactly are SQL Views? June 2, 2015
- We’re Taking Bets: This Annotation Will Soon Show up in the JDK May 28, 2015
- Type Safe Queries for JPA’s Native Query API May 26, 2015
- Do Not Make This Mistake When Developing an SPI May 21, 2015