Orange 1.0.0 beta - serialization library

dsimcha dsimcha at yahoo.com
Sat Aug 20 10:45:20 PDT 2011


On 8/20/2011 12:50 PM, Andrej Mitrovic wrote:
> Masahiro Nakagawa seems to be working on msgpack:
> https://bitbucket.org/repeatedly/msgpack4d/

Yeah, this does look quite useful.  I tried it a few weeks ago and ran 
into a couple showstopper bugs.  I filed them and he fixed them, but I 
never got around to trying it again.

I actually think that since both are very commonly needed things and 
satisfy completely different niches, Orange and msgpack4d might both 
eventually have a rightful place in Phobos.  Orange would be recommended 
when portability and serializing as many types as possible are 
important, and msgpack4d would be recommended when speed and space 
efficiency are the primary concerns.

>
> Is RIFF considered a good format? I've ran into it when porting C
> code,  it seems it's also used by Google and probably other companies.
> http://en.wikipedia.org/wiki/Resource_Interchange_File_Format

 From reading the Wikipedia article (I knew nothing about RIFF before 
this discussion) it sounds like it's in a valley in between two utility 
peaks.  XML provides maximum portability.  msgpack provides maximum 
efficiency.  RIFF doesn't really provide either all that well.


More information about the Digitalmars-d-announce mailing list