<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Aman -</div><div><br></div><div>Hello. I'm currently building a Scheme interpreter for the Erlang VM (<a href="https://github.com/the-concurrent-schemer">https://github.com/the-concurrent-schemer</a>). I drafted a data model that maps Scheme to Erlang and then built a Scheme token scanner, a Scheme datum parser, and the basics for a Scheme interpreter.</div><div><br></div><div>I don't know much about JS (or Scheme for that matter) but feel free to contact me directly if you have questions or find any of this relevant to your interest about implementing JS in Erlang. Good luck!</div><div><br></div><div>Cheers,</div><div><br></div><div>Joe N</div><div><br></div><div><div>On Apr 11, 2013, at 03:49 , aman mangal <<a href="mailto:mangalaman93@gmail.com">mangalaman93@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi,<br><div class="gmail_extra"><div><br style="font-family:arial black,sans-serif">How can I go about implementing JS in erlang? This seems interesting to me. Please tell me what do you mean by implementing JS or node.js in erlang?</div>
<div><font style="color:rgb(102,51,51);font-family:tahoma,sans-serif"><br clear="all"></font><font style="color:rgb(102,51,51);font-family:tahoma,sans-serif">Aman Mangal</font><div><font style="color:rgb(102,51,51);font-family:tahoma,sans-serif">3rd year Undergraduate<br>
Department of Computer Science & Engineering<br>
IIT Bombay<br></font><a href="http://www.cse.iitb.ac.in/~amanmangal" target="_blank">www.cse.iitb.ac.in/~amanmangal</a>
</div></div>
<br><br><div class="gmail_quote">On Wed, Apr 10, 2013 at 10:42 PM, Zheng Zhibin <span dir="ltr"><<a href="mailto:witeman.g@gmail.com" target="_blank">witeman.g@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="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" target="_blank">robert.virding@erlang-solutions.com</a>> 写道:<br>
<br></div><div><blockquote type="cite"><div style="font-size:12pt;font-family:times new roman,new york,times,serif">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><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid #1010ff"><b>From: </b>"Joe Armstrong" <<a href="mailto:erlang@gmail.com" target="_blank">erlang@gmail.com</a>><br>
<b>To: </b>"Eduardo Gurgel" <<a href="mailto:edgurgel@gmail.com" target="_blank">edgurgel@gmail.com</a>><br><b>Cc: </b>"Ali Attarwala" <<a href="mailto:ali.attar@novanet.net" target="_blank">ali.attar@novanet.net</a>>, "Shailesh Tyagi" <<a href="mailto:shailesh@novanet.net" target="_blank">shailesh@novanet.net</a>>, "wncc iitb" <<a href="mailto:wncc_iitb@googlegroups.com" target="_blank">wncc_iitb@googlegroups.com</a>>, "Erlang" <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>>, "chirag jain" <<a href="mailto:chirag.jain@novanet.net" target="_blank">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>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 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>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" 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>
</blockquote><br></div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a></span><br>
<span><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></blockquote></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></div>
_______________________________________________<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></div><br></body></html>