문제

If we check the official documentation we can find various ways of interfacing Erlang and C/C++. A similar question was asked here in 2009 and I would like to know how the things changed since then.

Is there any mature stable library that does all the dirty work of implementing binary protocols between Erlang and C? Is it ei or erl_interface and what is the difference between them?

I mean this seems to be a quite common problem and I hope that someone has successfully solved it already and there is no need to write your own Erlang Port Driver anymore, since most of it is generic code.

P.S. I have also found this library: EPAPI.

도움이 되었습니까?

해결책

Nothing have changed significantly since 2009, the top answer from the question you linked is still correct.

NIFs became less experimental starting from R14 and are actively used in some projects, but they are still incompatible with HiPE compiler (native flag to compile).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top