From: Colin Bartlett Date: 2010-01-16T21:37:39+09:00 Subject: Re: Float Points error On Fri, Jan 15, 2010 at 8:08 AM, Phillip Gawlowski wrote: > And if Ruby is the bottle neck, it'd be possible to drop down to C, and > write an extension to handle the Float operations (or drop Ruby entirely, if > speed of computation is more important than speed of development, for > example). I think it's worth reminding people that it's possible to use Java with JRuby. On an admittedly low-spec laptop I've found that for heavy numeric calculations (for example calculating CRCs of large files, and for large floating point calcs) using JRuby to call Java gives similar performance to compiled FreePascal. The MRI Zlib.crc32 is written in C (that is correct?) and albeit that is integer arithmetic, again I've found that a JRuby/Java equivalent has a similar speed. I'd be interested in any speed tests comparing heavy floating point calculations with MRI + C extensions and JRuby with Java.