MessagePack for D released

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Apr 25 06:26:14 PDT 2010


On 04/25/2010 07:20 AM, Masahiro Nakagawa wrote:
> I release a serialization library for Phobos(D2).
> 
> Project repository: http://www.bitbucket.org/repeatedly/msgpack4d
> 
> MessagePack is a binary-based serialization spec.
> See official site for details: http://msgpack.sourceforge.net/
> Some application replace JSON with MessagePack for performance improvement.
> 
> msgpack4d ver 0.1.0 has an equal features with reference implementation.
> * Zero copy serialization / deserialization
> * Stream deserializer
> * Support some D features(Range, Tuple)
> 
> Currently, Phobos doesn't have a real serialization module(std.json 
> lacks some features)
> I hope Phobos adopts this library for serialization(std.msgpack or 
> std.serialization?).

This is great. Code looks very good and it's very generous of you to
offer to contribute it to Phobos.

There are a few details that could be changed to minimize repetition.
For example, SimpleBuffer looks a lot like Appender!(ubyte[]). The
DeflateBuffer and the FileBuffer look like great starting points for
output range artifacts, though e.g. for FileBuffer we should call it
something like BinaryFileWriter (as opposed to TextFileWriter) etc.

I suggest we hold a community review in this group and then most likely
integrate this functionality into Phobos. All - let us know what you think!


Andrei


More information about the Digitalmars-d-announce mailing list