<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Though I did start it off with Bert, it ended up being nearly a complete rewrite.  I plan to complete a couple of unfinished tasks such as dealing with big integers (at least up to 2^53), and add test cases. Contributions are welcome.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 15, 2013 at 5:37 PM, Danil Zagoskin <span dir="ltr"><<a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Is it refactored bert.js from Nitrogen?<div>Files seem to have common lines: <a href="https://github.com/nitrogen/nitrogen_core/blob/master/www/bert.js" target="_blank">https://github.com/nitrogen/nitrogen_core/blob/master/www/bert.js</a><br>


</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/16 Serge Aleynikov <span dir="ltr"><<a href="mailto:serge@aleynikov.org" target="_blank">serge@aleynikov.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Since websockets nowadays support binary data, I implemented binary Erlang External Term serialization, so that term_to_binary(Term) can be decoded into Javascript objects and vice versa.</div>



<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'd like to share this example that illustrates the experiment:</div>



<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><a href="https://github.com/saleyn/erws_example" target="_blank">https://github.com/saleyn/erws_example</a><br>



</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The Javascript file (used by the example above) with encoding/decoding logic:</div>



<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><a href="https://github.com/saleyn/erlb.js" target="_blank">https://github.com/saleyn/erlb.js</a><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">



(this is an early beta version)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">This is a more-or-less belated answer to the question raised by Joe in this thread:<br>



<a href="http://erlang.org/pipermail/erlang-questions/2011-November/062477.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2011-November/062477.html</a><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">



<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">



Serge</div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">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>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace">---------------------------------------------</font><div><font face="'courier new', monospace">Данил Загоскин | <a href="tel:%2B7%20906%20064%2020%2047" value="+79060642047" target="_blank">+7 906 064 20 47</a> | <a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a></font></div>



</font></span></div>
</blockquote></div><br></div>