Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

May I ask out of curiosity what you would like to use those integers for? Eg. block cyphers, message digests, graphics, physical modeling, amounts of money?

What seems strange to me is that you want more performance than you can get using any of the generic big integer modules, yet you still want to do individual integer operations in perl, as opposed to using higher level functions written in C, such as a cryptographic library or a library for numerical vectors.

For reference to visitors, some (but not all) arbitrary precision integer libraries on CPAN are the two fast backends of Math::BigInt (Math::BigInt::GMP and Math::BigInt::Pari), Math::GMP, Math::GMPz, Math::Pari. I believe that none of the integer vector modules support 128 bit integers: PDL just doesn't, whereas Math::GSL wraps C libraries (GSL and indirectly BLAS) which only support real and complex floating point vectors.

Update 2011-03-18: continuing the list of arbitrary precision arithmetic solutions, see also Convert big number from decimal to hexadecimal.


In reply to Re: Module for 128-bit integer math? by ambrus
in thread Module for 128-bit integer math? by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-28 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found