News and views from the Java SE Development-Kit Community
The academic literature is rife with algorithms for pseudo-random number generators (PRNGs). Typically, there's a trade-off between performance and the quality of the distribution. In most cases I need PRNGs to implement very lightweight Bernoulli trials for randomized stress tests, benchmarks, or scalable probabilistic counters. My budget is usually less that 100 cycles to generate a uniformly distributed value. Marsaglia's xor-shift PRNG is one ...
Say you wanted to generate a stream of uniformly distributed random integers in the range [0,N) where N > 0. Java's Random.nextInt(N) is an example of a convenient API that does just that. Furthermore lets say you willing to trade off the quality of the distribution in order to gain better performance -- lower latency for each call to nextInt(N). Since we care about speed, we'll ...
I just released a new version of Orson Charts
, a 3D chart library for the Java platform. Version 1.2 contains significant new features driven by customer requirements:
Hopefully the last snapshot before the 7.4 release candidate.
Today I released version 1.5 of Orson PDF
, a fast and small PDF generator for Java (it implements the Graphics2D API). I created this library last year because I wanted to provide export to PDF for both JFreeChart
and Orson Charts
, but without taking on a big external dependency:
The Orson PDF
jar file weighs in at less than 70kB (without using Pack200 or ...
I’m looking forward to EclipseCon 2014, a mere two weeks away. As usual, there is some great pure Java content. And also as usual, you don’t have to be an Eclipse IDE users or be involved in projects, there’s more … Continue reading →
Tomorrow marks 2 years I’m at Red Hat, and it has been so far a very exciting journey, for one of the most interesting and awesome company around. I’m glad I’m here! Only problem is that I started on 29th of February, and tomorrow is actually 1sth of March… so I need to wait two […]
Early Access builds of JDK 7u60 have been updated with Build b07
. This build updates HotSpot in JDK 7u60 to HotSpot 24.60 build 09, updates time zone support data to tzdata2013i, and fixes
various issues, one of which was reported by Groovy developers - thanks! If you find issues during your own testing of this build, please report a bug
.A list of changes is ...
I found this lying on my hard drive from a while back - it's a simple ring chart with text in the middle, created using JFreeChart:
Sorry, I didn't notice a thread on Oracle's forum
until recently JDK-8028351
was reported to us directly. After some investigation, the bug is resolved in 7u60/8. Hopefully it's not too late for our customers.
A new development snapshot is available. I finished the merge of JSR-292 part of OpenJDK
7u40. The result is a bit depressing (but not unexpected) for the amount of effort
that it took. The net result is that most stuff works the same (I did fix a couple
of bugs), except slower.
MSPC 2014 will be co-located with PLDI 2014 in Edinburgh. The paper due-date is March 10th.
When I released Orson Charts for HTML5 a couple of weeks back, one of the immediate questions was why I used HTML5 Canvas for the rendering instead of SVG. The main reasons for choosing Canvas were that (1) the code was being ported from the original Java version of Orson Charts and the Java2D rendering used there maps easily to the Canvas API in ...
Earlier this month I attended FOSDEM
in Brussels, which was excellent as usual. On Sunday morning, I took a little diversion and went to Nathan Sawaya's The Art of Brick
at the Bourse
. I'll show you a couple of photos, even if they don't really do justice to the exhibits. I liked this one because I feel like this sometimes when I work really ...
Coming up next month, I'll be first speaking
on March 19th at the rheinjug in Düsseldorf on JDK 8, and then heading to Berlin the next day to joinPaul Sandoz
for a Java SE 8 party. See you there!
Last year, I wrote a swizzling API for my own use in patching Xcode; I wanted an easy way to define new
method patches, and the API wound up being pretty nice:
Last week I ran into Gerrit Grünwald (@hansolo_) whilst demoing JMC in the Oracle booth at JFokus. I’d built a little RPi sensor board to have in my summer house, and since there is a lot of interest in the Internet of Things, I thought I’d contribute by showing how easy it is to hook […]
Lambda expressions are one of the coolest features of Java 8 so far. But I think there is a (not so) secret weapon that shows just how powerful such “syntactic sugar” can be in increasing code readability and writeability. When you increase the expressiveness of code it unlocks a higher level of understanding that can make the most obtuse of tasks simple.
All times UTC