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!
- 562,815 hits
- jOOQ Newsletter: jOOLY 23, 2014 - Only 8 Days Left! - eepurl.com/ZzV3L 22 hours ago
- Stack Overflow scales "Big Data" vertically with SQL Server: buff.ly/1o9VsnJ 22 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
- The 10 Most Popular DB Engines (SQL and NoSQL)
- 10 Subtle Best Practices when Coding Java
- Does Java 8 Still Need LINQ? Or is it Better than LINQ?
- Frightening Facts about MySQL
- 10 Common Mistakes Java Developers Make when Writing SQL
- Easy Mocking of Your Database
- 10 More Common Mistakes Java Developers Make when Writing SQL
- Java 8 Friday Goodies: Map Enhancements
- Using SQL Injection Vulnerabilities to Dump Your Database
- jOOQ Newsletter: jOOLY 23, 2014 – Only 8 Days Left in jOOLY July 23, 2014
- Frightening Facts about MySQL July 22, 2014
- Keeping things DRY: Method overloading July 21, 2014
- Logon Triggers: The Oracle Database Magic Bullet July 14, 2014
- Java 8 Friday: More Functional Relational Transformation July 11, 2014
- PostgreSQL’s Table-Valued Functions July 7, 2014
- jOOQ Newsletter: July 2, 2014 – jOOLY 20% Discount Offering July 2, 2014
- Stop Unit Testing Database Code June 26, 2014
- Flyway and jOOQ for Unbeatable SQL Development Productivity June 25, 2014
- Should I Put That Table Alias or Not? June 24, 2014