[erlang-questions] NIF vs. Linked-in Drivers
Tue Dec 8 18:06:55 CET 2009
NIF libraries are linked into erlang just like linked in drivers. If they
crash, so does beam process.
On Tue, Dec 8, 2009 at 6:03 PM, Evans, Matthew <mevans@REDACTED> wrote:
> Are there any guidelines as to the use of the new Erlang NIF vs. a
> linked-in port driver?
> We have an application that needs to access C code, and are currently
> thinking (and have used in the past) a linked-in port driver. Under what
> situations would that approach be better than a NIF, and visa versa?
> Also, we all know that a linked in driver can crash or lock the Erlang
> runtime system if the driver is poorly implemented. Do these risks still
> exist with NIFs?
More information about the erlang-questions