开发者

erlang "erl_nif" functionality

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 b开发者_C百科ust like FFI?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜