Boost Serialize

Discussion in 'Automated Trading' started by nitro, Jul 25, 2009.

  1. nitro


    I am getting more acquainted with BOOST and I have a question for people that are experts with BOOST.

    I am looking at the Serialize class. This thing can't be serious? This header bloat may work (can be ignored) for persisting stuff to disk, but what if I want to inherit from Serialize to send an object over a network? This bloated headers is a beefy penalty to pay!

    Do people just ignore the Serialize class for this purpose? If so, do they then write something that serializes message objects by hand when using BOOST?
  2. Big


    in my view nothing beats (or anywhere close to beat) Google's protocol buffers for serialization.
  3. An oldie but still a goodie is XDR, which underlies SUN RPC and NFS. There is an RFC:

    Very easy to use with C/C++, fast and efficient. The rpcgen compiler is on just about any *nix machine.
  4. nitro


    Thanks Bid and dcraig, I learned a great deal from those recommendations.
  5. erbronni


    You might also want to look at Hessian:

    I've had moderate success with Hessian using a Java server and a C++ client if you are looking to provide a remote service.
  6. nitro


    Thank you. Hessian looks interesting. So many choices....