Note that there are some explanatory texts on larger screens.

plurals
  1. POProtocol buffers for JavaScript?
    primarykey
    data
    text
    <p>Is there a way to do protocol buffers in JavaScript?</p> <p>Why for .js?</p> <p>If you think about sciencey requirements for a moment, situations pop up where you might want to send a large block of data to the client. With CRUD-style it doesn't really matter so much what you use. With sciencey stuff it does matter (at least I think it does). </p> <p>tradeoffs:</p> <ul> <li><p>protobuffs balances compactness, serialize and deserialize speeds well.</p></li> <li><p>text based protocols (xml / json) have a larger message size... but with javascript I wonder which is more effective.</p></li> </ul> <p>reference:</p> <ul> <li><p>code.google.com/p/protobuf-plugin-closure</p></li> <li><p><a href="https://stackoverflow.com/questions/1131504/google-protocol-buffers-or-something-similar-for-net-javascript">Google Protocol Buffers or something similar for .net/javascript</a></p></li> <li><p><a href="https://github.com/sirikata/protojs" rel="nofollow noreferrer">https://github.com/sirikata/protojs</a></p></li> <li><p><a href="https://stackoverflow.com/questions/6912981/google-protocol-buffers-javascript">Google Protocol Buffers - JavaScript</a></p></li> <li><p><a href="http://www.vitaliykulikov.com/2011/02/gwt-friendly-protocol-buffers.html" rel="nofollow noreferrer">http://www.vitaliykulikov.com/2011/02/gwt-friendly-protocol-buffers.html</a></p></li> <li><p><a href="http://benhakala.blogspot.com/2010/05/converting-google-protocol-buffers-to.html" rel="nofollow noreferrer">http://benhakala.blogspot.com/2010/05/converting-google-protocol-buffers-to.html</a> (alludes to google maps possibly using protobufs)</p></li> </ul> <p>Additional references provided by community (see below for more context):</p> <ul> <li><p><a href="https://github.com/dcodeIO/ProtoBuf.js" rel="nofollow noreferrer">https://github.com/dcodeIO/ProtoBuf.js</a></p></li> <li><p><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> </p></li> <li><p><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> </p></li> <li><p><a href="http://code.google.com/p/protobuf-gwt/" rel="nofollow noreferrer">http://code.google.com/p/protobuf-gwt/</a> </p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

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