I've actually had an implementation for ECMAScript planned for a
while, and an initial stab at a compiler to ECMAScript spec'ed out.
The basic idea I had was to have the compiler generate the interfaces
for each message type and as well have a common interface on the
ECMAScript side for implementing "serializers." This way, the default
serialization method could very well be JSON, while others could come
along and implement other intermediate formats, most notebly the PB
binary format and XML. While this technically strays from the goal of
PB (being faster than XML and all), it would allow us to have a good
deal of the benefits of PB (same interface on both ends) without the
speed downsides of the binary format on the client side (of course,
with an obvious speed downside on the server side).
As I'm on vacation now, I won't be working on this until Aug, but if
anyone wants to contribute starting then, let me know! :-)
Thanks,
Joey Schorr
jsc...@google.com
On Jul 8, 4:02 pm, "Kenton Varda" <
ken...@google.com> wrote: