<div dir="ltr"><br><div style>Just curious, but what is the *least efficient* way of connecting node.js to Erlang.</div><div style><br></div><div style>If I were doing this I'd start with the least efficient method, build my app, measure, then optimize if</div>
<div style>necessary.</div><div style><br></div><div style>If the optimization is not necessary you have saved yourself a whole lot of work.</div><div style><br></div><div style>Alternatively, write the code and if it is not fast enough wait ten years.</div>
<div style><br></div><div style><br></div><div style>Cheers</div><div style><br></div><div style>/Joe</div><div style><br></div><div style> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 2:11 PM, Eduardo Gurgel <span dir="ltr"><<a href="mailto:edgurgel@gmail.com" target="_blank">edgurgel@gmail.com</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"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Mon, Apr 8, 2013 at 12:37 PM, aman mangal <span dir="ltr"><<a href="mailto:mangalaman93@gmail.com" target="_blank">mangalaman93@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div>Hi,<br><br style="font-family:'arial black',sans-serif">
What is the most efficient way to pass events/data from erlang processes to nodejs and vice versa? Setting up a tcp socket may be slower or inefficient. I was thinking of doing something native. Both erlang and nodejs provide libraries(NIF) to call C functions but none of them provide an efficient implementation for calling erlang/nodejs functions from C or C++ as far as I know. Please suggest some ideas!</div>
<div><br></div></div></blockquote><div><br></div></div><div>You could take a look on BERT RPC: </div><div><br></div><div><a href="https://github.com/rtomayko/node-bertrpc" target="_blank">https://github.com/rtomayko/node-bertrpc</a><br>
</div><div><br></div><div><a href="https://github.com/mojombo/bert.erl" target="_blank">https://github.com/mojombo/bert.erl</a><br></div><div><br></div><div>Right now, <a href="http://bert-rpc.org" target="_blank">bert-rpc.org</a> is returning 404, but it was up two days ago:</div>
<div><br></div><div><a href="http://bert-rpc.org/" target="_blank">http://bert-rpc.org/</a><br></div><div><br></div><div>Maybe checking cached webpage on <a href="http://bert-rpc.org" target="_blank">bert-rpc.org</a> may help you.</div>
<div><br></div><div>--</div><div><br></div><div>Eduardo</div><div><br></div><div> </div></div></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">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><br></div>