[erlang-questions] calling Erlang functions from linked-in driver
Wed Aug 22 09:17:38 CEST 2012
You could use
to call Erlang code by sending an Erlang process a message (which is then handled so that it calls the Erlang code you want to call).
On 08/21/2012 11:48 PM, Motiejus Jakštys wrote:
> We are looking for a way to call Erlang functions from linked-in port
> driver (or NIF). From documentation I cannot see any way to do it. We
> want to call some Erlang functions from Lua code, which is executed
> in linked-in driver (can be re-implemented in NIF).
> In C node case this would be simple. However, for this C node is a bit
> overkill (we want erlualib side effects to be as small as possible).
> Linked-in drivers and NIFs are conceptually perfect for it.
> Is there a way to call Erlang function from linked-in driver or NIF
> *before* returning the result to emulator?
> Motiejus Jakštys
> : https://github.com/Motiejus/erlualib
> erlang-questions mailing list
More information about the erlang-questions