On Thu, Jun 3, 2010 at 2:17 AM, Charles Oliver Nutter <[email protected]> wrote: > Another data point for JRuby. > > JRuby has only two integer data types: Fixnum (implemented by > RubyFixnum, always containing a long) and Bignum (implemented by > RubyBignum, using BigDecimal). All Fixnum math operations have an > overflow check, and the arbitrary-precision nature of integers will > probably be the biggest hindrance to lifting integer math to > primitives.
Why bother with this? Java Longs (which is de facto what you have) aren't that much faster than BigDecimals, and if you add overflow checks, probably no better. Is it really a win to have more than one integer type? Or is this something you need for CRuby compatibility? -- GMail doesn't have rotating .sigs, but you can see mine at http://www.ccil.org/~cowan/signatures -- You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en.
