Re: [boost] [GSOC] summary of BigInt library details

hello all, thanks for the prompt replies. here are some issues (some carry forwarded from previous mail) which need addressing. [Scott McMurray wrote]
For example, GMP has a function mpz_addmul(x,y,z) that we would rather write as x += y*z;
My idea for the use of Boost.Proto is for its expression template transformation features to rewrite the easy-to-use syntax to take advantage of such optimized backend features.
thank you, that really clarified the issue rearding basing the frotend off Boost.Proto. My question is - boost already has done work for handling big_integral [boost/mpl/math/big_integral/] (saw it in archives dating back to 2005 refer [1] ) so which backend option is more advisable:- a) use these functions based off boost/mpl/math/big_integral/. if so can someone please give a link to its documentation. or b) use a backend developed by me .(probably with the help non boost.math but standard c++ libraries) [Bruno Lalande wrote:]
So to summarize, I can see 3 distinct actions: 1) implement your BigInt backend 2) provide a Boost.Math binding compliant interface for this backend 3) implement a frontend for Boost.Math binding based on Boost.Proto
thanks for summing it up so precisely :) could u please elaborate more on point 2, does it mean that the interface being provided should be similar to those provided by Boost.Math ? here is my refined project idea once again:- 1. provide the frontend which takes care of expressions like z += y*z (using Boost.Proto) 2. implement backend using :- a) an implementation developed by me (using simple standard c++ library functions). or b) using boost/mpl/math/big_integral/ . (if so please give me a link to its documentation) moreover, is there any Boost specific format to be followed for submission of the project idea? i hope the community and gsoc mentors will help me out with these queries soon. [1] http://lists.boost.org/Archives/boost/2005/10/subject.php Cheers! Ankit Malpani 3rd Year Undergraduate | BE. Hons Computer Science BITS Pilani Goa Campus

On 2 April 2010 04:21, Ankit Malpani <ankit.malpani@gmail.com> wrote:
b) use a backend developed by me .(probably with the help non boost.math but standard c++ libraries)
Personally, I don't think that re-implementing well-known algorithms for big integers is really what Boost is best suited for. There are plenty of implementations already out there, under a variety of licenses, so I figure that most people should be able to find something they can use and plug into a nice "Boosty" interface. Looking at the overall Boost aim "to establish 'existing practice' and provide reference implementations so that Boost libraries are suitable for eventual standardization," I suspect that the thing eventually standardized would be the interface -- function names, exception behaviour, possibly some expression template properties, etc -- not the details of how, say, division is performed. YMMV, ~ Scott
participants (2)
-
Ankit Malpani
-
Scott McMurray