Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



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).""

Comment Re:Java is cool (Score 1) 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

Also see http://slashdot.org/submission/1810940/java-linq

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."

Oracle

Submission + - Oracle to bring Dtrace on Linux

mvar writes: Dtrace co-author Adam Leventhal writes on his blog about Dtrace for Linux:

Yesterday (October 4, 2011) Oracle made the surprising announcement that they would be porting some key Solaris features, DTrace and Zones, to Oracle Enterprise Linux. As one of the original authors, the news about DTrace was particularly interesting to me, so I started digging.
Even among Oracle employees, there’s uncertainty about what was announced. Ed Screven gave us just a couple of bullet points in his keynote; Sergio Leunissen, the product manager for OEL, didn’t have further details in his OpenWorld talk beyond it being a beta of limited functionality; and the entire Solaris team seemed completely taken by surprise.
Leunissen stated that only the kernel components of DTrace are part of the port. It’s unclear whether that means just fbt or includes sdt and the related providers. It sounds certain, though, that it won’t pass the DTrace test suite which is the deciding criterion between a DTrace port and some sort of work in progress.

Comment Not really (Score 4, Insightful) 121

It's much easier to look for spikes or what your data looks like *after* an important event has taken place, than to actually predict them. I'm sure that even if I look at my computer logs on a significant date, there's most likely something there that I would class as interesting or out of the ordinary, in hindsight, too...

Comment Re:Apple cares only about profit (Score 0) 346

Sorry but no, not all corporations are like that. In fact, there are many corporations that put environmental and social responsibilities first. And also no to your second argument, voting with your wallet actually does work. I don't know if you're an Apple consumer or just naive, but these are facts.

Comment Re:They're spending a lot of money on this? (Score 1) 377

Sorry but I think parent talks a load of bull. How can it be modded interesting? The guy is talking about modeling and analysis but not about any facts/evidence of success about its predictive nature. In other words, he merely said that you can do more with more computing power. Sorry but... isn't that obvious?

Slashdot Top Deals

"The only way I can lose this election is if I'm caught in bed with a dead girl or a live boy." -- Louisiana governor Edwin Edwards

Working...