views:

473

answers:

2

I've read a few papers from Kahan tonight, and his famous rant against Java. Before I dive into the JVM spec, did anything change since the initial rant on this front? For example:

  • setting rounding mode
  • accessing the flags
  • getting more precision for free
  • ... ?

Thanks,

Nico.

A: 

My guess is they are still valid as I have not seen much change in this area since '98.

However, I am not sure they would really be used much even if they were added today. Many languages support variable precision arithmetic (as does Java) which appears to be a better solution for this type of problem. e.g. BigInteger, BigDecimal.

Peter Lawrey
"Arbitrary precision", not "variable precision". Together with changes to the floating point semantics in Java 2.0 (1.2) the arbitrary precision types give a good answer to Kahan's complaints. Not that I'm a numerical analyst myself.
Guss
I should confess that I've never seen a matrix inversion or a Kalman predictor in arbitrary precision. I'm not sure this is the right tool for numerical simulation.
nraynaud
+2  A: 

Prof. Kahan's student, Joe Darcy, became Sun's "floating point czar". His blog entry: http://blogs.sun.com/darcy/entry/everything_old_is_new_again is an entry point for learning more about work he did to correct the problems. There have been great improvements.

Tod Landis
Thank you, but this doesn't adress the rant. But it hints at the fact that there is no change in the fp system.
nraynaud