However, several libraries included in the Erlang distribution simplifythe job of interfacingErlang to external programs; these include the following:
http://www.erlang.org/doc/pdf/erl_interface.pdf
Erl interface (ei) is a set of C routines and macros for encoding and decoding the Erlang externalformat. On the Erlang side, an Erlang program uses term_to_binary to serialize an Erlang term, andon the C side the routines in ei can be used to unpack this binary. ei can also be used to constructa binary, which the Erlang side can unpack with binary_to_term.
http://www.erlang.org/doc/pdf/ic.pdf
The ErlangIDLCompiler (ic). The ic application is an Erlang implementation of anOMG IDLcomplier.
http://www.erlang.org/doc/pdf/jinterface.pdf
Jinteface is a set of tools for interfacing Java to Erlang. It provides a full mapping of Erlangtypes to Java objects, encoding and decoding Erlang terms, linking to Erlang processes, and so on,as well as a wide range of additional features.