[Israel.pm] Another perl vs ruby

Shlomi Fish shlomif at shlomifish.org
Thu Apr 5 02:25:30 PDT 2012

On Sat, 31 Mar 2012 12:54:32 +0300
sawyer x <xsawyerx at gmail.com> wrote:

> https://metacpan.org/module/Math::GMP
> From the first description line:
> Math::GMP was designed to be a drop-in replacement both for Math::BigInt
> and for regular integer arithmetic. Unlike BigInt, though, Math::GMP uses
> the GNU gmp library for all of its calculations, as opposed to straight
> Perl functions. This can result in speed improvements.

Well, Math::GMP only handles integers. Math::BigInt can try to use it by
default (using «lib => 'GMP'» «only => 'GMP'», etc.) and there's also
Math::BigRat which uses Math::BigInt by default.

There's also https://metacpan.org/module/Math::GMPq which uses the libgmp's
underlying rational routines.


	Shlomi Fish

Shlomi Fish       http://www.shlomifish.org/
Freecell Solver - http://fc-solve.shlomifish.org/

Q: I’ll be about 6.5 milliard Terran years next September.
    — Star Trek, “We, the Living Dead” by Shlomi Fish

Please reply to list if it's a mailing list post - http://shlom.in/reply .

More information about the Perl mailing list