[erlang-questions] Calling Erlang functions from NIFs

Ilya Khaprov ilya.khaprov@REDACTED
Thu Jan 18 14:52:26 CET 2018


Hello,

How to call an Erlang function from NIFs? Been trying to find for a 
while now.

My use case - data structure implemented in C++ with user validation. I 
want to implement this validation via callbacks e.g. user calls NIF with 
a fun as an argument and NIF calls this function say in a filter loop. I 
can imagine some scheduling problems behind this, but can it be done in 
principle?

Regards,

Ilya



More information about the erlang-questions mailing list