Question

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.

Était-ce utile?

La solution

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).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top