Live data from Hacker News

Java Hangs When Converting 2.2250738585072012e-308

exploringbinary.com

1–10 of 70 posts

Re: Java Hangs When Converting 2.2250738585072012e-308

#5

The compile-time version will hang a Clojure REPL, too: user=> (def d 2.2250738585072012e-308)

makes sense, same thing in scala:

Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_22). Type in expressions to have them evaluated. Type :help for more information.

scala> 2.2250738585072012e-308

(infinite loop)

Re: Java Hangs When Converting 2.2250738585072012e-308

#8
I remember when everyone was bashing PHP (http://news.ycombinator.com/item?id=2066084) when they were bitten by the same issue. Then there were articles about this being maybe a GCC bug or at least design issue but people were still saying that it's PHP's duty to take care of this.

I was always afraid that this might bite other environments too as the code that caused the issue in PHP was apparently taken from elsewhere (see http://blog.andreas.org/display?id=9 for a detailed analysis of the problem). Now this is turning out to be true.

Post reply on HN