Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Google makes heavy use of Protocol Buffers in JS (GMail, etc.) through their Closure Library, generating JS code with a (unfortunately non-open-sourced) modified <code>protoc</code> (it would probably have to be <em>ported</em> to a <code>protoc</code> extension before being open-sourced).</p> <p>Apache Wave (whose <em>client</em> webapp is built with GWT) also uses Protocol Buffers for its communications with the server, generating Java code by reflecting on the Java classes produced by <code>protoc</code> (this is the PST, aka protobuf-stringtemplate, subproject).<br> Previously, Wave was using <a href="http://code.google.com/p/protostuff/" rel="nofollow noreferrer">protostuff</a> (and I don't know why they switched to their own solution, I suspect PST is derived from what the original Google Wave was using, and protostuff was only an intermediate step during the move to open-source).</p> <p>As a side note, I started exploring using Protocol Buffers on the browser side a while ago: <a href="http://blog.ltgt.net/exploring-using-protobuf-in-the-browser/" rel="nofollow noreferrer">http://blog.ltgt.net/exploring-using-protobuf-in-the-browser/</a> &amp; <a href="http://blog.ltgt.net/using-protobuf-client-side-with-gwt" rel="nofollow noreferrer">http://blog.ltgt.net/using-protobuf-client-side-with-gwt</a> with some almost-working code at <a href="http://code.google.com/p/protobuf-gwt/" rel="nofollow noreferrer">http://code.google.com/p/protobuf-gwt/</a> that you might want to resurrect.</p> <p>Finally, there's work underway to make GWT RequestFactory proxies compatible with the server-side Java classes generated by <code>protoc</code> (and you could use a <code>protoc</code> extension or a similar approach to Wave's PST to generate your RequestFactory proxies). It should already be possible, provided you use builders all the way on the server-side (which is not quite how the Protocol Buffers Java API was designed).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload