Recently, I've been investigating the methods Java provides for developing desktop applications that efficiently utilize multicore processors. Java 7's Fork/Join Framework is the current focus of my investigation. But, Brian Goetz has just provided an update on the "State of the Lambda: Libraries Edition," which tells us lots about the current status of what's coming up in Java 8...
FM Lite is a specially tailored subset of FM that aims to complete with threads and multithreading.
A few nights ago, I was browsing the chapters about concurrent programming in Herbert Schildt's excellent "Java: The Complete Reference, 8th Edition," and I was struck by the evolution of concurrency in Java over the years, from threads, through the richness of Java 5's Concurrency Utilities, and on to Java 7's Fork/Join Framework...
With the advent of multicore processors on everything from desktop computers to tablets, pads, and even mobile phones, parallel processing is gaining increasing attention. This is at least in part what's behind the release of the Fork/Join Framework in Java 7, and the inclusion of Lambda Expressions...
Fast Messenger provides FutureReply a mechanism similar to the Future in Java. Sequential OO programs may keep the same program flow while enjoying high concurrency out of asynchronous messaging. When you obtain an instance of FutureReply by sending out a message, your code will continue without blocking. You can perform any work before you decide to check whether a reply is ready. Even the checking offers you two options, you can check, leave (non-blocking) and come back later, or you can wait (blocking) until a reply is ready.
This post revisits the active object implementation of the quick sort example, and introduces basic concepts of active object model provided by Fast Messenger. In the post I will explain what active objects are, how they identify themselves, how they address each other, and how they communicate with codes found in the quick sort example. (This post will not cover features not found in the example.)
This post describes two concurrent implementations of quick sort algorithm. One version uses active objects (provided by Fast Messenger) for concurrence, while the other version uses traditional multithreading.
Note to the Java 8 development team (and the JCP): the latest completed Java.net poll indicates that Java developers overwhelmingly advocate the inclusion of JSR 310 in Java 8. Not only did the poll draw a large volume of voting, but the votes were unusually strongly skewed...
The post describes three implementations of the Fibonacci function. Each implementation demonstrates a different programming model: sequential, multi-thread and active-object programming.
I've been neglecting my blog, but just a quick note to mention that my latest talk at JavaOne, DSLs with Groovy, is posted up on Slideshare.
The talk's designed for someone with no significant Groovy experience (unlike most Groovy DSL talks), so if it's interesting to you, check it out.
I'm hoping (but not promising) to turn the talk into a series of Blog entries in the coming weeks. So if you...
In my previous blog post, I did some experimentation with simultaneous execution of multiple threads. Since the threads were all doing relatively large chunks of work, the overhead from thread creation and management was almost irrelevant. In this post, I take a look at the overhead that launching a series of threads...
Try find the billionth fibonacci number. The answer should be in hexadecimal, and to prove that you have the whole number, you need to post the first 10 bytes and the last 10 bytes. I solved it in 2500 seconds on an 8-core machine. Winner will get special mention.
I like a good Java puzzle. The trickier the better. In this article I will tell you about a new set of puzzles that will melt your Java brain.
Release the newest version of the framework to persist objects in Apache Cassandra in easy way. Among improvement is the JPA annotations, also JPQL.
JCassandra jCassandra=persistence.createJCassandra("select * from Person"); List<Person> persons=jCassandra.getResultList();
table 1: sample using JPQL in Easy-Cassandra
I'm at Strata Santa Clara again this year. I'll post my raw notes. Hope you find them helpful.
Running the new version of the Easy-Cassandra framework it main objective is making it easy the communication between Apache Cassandra and your application in java. With it you able create, update, retrieve, delete the java's objects in easy way and simple, for this you must add some annotation in Class and fields.
An ORM easy to use in Cassandra...
Use the new Java7 (JDK7) grammar to search the source-code of Oracle's JDK 7u3 for usages of the new Java7 "project coin" language features (strings in switch, multi-catch, try with resource, diamond, binary literals, underscores in numeric literals, ...)
Lesson learned from dealing with soft-real time data.
Easy-Cassandra is a framework ORM API and a high client for Apache Cassandra in java, with this is possible persist information from the Java Object in easy way. For this is only necessary add some annotations in some fields and your class. It works like an abstraction's tier in the Thrift, doing call for Cassandra.