<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Thats not what I meant. I am not asking for a parsing the binary protocol </div><div>in Javascript. I was simply wondering if the DMR model could be decoupled form the dependencies</div><div>the GWT compiler doesn't support. Simply to reuse it, in order to express operations, etc on the client.</div><div>No big deal if that doesn't work.</div><div><br></div><div>But back to your proposal:</div><div>I don't believe parsing the binary protocol will be more efficient then natively evaluating the JSON </div><div>bit's and pieces. Which typically is what you do in GWT.</div><div><br></div><div>But before we dive too much into assumptions, let's stick to the requirements:</div><div>JSON works fine. So far there is no need for the binary protocol in GWT.</div><div>We would need to identify a performance problem first, </div><div>before we <span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><a href="http://www.dict.cc/englisch-deutsch/take.html" style="color: black; text-decoration: none; ">take</a></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "> </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><a href="http://www.dict.cc/englisch-deutsch/a.html" style="color: black; text-decoration: none; ">a</a></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "> </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><a href="http://www.dict.cc/englisch-deutsch/sledgehammer.html" style="color: black; text-decoration: none; ">sledgehammer</a></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "> to </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><a href="http://www.dict.cc/englisch-deutsch/crack.html" style="color: black; text-decoration: none; ">crack</a></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "> </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><a href="http://www.dict.cc/englisch-deutsch/a.html" style="color: black; text-decoration: none; ">a</a></span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "> </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><a href="http://www.dict.cc/englisch-deutsch/nut.html" style="color: black; text-decoration: none; ">nut</a>.</span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Ike</span></div><br><div><div>On Feb 2, 2011, at 5:20 PM, Jason T. Greene wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">That's an interesting idea. If nothing else we could use GWT to port it<span class="Apple-converted-space"> </span><br>javascript once, implement the IO bits in native javascript, and then<span class="Apple-converted-space"> </span><br>maintain the whole thing as just a javascript library. Then you could<span class="Apple-converted-space"> </span><br>use JSNI to talk to it.<br><br>Initally I am doing JSON over HTTP, but we could also do binary-dmr over<span class="Apple-converted-space"> </span><br>HTTP following this approach. We could use a simple http header to<span class="Apple-converted-space"> </span><br>indicate the need for the binary response.<br><br>On 2/2/11 3:37 AM, Heiko Braun wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Would it be possible to decouple the marshalling components from the raw model?</blockquote></span></blockquote></div><br></body></html>