[phobos] Interest in having a serializer in Phobos?
andrei at erdani.com
Sat Aug 7 22:47:20 PDT 2010
I think that would be great. Knowing nothing about Orange, I visited the
website and read the feature lists and the tutorial (the reference seems
to be missing for now). The latter contains:
auto a2 = serializer.deserialize!(A)(data);
which seems to require compile-time knowledge of the deserialized type.
I'd expect the library to support something like
Object a2 = serializer.deserialize!Object(data);
and fill the object with an A. I'm pretty certain you've done that, it
would be great to feature that within the tutorials and documentation.
I'd also expect Variant to play a role there, e.g. you deserialize
something and you get a Variant.
On 08/07/2010 10:19 AM, Jacob wrote:
> Is there any interest in having a serializer in Phobos? I have a serializer compatible with D2 which I licensed under the Boost license. This is the description from the project page:
> Orange is a serialization library for D1 and D2, supporting both Tango and Phobos. It can serialize most of the available types in D, including third party types and can serialize through base class references. It supports fully automatic serialization of all supported types and also supports several ways to customize the serialization. Orange has a separate front end (the serializer) and back end (the archive) making it possible for the user to create new archive types that can be used with the existing serializer.
> It's not very well tested but if there's some interest I'm hoping on getting more people to test the library. The project page is: http://dsource.org/projects/orange/
> /Jacob Carlborg
> phobos mailing list
> phobos at puremagic.com
More information about the phobos