<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>beam.js would be one way to build node.js into Erlang :)<br><br></div><div>Cheers</div><div>Ben</div><div><br></div><div>在 2013-4-10,下午11:46,Robert Virding <<a href="mailto:robert.virding@erlang-solutions.com">robert.virding@erlang-solutions.com</a>> 写道:<br><br></div><blockquote type="cite"><div><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" <<a href="mailto:erlang@gmail.com">erlang@gmail.com</a>><br><b>To: </b>"Eduardo Gurgel" <<a href="mailto:edgurgel@gmail.com">edgurgel@gmail.com</a>><br><b>Cc: </b>"Ali Attarwala" <<a href="mailto:ali.attar@novanet.net">ali.attar@novanet.net</a>>, "Shailesh Tyagi" <<a href="mailto:shailesh@novanet.net">shailesh@novanet.net</a>>, "wncc iitb" <<a href="mailto:wncc_iitb@googlegroups.com">wncc_iitb@googlegroups.com</a>>, "Erlang" <<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>>, "chirag jain" <<a href="mailto:chirag.jain@novanet.net">chirag.jain@novanet.net</a>><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><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote><br></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>