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!
- 801,693 hits
- RT @ilopmar: Great jOOQ syntax. I've to try it with Groovy #GeeCON http://t.co/DJ9QQ3S7I0 1 day ago
- RT @musketyr: @ilopmar me too. I like @JavaOOQ pricing model. Free for open source dB, paid for paid dBs. It makes so much sense. 1 day ago
Get Back in Control of Your SQL
Top Posts & Pages
- 10 Subtle Best Practices when Coding Java
- 10 Common Mistakes Java Developers Make when Writing SQL
- The 10 Most Popular DB Engines (SQL and NoSQL)
- SQL Trick: row_number() is to SELECT what dense_rank() is to SELECT DISTINCT
- Does Java 8 Still Need LINQ? Or is it Better than LINQ?
- Using SQL Injection Vulnerabilities to Dump Your Database
- 10 More Common Mistakes Java Developers Make when Writing SQL
- Java 8 Friday: The Dark Side of Java 8
- The Java Fluent API Designer Crash Course
- Let's Stream a Map in Java 8 with jOOλ
- Let’s Stream a Map in Java 8 with jOOλ October 23, 2014
- Stop Claiming that you’re Using a Schemaless Database October 20, 2014
- The dreaded DefaultAbstractHelperImpl October 17, 2014
- Don’t Miss out on Writing Java 8 SQL One-Liners with jOOλ or jOOQ October 2, 2014
- The Caveats of Dual-Licensing September 30, 2014
- Using Your RDBMS for Messaging is Totally OK September 26, 2014
- Asynchronous SQL Execution with jOOQ and Java 8’s CompletableFuture September 23, 2014
- Top 10 Most Popular Articles on the jOOQ Blog September 22, 2014
- How Nashorn Impacts API Evolution on a New Level September 19, 2014
- This Just In!! Updated Silly Keyword Metrics September 17, 2014