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,398,968 hits
- Brains of the #jOOQ community, we summon ye. Awesome feature idea: buff.ly/1ONn4IR But how to implement it? With annotations? 1 day ago
- RT @robsmallshire: .@PeterHilton Fluent interfaces (e.g. the LINQ or Java Streams) are also fertile ground for naming practice discussions.… 1 day 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 More Common Mistakes Java Developers Make when Writing SQL
- Java 8 Friday: 10 Subtle Mistakes When Using the Streams API
- 10 Subtle Best Practices when Coding Java
- Java 8 Friday Goodies: Map Enhancements
- 10 Common Mistakes Java Developers Make when Writing SQL
- Do You Really Understand SQL's GROUP BY and HAVING clauses?
- Does Java 8 Still Need LINQ? Or is it Better than LINQ?
- The 10 Most Popular DB Engines (SQL and NoSQL)
- How JPA 2.1 has become the new EJB 2.0
- Is Your Eclipse Running a Bit Slow? Just Use This Simple Trick! April 21, 2015
- How JPA 2.1 has become the new EJB 2.0 April 15, 2015
- jOOQ Tuesdays: Vlad Mihalcea Gives Deep Insight into SQL and Hibernate April 14, 2015
- It’s the Little Things: The PL/SQL NULL Statement, and why Every Language Should have One April 13, 2015
- How to FlatMap a JDBC ResultSet with Java 8? April 9, 2015
- How to Avoid the Dreaded Dead Lock when Pessimistic Locking – And some Awesome Java 8 Usage! April 7, 2015
- How to Use Java 8 Streams to Swiftly Replace Elements in a List April 2, 2015
- Don’t be Fooled by Generics and Backwards-Compatibility. Use Generic Generic Types April 1, 2015
- Hack up a Simple JDBC ResultSet Cache Using jOOQ’s MockDataProvider March 26, 2015
- jOOQ vs. Hibernate: When to Choose Which March 24, 2015