[bloom_filter dynamic_bitset] Serialization support

I've been looking at the Bloom filter implementation in the sandbox area: https://svn.boost.org/trac/boost/browser/sandbox/bloom_filter A previous email thread implied serialization was available, but I don't see it in svn. http://lists.boost.org/Archives/boost/2009/06/152731.php Is the serialization code available somewhere? I've made an attempt at implementing this myself. In doing so I had to implement serialization for boost::dynamic_bitset. The dynamic_bitset serialization code may be useful independent of Bloom filters. The Bloom filter serialization in turn makes use of dynamic_bitset serialization. I've uploaded my implementation to the boost vault: http://www.boostpro.com/vault/index.php?directory=serialization Perhaps I should supply tests, example usage and documentation, but I'm hoping to get advice on Boost best practise before going too far in the wrong direction. I'd like to see dynamic_bitset serialization in Boost proper and bloom_filter serialization alongside the existing code in the sandbox area. Can I request a sandbox account to upload code there? All comments welcomed. Thanks. Paul Fee

Hi Paul! On Tue, Jan 12, 2010 at 1:21 AM, Paul Fee <pfee@talk21.com> wrote:
I've been looking at the Bloom filter implementation in the sandbox area:
https://svn.boost.org/trac/boost/browser/sandbox/bloom_filter
A previous email thread implied serialization was available, but I don't see it in svn.
http://lists.boost.org/Archives/boost/2009/06/152731.php
Is the serialization code available somewhere?
Unfortunately I've not been actively updating the implementation to get it to a point worthy of becoming Boost-compliant. There are a number of refactoring tasks that I need to complete for it to be extensible and clean enough for my and others' liking. One of those yet to be implemented is the serialization of bloom filters.
I've made an attempt at implementing this myself. In doing so I had to implement serialization for boost::dynamic_bitset.
The dynamic_bitset serialization code may be useful independent of Bloom filters. The Bloom filter serialization in turn makes use of dynamic_bitset serialization.
I've uploaded my implementation to the boost vault: http://www.boostpro.com/vault/index.php?directory=serialization
Perhaps I should supply tests, example usage and documentation, but I'm hoping to get advice on Boost best practise before going too far in the wrong direction.
Cool. I'll try to take a look and see if I can comment on the implementation.
I'd like to see dynamic_bitset serialization in Boost proper and bloom_filter serialization alongside the existing code in the sandbox area.
Can I request a sandbox account to upload code there?
All comments welcomed.
I'd like to see that too. When you get the sandbox account please feel free to make that happen. :)
Thanks. Paul Fee
Thanks to you too Paul! -- Dean Michael Berris cplusplus-soup.com | twitter.com/deanberris linkedin.com/in/mikhailberis | facebook.com/dean.berris | deanberris.com

Hi, ----- Original Message ----- From: "Paul Fee" <pfee@talk21.com> To: <boost@lists.boost.org> Sent: Monday, January 11, 2010 6:21 PM Subject: [boost] [bloom_filter dynamic_bitset] Serialization support
I've been looking at the Bloom filter implementation in the sandbox area:
https://svn.boost.org/trac/boost/browser/sandbox/bloom_filter
A previous email thread implied serialization was available, but I don't see it in svn.
http://lists.boost.org/Archives/boost/2009/06/152731.php
Is the serialization code available somewhere?
I've made an attempt at implementing this myself. In doing so I had to implement serialization for boost::dynamic_bitset.
The dynamic_bitset serialization code may be useful independent of Bloom filters. The Bloom filter serialization in turn makes use of dynamic_bitset serialization.
I've uploaded my implementation to the boost vault: http://www.boostpro.com/vault/index.php?directory=serialization
Perhaps I should supply tests, example usage and documentation, but I'm hoping to get advice on Boost best practise before going too far in the wrong direction.
I think this is always welcome, at least provide tests, and unformated documentation.
I'd like to see dynamic_bitset serialization in Boost proper and bloom_filter serialization alongside the existing code in the sandbox area.
Can I request a sandbox account to upload code there?
You can do it by sendig a mail to boost-owner@lists.boost.org Note that in addition to a sandbox account you need also the acknowledge of the Boost.Filter owner (Dean Michael Berris).
All comments welcomed.
The implementations of dynamic_bitset should avoid the copy to/from a vector of Blocks. For that we nned to declare the serialization functions as friend of dynamic_bitset. Anyway your implementation is simple. What do you think of posting a ticket (https://svn.boost.org/trac/boost/newticket) to the dynamic_bitset library with the tests and the documentation? Good luck, Vicente
participants (3)
-
Dean Michael Berris
-
Paul Fee
-
vicente.botet