<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>The most efficient way of connecting Erlang with node.js would be, of course, to implement JS and hence node.js in Erlang. Maybe not the easiest way, but definitely the most efficient connection. :-)<br><br>Robert<br><br><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Joe Armstrong" <erlang@gmail.com><br><b>To: </b>"Eduardo Gurgel" <edgurgel@gmail.com><br><b>Cc: </b>"Ali Attarwala" <ali.attar@novanet.net>, "Shailesh Tyagi" <shailesh@novanet.net>, "wncc iitb" <wncc_iitb@googlegroups.com>, "Erlang" <erlang-questions@erlang.org>, "chirag jain" <chirag.jain@novanet.net><br><b>Sent: </b>Wednesday, 10 April, 2013 11:14:19 AM<br><b>Subject: </b>Re: [erlang-questions] integrating nodejs with erlang code<br><br><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" 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><br></div>
<br>_______________________________________________<br>erlang-questions mailing list<br>erlang-questions@erlang.org<br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote><br></div></body></html>