|
Boost : |
Subject: Re: [boost] [boostcon][proto] Suggestion for LIAW session: fixed-point numbers
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2011-03-13 17:27:38
On 13/03/11 22:24, Ravi wrote:
> Are there any proto-based ideas for the library-in-a-week sessions? If not,
> would building a fixed-point data type be of interest? The domain is narrow
> enough that something useful can be accomplished in 4 sessions, but of large
> enough scope to present opportunities for exploring proto in depth. A fairly
> simple design follows representing a number:
I like the idea :)
What was the plan for LIAW this year ? IIRC some stuff were pointed otu
last eyar as potential contenders.
> Proto would be used for creating all arithmetic operations since the return
> type of a+b could be different from the type of either a or b. A bonus would
> involve getting the fixed-point data type to play well with std::complex (and,
> yes, I am aware that std::complex is not designed to work with anything other
> than double and float, and will require specialization in the std namespace).
Well, isnt having a boost::complex data type be of interest too ?
> If there is sufficient interest, I could even provide a starting point with
> +,-,* implemented; / would take more time. The design above is intended as a
> starting point for discussion and I am most definitely not wedded to it. I am
> a tyro when it comes to proto, and hence would need someone with more proto
> expertise to guide the discussion.
I can help on this point
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk