[erlang-questions] integrating nodejs with erlang code

Dave Smith dizzyd@REDACTED
Wed Apr 10 20:56:05 CEST 2013

There is "most efficient" and "pragmatic".

My "pragmatic" suggestion would be to run nodejs as a port (e.g. open_port)
and use stdio to interact with it. Then you can let Erlang supervise a pool
of nodejs VMs. If you want to be fancy, you can implement a ping/pong
protocol for detecting when the nodejs system has gone off the deep end
chasing down endless chains of callbacks. :)

I may or may not have had to do this recently. :)


On Mon, Apr 8, 2013 at 9:37 AM, aman mangal <mangalaman93@REDACTED> wrote:

> Hi,
> 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!
> Thanks in advance.
> Aman Mangal
> 3rd year Undergraduate
> Department of Computer Science & Engineering
> IIT Bombay
> www.cse.iitb.ac.in/~amanmangal
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130410/49084a28/attachment.htm>

More information about the erlang-questions mailing list