Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×
Java

+ - Better Java LINQ querying->

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).""
Link to Original Source
Microsoft

+ - Windows 7 Kicks Out Windows XP From The Top Spot i->

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."
Link to Original Source

Comment: Java is cool (Score 2) 292 292

There are some pretty cool developments going on in Java lately, e.g. LINQ, functions and reified generics. Why wait for the JCP when there are enough mad people out there who will implement all the tools that Java is perceived to lack? See for example: https://github.com/nicholas22/jpropel-light
Java

+ - Java LINQ-> 3 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."

Link to Original Source

You can't go home again, unless you set $HOME.

Working...