Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

State of Erlang and C/C++ integration?

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.

like image 684
skanatek Avatar asked May 07 '12 18:05

skanatek


1 Answers

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

like image 143
Ivan Blinkov Avatar answered Sep 29 '22 03:09

Ivan Blinkov