Protobuf is fully self-described, and fully forwards/backwards compatible, in that it can carry through "unknown" members of a structure, including the semantic of the fields. ASN1 is generally not fully self-described, because it only describes type, not semantic, for each field.<br clear="all">
<br><div>Sincerely,</div><div><br></div><div>jw</div><div><br>--<br>Americans might object: there is no way we would sacrifice our living standards for the benefit of people in the rest of the world. Nevertheless, whether we get there willingly or not, we shall soon have lower consumption rates, because our present rates are unsustainable. <br>
<br>
<br><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 3:03 AM, Vincent de Phily <span dir="ltr"><<a href="mailto:vincent.dephily@mobile-devices.fr">vincent.dephily@mobile-devices.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Monday 22 August 2011 11:31:44 Mike Oxford wrote:<br>
> BERT is pretty much a "known good quantity" but protobuf is more<br>
> efficient on the wire.<br>
><br>
> Anyone have thoughts on which to go with?<br>
><br>
> Also, along the BERT side, does anyone have recommendations on AS3 and<br>
> Java implementations of the marshallers?<br>
><br>
> The downside(s) to protobuf - hard IDLs and you have to build the<br>
> project and generators.<br>
> The downside(s) to BERT - less efficient on the wire (verbosity.)<br>
<br>
</div>Also take a look at bjson, and one of my favourite : msgpack. BERT is rather<br>
unique in supporting atoms, which *nice* and can reduce encoded size a lot<br>
(but that's less significant if you compress). For encoded size, I have yet to<br>
see anything beat UPER (asn1).<br>
<br>
A few things to consider :<br>
* Bench size and speed with a mockup of your data : different formats are<br>
  better for different types of data. Add compression to your tests.<br>
* Think about format extensibility. It's easy enough with self-described<br>
  formats like bert or msgpack, but gets more complicated with protobuf or<br>
  asn1.<br>
* The initial hurdle of dealing with a grammar and generators is well paid off<br>
  by having data validation and nicer api (mostly via #records{}) later on.<br>
* If you need to speak with the outside world, self-describing formats will<br>
  make your life easyer.<br>
--<br>
<font color="#888888">Vincent de Phily<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>