<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><base href="x-msg://1431/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Right AND it's certainly the *least efficient*, TOO, as seen from the Python programmer's time mantra!<div><br></div><div>So it's both in one. Satisfies Joe's AND Robert's recommendations.</div><div><br></div><div>Could you object against that advise?</div><div><br></div><div><div>Cheers,</div><div><br></div><div>Henning</div></div><div><div>On Apr 10, 2013, at 5:46 PM, Robert Virding <<a href="mailto:robert.virding@erlang-solutions.com">robert.virding@erlang-solutions.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">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-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica, Arial, sans-serif; font-size: 12pt; "><b>From:<span class="Apple-converted-space"> </span></b>"Joe Armstrong" <<a href="mailto:erlang@gmail.com">erlang@gmail.com</a>><br><b>To:<span class="Apple-converted-space"> </span></b>"Eduardo Gurgel" <<a href="mailto:edgurgel@gmail.com">edgurgel@gmail.com</a>><br><b>Cc:<span class="Apple-converted-space"> </span></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:<span class="Apple-converted-space"> </span></b>Wednesday, 10 April, 2013 11:14:19 AM<br><b>Subject:<span class="Apple-converted-space"> </span></b>Re: [erlang-questions] integrating nodejs with erlang code<br><br><div dir="ltr"><br><div>Just curious, but what is the *least efficient* way of connecting node.js to Erlang.</div><div><br></div><div>If I were doing this I'd start with the least efficient method, build my app, measure, then optimize if</div><div>necessary.</div><div><br></div><div>If the optimization is not necessary you have saved yourself a whole lot of work.</div><div><br></div><div>Alternatively, write the code and if it is not fast enough wait ten years.</div><div><br></div><div><br></div><div>Cheers</div><div><br></div><div>/Joe</div><div><br></div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 9, 2013 at 2:11 PM, Eduardo Gurgel<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:edgurgel@gmail.com" target="_blank">edgurgel@gmail.com</a>></span><span class="Apple-converted-space"> </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; position: static; z-index: auto; "><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 class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:mangalaman93@gmail.com" target="_blank">mangalaman93@gmail.com</a>></span><span class="Apple-converted-space"> </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,<span class="Apple-converted-space"> </span><a href="http://bert-rpc.org" target="_blank">bert-rpc.org</a><span class="Apple-converted-space"> </span>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<span class="Apple-converted-space"> </span><a href="http://bert-rpc.org" target="_blank">bert-rpc.org</a><span class="Apple-converted-space"> </span>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>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote><br></div>_______________________________________________<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></div></blockquote></div><br></body></html>