Thread overview
Numerical Analyst as Curmudgeon
Feb 09, 2003
Mark Evans
Feb 09, 2003
Walter
Feb 11, 2003
Roberto Mariottini
Feb 11, 2003
Walter
Feb 14, 2003
Roberto Mariottini
Feb 14, 2003
Walter
February 09, 2003
"Java, and Microsoft’s compilers with Windows NT, 2000 and XP are dangerous to use for floating-point computation."

http://www.cs.berkeley.edu/~wkahan/Curmudge.pdf



February 09, 2003
"Mark Evans" <Mark_member@pathlink.com> wrote in message news:b24bf9$1hn9$1@digitaldaemon.com...
> "Java, and Microsoft's compilers with Windows NT, 2000 and XP are
dangerous to
> use for floating-point computation."
>
> http://www.cs.berkeley.edu/~wkahan/Curmudge.pdf


Digital Mars C/C++/D do not suffer from his complaints #1 (because imaginary types are fully implemented) and #2 (because full 80 bit precision is used), but do with #3 because that's the way the language is defined.

I did read Prof. Kahan's papers in designing D <g>.


February 11, 2003
"Walter" <walter@digitalmars.com> ha scritto nel messaggio
news:b2589r$1vrl$1@digitaldaemon.com...
[...]
>
> I did read Prof. Kahan's papers in designing D <g>.
>

And what about what IEEE 754 calls a " Trap" ?

http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf page 20-25?

Ciao


February 11, 2003
"Roberto Mariottini" <rmariottini@lycosmail.com> wrote in message news:b2a95j$g9e$1@digitaldaemon.com...
>
> "Walter" <walter@digitalmars.com> ha scritto nel messaggio
> news:b2589r$1vrl$1@digitaldaemon.com...
> [...]
> >
> > I did read Prof. Kahan's papers in designing D <g>.
> >
>
> And what about what IEEE 754 calls a " Trap" ?
>
> http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf page 20-25?

D sets the FPU in a mode where it accumulates exception flags, and the programmer can decide when and where to inspect them.


February 14, 2003
"Walter" <walter@digitalmars.com> ha scritto nel messaggio news:b2aaeu$gpe$3@digitaldaemon.com...
>
> D sets the FPU in a mode where it accumulates exception flags, and the programmer can decide when and where to inspect them.

In http://www.digitalmars.com/d/float.html it's stated that the D Language should do that. But I can't understand the "[blah, blah, blah]" part :-)

Surely I think that a Trap should raise an exception, or a library function can be called to set the runtime in a throw-an-exception mode.

Ciao



February 14, 2003
"Roberto Mariottini" <rmariottini@lycosmail.com> wrote in message news:b2ieom$reu$1@digitaldaemon.com...
> "Walter" <walter@digitalmars.com> ha scritto nel messaggio news:b2aaeu$gpe$3@digitaldaemon.com...
> > D sets the FPU in a mode where it accumulates exception flags, and the programmer can decide when and where to inspect them.
> In http://www.digitalmars.com/d/float.html it's stated that the D Language should do that. But I can't understand the "[blah, blah, blah]" part :-)

Get the new Opera "bork" browser, that should provide a ready translation. <g>

> Surely I think that a Trap should raise an exception, or a library
function
> can be called to set the runtime in a throw-an-exception mode.

I think experience in C has shown this to be a less than useful feature. Setting the sticky flags in the FPU seems to be much more practical.