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!
- 408,408 hits
- Why the clock is ticking for #MongoDB: rhaas.blogspot.ch/2014/04/why-cl… 1 day ago
- RT @MarkusWinand: Just because you're using Hibernate doesn't mean you have to use it for everything —Gavin King, creator of Hibernate http… 1 day ago
Get Back in Control of Your SQL
Top Posts & Pages
- 10 Subtle Best Practices when Coding Java
- Column Stores: Teaching an Old Elephant New Tricks
- The 10 Most Popular DB Engines (SQL and NoSQL)
- Does Java 8 Still Need LINQ? Or is it Better than LINQ?
- Java 8 Friday: No More Need for ORMs
- Using SQL Injection Vulnerabilities to Dump Your Database
- SQL Trick: row_number() is to SELECT what dense_rank() is to SELECT DISTINCT
- Java 8 Friday: The Dark Side of Java 8
- 10 Common Mistakes Java Developers Make when Writing SQL
- We're Hacking JDBC, so You Don't Have To
- jOOQ Newsletter: April 16, 2014 – Monthly, Yearly, Perpetual licenses now available April 16, 2014
- How can I do This? – With SQL of Course! April 15, 2014
- We’re Hacking JDBC, so You Don’t Have To April 14, 2014
- Java 8 Friday: No More Need for ORMs April 11, 2014
- Java Rocks More Than Ever April 9, 2014
- The Top 10 Productivity Booster Techs for Programmers April 7, 2014
- Java 8 Friday: The Dark Side of Java 8 April 4, 2014
- jOOQ Newsletter: April 2, 2014 April 2, 2014
- Spring API Bingo April 1, 2014
- Open Source Completely Underestimates Contributor License Agreements March 31, 2014