Re: [boost] [xint] Boost.XInt formal review

This library is useful as is but I would suggest a few additional features for convenience especially among the most common use cases. 1) convenience functions preferably, documented example is acceptable, for extracting a integer, int, long int ... starting at a particular unsigned bit offset for a particular length 2) convenience functions preferably, documented example is acceptable, for creating a mask starting at a particular unsigned bit offset for a particular length 3) examples of using this if possible with boost::date in order to efficient work with dates outside the existing limits 4) conversion to and from dynamic_bitset [already suggested just seconding] 5) conversion to and from bitset For all those other reviewers who may complain about performance when comparing with GMP, please bear in mind that large numbers are useful to domains other than security were assembly level performance is nice but doesn't outweigh other concerns such as portability and ease of use. This library and others much needed even overdue for the C++ non C community.

On Wed, 02 Mar 2011 13:14:22 -0500 Jarrad Waterloo <jwaterloo@dynamicquest.com> wrote:
This library is useful as is but I would suggest a few additional features for convenience especially among the most common use cases.
1) convenience functions preferably, documented example is acceptable, for extracting a integer, int, long int ... starting at a particular unsigned bit offset for a particular length
Should be easy enough to do. I'll put it on the list.
2) convenience functions preferably, documented example is acceptable, for creating a mask starting at a particular unsigned bit offset for a particular length
As in, a function that could create a bit-mask for all the bits between 128 and 256 inclusive? If so, that shouldn't be difficult either. Added to the list.
3) examples of using this if possible with boost::date in order to efficient work with dates outside the existing limits
Hm... not sure whether that's possible or not. I've added a note to look into it further.
4) conversion to and from dynamic_bitset [already suggested just seconding]
And already on the list.
5) conversion to and from bitset
I'll put that there too. Thank you for your suggestions. -- Chad Nelson Oak Circle Software, Inc. * * *
participants (2)
-
Chad Nelson
-
Jarrad Waterloo