Question

I have interfaced Erlang mainly through port drivers but now with the advent of the erl_nif functionality, I am wondering if I should invest in Port Drivers anymore.

Will the erl_nif functionality boom or bust like FFI?

Was it helpful?

Solution

Ports and NIFs have different properties and model different types of things: ports behave as processes and you communicate with them through normal message passing, while the NIFs look like normal function calls. So it really depends what you want to interface and how they behave. Both have their place.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top