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!
That was awesome, right? Share it with your friends!
- 973,250 hits
- Various ways to perform OFFSET pagination in #Oracle: buff.ly/1DM2ecy. Though, you might want to avoid OFFSET buff.ly/1DM2ecz 19 hours ago
- RT @voxxed_vienna: SQL done right in @JavaOOQ . Join @lukaseder at @voxxed_vienna voxxed.com/days-vienna15/ 20 hours ago
Get Back in Control of Your SQL
Top Posts & Pages
- SQL Trick: row_number() is to SELECT what dense_rank() is to SELECT DISTINCT
- 10 Common Mistakes Java Developers Make when Writing SQL
- The Inconvenient Truth About Dynamic vs. Static Typing
- 10 More Common Mistakes Java Developers Make when Writing SQL
- 10 Subtle Best Practices when Coding Java
- Really Too Bad that Java 8 Doesn't Have Iterable.stream()
- The 10 Most Popular DB Engines (SQL and NoSQL)
- Don't be "Clever": The Double Curly Braces Anti Pattern
- Does Java 8 Still Need LINQ? Or is it Better than LINQ?
- Easy Mocking of Your Database
- jOOQ Tuesdays: Yalım Gerger brings Git to Oracle December 16, 2014
- Really Too Bad that Java 8 Doesn’t Have Iterable.stream() December 15, 2014
- The Inconvenient Truth About Dynamic vs. Static Typing December 11, 2014
- Don’t be “Clever”: The Double Curly Braces Anti Pattern December 8, 2014
- Do You Really Understand SQL’s GROUP BY and HAVING clauses? December 4, 2014
- How to Integrate Commercial Third-Party Artefacts into Your Maven Build December 2, 2014
- jOOQ Newsletter: November 28, 2014 – Black Friday jOOQ Sale – Only Today! November 28, 2014
- Use MySQL’s Strict Mode on all new Projects! November 20, 2014
- jOOQ Tip of the Day: Discover all Primary Keys November 14, 2014
- Don’t Migrate to MariaDB just yet. MySQL is Back! November 12, 2014