[erlang-questions] integrating nodejs with erlang code
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 <> wrote:
> 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
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions