Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Erlang with C++

Tags:

c++

erlang

What interfaces exist to tie Erlang with C++?

like image 408
user855 Avatar asked Nov 28 '09 04:11

user855


2 Answers

  • Native implemented functions: available in the latest Erlang/OTP version, allows you to implement any of your functions in C.

  • Port drivers: you can link a C code to the Erlang VM, and access it using port_command.

  • C Nodes: With the ei library you can mimic a VM and talk to your Erlang VMs using the Erlang distribution format.

like image 145
Zed Avatar answered Nov 01 '22 19:11

Zed


The closest thing I know for interfacing Erlang with C++ directly is EPAPI. Of course it relies on the tried and tested C erl_interface that comes standard with the Erlang distribution.

like image 24
jldupont Avatar answered Nov 01 '22 19:11

jldupont