Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Java

Submission + - Better Java LINQ querying (github.com)

nicholas22 writes: ""A new type-safe LINQ implementation for the Java language has been developed leveraging the compiler pre-processing Java agent lombok-pg, making use of features not found in standard Java such as extension methods, block iterator yield co-routines and higher order functions. The source code is compiled down to standard Java bytecode (supporting the javac and ecj compilers) and works with all tools you're used to working with, such as Eclipse, Ant, Maven, Hudson, JUnit, etc. in a way that is transparent to the developer (i.e. there is no explicit pre-compilation step). LINQ queries provide compile time type-safety, allowing you do things like date range queries against date fields but keeping you from trying to do a date range query against a string field. Hopefully this catches on, resulting in fewer uses of String-based untyped querying (e.g. quaere), exploding at runtime and with less boilerplate and fewer lines of code than other alternatives (e.g. lambdaj).""
Microsoft

Submission + - Windows 7 Kicks Out Windows XP From The Top Spot i (digitizor.com)

dkd903 writes: "Talking about the numbers, Windows 7 now has a strong 40.21% share of all desktop operating systems around the world whereas, the usage share of Windows XP has slipped to 38.64%. All this happened a couple of days back (in October). The rise in usage of Windows 7 and the drop in usage of Windows XP has been consistent since the time Windows 7 was first launched."
Java

Submission + - Java LINQ (github.com) 3

nicholas22 writes: "A Java library providing LINQ (Language INtegrated Query) has been developed, using a Scala-style programming library called lombok-pg, that supports features not found in standard JDK libraries, such as extension methods, yield coroutines and functions.

Examples (valid Java):
String[] names = new String[] { "james", "john", "john", "eddie" }.where(startsWith("j")).distinct();
char[] alphabet = new Character('A').to(new Character('Z')).unbox();

This Java code would take approximately 4x the number of lines of code."

Slashdot Top Deals

The one day you'd sell your soul for something, souls are a glut.

Working...